Skip to content

Commit 9e69fa4

Browse files
sj-awstorvalds
authored andcommitted
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 26b4224 ("selftests: expanding more mlock selftest") [2] commit 91cbacc ("tools/testing/selftests/vm/map_fixed_noreplace.c: add test for MAP_FIXED_NOREPLACE") [3] commit fcc1f2d ("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>
1 parent 467d12f commit 9e69fa4

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

‎tools/testing/selftests/vm/run_vmtests‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,17 @@ echo "NOTE: The above hugetlb tests provide minimal coverage. Use"
112112
echo " https://github.com/libhugetlbfs/libhugetlbfs.git for"
113113
echo " hugetlb regression testing."
114114

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+
115126
echo "-------------------"
116127
echo "running userfaultfd"
117128
echo "-------------------"
@@ -186,6 +197,17 @@ else
186197
echo "[PASS]"
187198
fi
188199

200+
echo "-------------------------"
201+
echo "running mlock-random-test"
202+
echo "-------------------------"
203+
./mlock-random-test
204+
if [ $? -ne 0 ]; then
205+
echo "[FAIL]"
206+
exitcode=1
207+
else
208+
echo "[PASS]"
209+
fi
210+
189211
echo "--------------------"
190212
echo "running mlock2-tests"
191213
echo "--------------------"
@@ -197,6 +219,17 @@ else
197219
echo "[PASS]"
198220
fi
199221

222+
echo "-----------------"
223+
echo "running thuge-gen"
224+
echo "-----------------"
225+
./thuge-gen
226+
if [ $? -ne 0 ]; then
227+
echo "[FAIL]"
228+
exitcode=1
229+
else
230+
echo "[PASS]"
231+
fi
232+
200233
if [ $VADDR64 -ne 0 ]; then
201234
echo "-----------------------------"
202235
echo "running virtual_address_range"

0 commit comments

Comments
 (0)