summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/lib/bitmap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/lib/bitmap.sh')
-rwxr-xr-xtools/testing/selftests/lib/bitmap.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/testing/selftests/lib/bitmap.sh b/tools/testing/selftests/lib/bitmap.sh
new file mode 100755
index 000000000000..2da187b6ddad
--- /dev/null
+++ b/tools/testing/selftests/lib/bitmap.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+# Runs bitmap infrastructure tests using test_bitmap kernel module
+
+if /sbin/modprobe -q test_bitmap; then
+ /sbin/modprobe -q -r test_bitmap
+ echo "bitmap: ok"
+else
+ echo "bitmap: [FAIL]"
+ exit 1
+fi