Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 26b4224d9961 ("selftests: expanding more mlock selftest")
[2] commit 91cbacc34512 ("tools/testing/selftests/vm/map_fixed_noreplace.c: add test for MAP_FIXED_NOREPLACE")
[3] commit fcc1f2d5dd34 ("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.com
Signed-off-by: SeongJae 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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

SeongJae Park and committed by
Linus Torvalds
9e69fa46 467d12f5

+33
+33
tools/testing/selftests/vm/run_vmtests
··· 112 112 echo " https://github.com/libhugetlbfs/libhugetlbfs.git for" 113 113 echo " hugetlb regression testing." 114 114 115 + echo "---------------------------" 116 + echo "running map_fixed_noreplace" 117 + echo "---------------------------" 118 + ./map_fixed_noreplace 119 + if [ $? -ne 0 ]; then 120 + echo "[FAIL]" 121 + exitcode=1 122 + else 123 + echo "[PASS]" 124 + fi 125 + 115 126 echo "-------------------" 116 127 echo "running userfaultfd" 117 128 echo "-------------------" ··· 197 186 echo "[PASS]" 198 187 fi 199 188 189 + echo "-------------------------" 190 + echo "running mlock-random-test" 191 + echo "-------------------------" 192 + ./mlock-random-test 193 + if [ $? -ne 0 ]; then 194 + echo "[FAIL]" 195 + exitcode=1 196 + else 197 + echo "[PASS]" 198 + fi 199 + 200 200 echo "--------------------" 201 201 echo "running mlock2-tests" 202 202 echo "--------------------" 203 203 ./mlock2-tests 204 + if [ $? -ne 0 ]; then 205 + echo "[FAIL]" 206 + exitcode=1 207 + else 208 + echo "[PASS]" 209 + fi 210 + 211 + echo "-----------------" 212 + echo "running thuge-gen" 213 + echo "-----------------" 214 + ./thuge-gen 204 215 if [ $? -ne 0 ]; then 205 216 echo "[FAIL]" 206 217 exitcode=1