Files
mckernel/test/large_page/driver.sh
Masamichi Takagi 9f7425c152 Add test programs for lage page
Tests arm64 specific, contiguous bit based large pages as well.

Change-Id: I09edad8cfde6c23a259f1f32cfc97974d9cb63c3
2019-02-01 15:15:44 +09:00

42 lines
669 B
Bash
Executable File

#!/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