diff options
author | David Decotigny <decot@googlers.com> | 2016-02-19 17:24:00 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-20 06:54:09 +0300 |
commit | 5fd003f56c2c584b62a0486ad25bbd4be02b8b6c (patch) | |
tree | 17e2cfd6f198fe731c75c01ec9eca263ba8cb6ca /tools/testing/selftests/lib/bitmap.sh | |
parent | e52bc7c28ac9f54db6f86b19ed65c599def18c98 (diff) | |
download | linux-5fd003f56c2c584b62a0486ad25bbd4be02b8b6c.tar.xz |
test_bitmap: unit tests for lib/bitmap.c
This is mainly testing bitmap construction and conversion to/from u32[]
for now.
Tested:
qemu i386, x86_64, ppc, ppc64 BE and LE, ARM.
Signed-off-by: David Decotigny <decot@googlers.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/lib/bitmap.sh')
-rwxr-xr-x | tools/testing/selftests/lib/bitmap.sh | 10 |
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 |