Add test programs for lage page
Tests arm64 specific, contiguous bit based large pages as well. Change-Id: I09edad8cfde6c23a259f1f32cfc97974d9cb63c3
This commit is contained in:
committed by
Dominique Martinet
parent
100754f556
commit
9f7425c152
41
test/large_page/driver.sh
Executable file
41
test/large_page/driver.sh
Executable 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
|
||||
Reference in New Issue
Block a user