Commit 9e69fa46 authored by SeongJae Park's avatar SeongJae Park Committed by Linus Torvalds

selftests/vm: add missed tests in run_vmtests

The commits introducing 'mlock-random-test'[1], 'map_fiex_noreplace'[2],
and 'thuge-gen'[3] have not added those in the 'run_vmtests' script and
thus the 'run_tests' command of kselftests doesn't run those.  This
commit adds those in the script.

'gup_benchmark' and 'transhuge-stress' are also not included in the
'run_vmtests', but this commit does not add those because those are for
performance measurement rather than pass/fail tests.

[1] commit 26b4224d ("selftests: expanding more mlock selftest")
[2] commit 91cbacc3 ("tools/testing/selftests/vm/map_fixed_noreplace.c: add test for MAP_FIXED_NOREPLACE")
[3] commit fcc1f2d5 ("selftests: add a test program for variable huge page sizes in mmap/shmget")

Link: http://lkml.kernel.org/r/20200206085144.29126-1-sj38.park@gmail.comSigned-off-by: default avatarSeongJae Park <sjpark@amazon.de>
Cc: Uladzislau Rezki (Sony) <urezki@gmail.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 467d12f5
...@@ -112,6 +112,17 @@ echo "NOTE: The above hugetlb tests provide minimal coverage. Use" ...@@ -112,6 +112,17 @@ echo "NOTE: The above hugetlb tests provide minimal coverage. Use"
echo " https://github.com/libhugetlbfs/libhugetlbfs.git for" echo " https://github.com/libhugetlbfs/libhugetlbfs.git for"
echo " hugetlb regression testing." echo " hugetlb regression testing."
echo "---------------------------"
echo "running map_fixed_noreplace"
echo "---------------------------"
./map_fixed_noreplace
if [ $? -ne 0 ]; then
echo "[FAIL]"
exitcode=1
else
echo "[PASS]"
fi
echo "-------------------" echo "-------------------"
echo "running userfaultfd" echo "running userfaultfd"
echo "-------------------" echo "-------------------"
...@@ -186,6 +197,17 @@ else ...@@ -186,6 +197,17 @@ else
echo "[PASS]" echo "[PASS]"
fi fi
echo "-------------------------"
echo "running mlock-random-test"
echo "-------------------------"
./mlock-random-test
if [ $? -ne 0 ]; then
echo "[FAIL]"
exitcode=1
else
echo "[PASS]"
fi
echo "--------------------" echo "--------------------"
echo "running mlock2-tests" echo "running mlock2-tests"
echo "--------------------" echo "--------------------"
...@@ -197,6 +219,17 @@ else ...@@ -197,6 +219,17 @@ else
echo "[PASS]" echo "[PASS]"
fi fi
echo "-----------------"
echo "running thuge-gen"
echo "-----------------"
./thuge-gen
if [ $? -ne 0 ]; then
echo "[FAIL]"
exitcode=1
else
echo "[PASS]"
fi
if [ $VADDR64 -ne 0 ]; then if [ $VADDR64 -ne 0 ]; then
echo "-----------------------------" echo "-----------------------------"
echo "running virtual_address_range" echo "running virtual_address_range"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment