summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/sysctl/run_numerictests
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/sysctl/run_numerictests')
-rw-r--r--tools/testing/selftests/sysctl/run_numerictests10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/testing/selftests/sysctl/run_numerictests b/tools/testing/selftests/sysctl/run_numerictests
new file mode 100644
index 000000000000..8510f93f2d14
--- /dev/null
+++ b/tools/testing/selftests/sysctl/run_numerictests
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+SYSCTL="/proc/sys"
+TARGET="${SYSCTL}/vm/swappiness"
+ORIG=$(cat "${TARGET}")
+TEST_STR=$(( $ORIG + 1 ))
+
+. ./common_tests
+
+exit $rc