Add test programs for lage page

Tests arm64 specific, contiguous bit based large pages as well.

Change-Id: I09edad8cfde6c23a259f1f32cfc97974d9cb63c3
This commit is contained in:
Masamichi Takagi
2018-12-07 19:28:51 +09:00
committed by Dominique Martinet
parent 100754f556
commit 9f7425c152
86 changed files with 5024 additions and 0 deletions

41
test/large_page/driver.sh Executable file
View File

@@ -0,0 +1,41 @@
#!/bin/sh
# driver.sh [<test_set>]
test_set=$1
if [ "`git diff | grep -c 'large page allocation'`" == "0" ]; then
echo "Perform \"patch -p0 < large_page.patch\""
exit 1
fi
if [ "$test_set" == "" ]; then
source ./test_set.conf
fi
if [ ! -d ./log ]; then
mkdir log
fi
for i in $test_set
do
test_id=$(printf "%03d" $i)
echo "[INFO] ${test_id} started"
../run.sh ${test_id} &> ./log/${test_id}.log
if [ $? -ne 0 ]; then
echo "[ NG ] ${test_id} run failed"
continue
fi
../check.sh ${test_id}
if [ $? -ne 0 ]; then
echo "[ NG ] ${test_id} result check failed"
continue
fi
echo "[ OK ] ${test_id} passed"
done