Skip to contentSkip to conversation

selftest/mm: Add test for checking mmap across 128TB boundary

PATCH New Aneesh Kumar K.V 1 participant 1 message Nov 13, 2017 Kselftest

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftest/mm: Add test for checking mmap across 128TB boundary

---
 tools/testing/selftests/vm/Makefile         |   1 +
 tools/testing/selftests/vm/run_vmtests      |  11 ++
 tools/testing/selftests/vm/va_128TBswitch.c | 152 ++++++++++++++++++++++++++++
 3 files changed, 164 insertions(+)
 create mode 100644 tools/testing/selftests/vm/va_128TBswitch.c
tools/testing/selftests/vm/Makefile +1 -0
index cbb29e41ef2b..b1fb3cd7cf52 100644
@@ -17,6 +17,7 @@ TEST_GEN_FILES += transhuge-stress
 TEST_GEN_FILES += userfaultfd
 TEST_GEN_FILES += mlock-random-test
 TEST_GEN_FILES += virtual_address_range
+TEST_GEN_FILES += va_128TBswitch
 
 TEST_PROGS := run_vmtests
 
tools/testing/selftests/vm/run_vmtests +11 -0
index 07548a1fa901..b367f7801b67 100755
@@ -176,4 +176,15 @@ else
 	echo "[PASS]"
 fi
 
+echo "-----------------------------"
+echo "running virtual address 128TB switch test" 
+echo "-----------------------------"
+./va_128TBswitch
+if [ $? -ne 0 ]; then
+	echo "[FAIL]"
+	exitcode=1
+else
+	echo "[PASS]"
+fi
+
 exit $exitcode
tools/testing/selftests/vm/va_128TBswitch.c new file +152 -0

152 lines not on this page · raw message

Signature · 1 line
2.13.6