aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/vm/run_vmtests
diff options
context:
space:
mode:
authorRalph Campbell <rcampbell@nvidia.com>2020-04-22 12:50:27 -0700
committerJason Gunthorpe <jgg@mellanox.com>2020-05-19 16:48:31 -0300
commitfee9f6d1b8df35ce4ec14a49f27a7d9e4e06fd57 (patch)
treeaefa0797ab701e1ab486445584fa598120078091 /tools/testing/selftests/vm/run_vmtests
parentmm/hmm/test: add selftest driver for HMM (diff)
downloadlinux-dev-fee9f6d1b8df35ce4ec14a49f27a7d9e4e06fd57.tar.xz
linux-dev-fee9f6d1b8df35ce4ec14a49f27a7d9e4e06fd57.zip
mm/hmm/test: add selftests for HMM
Add some basic stand alone self tests for HMM. The test program and shell scripts use the test_hmm.ko driver to exercise HMM functionality in the kernel. Link: https://lore.kernel.org/r/20200422195028.3684-3-rcampbell@nvidia.com Signed-off-by: Ralph Campbell <rcampbell@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'tools/testing/selftests/vm/run_vmtests')
-rwxr-xr-xtools/testing/selftests/vm/run_vmtests16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/testing/selftests/vm/run_vmtests b/tools/testing/selftests/vm/run_vmtests
index 76ca5e7a3951..a3f4f30f0a2e 100755
--- a/tools/testing/selftests/vm/run_vmtests
+++ b/tools/testing/selftests/vm/run_vmtests
@@ -307,4 +307,20 @@ else
echo "[FAIL]"
exitcode=1
fi
+
+echo "running HMM smoke test"
+echo "------------------------------------"
+./test_hmm.sh smoke
+ret_val=$?
+
+if [ $ret_val -eq 0 ]; then
+ echo "[PASS]"
+elif [ $ret_val -eq $ksft_skip ]; then
+ echo "[SKIP]"
+ exitcode=$ksft_skip
+else
+ echo "[FAIL]"
+ exitcode=1
+fi
+
exit $exitcode