Merge tag 'gvt-fixes-2017-08-07' of https://github.com/01org/gvt-linux into drm-intel...
[sfrench/cifs-2.6.git] / tools / testing / selftests / lib / bitmap.sh
1 #!/bin/sh
2 # Runs bitmap infrastructure tests using test_bitmap kernel module
3 if ! /sbin/modprobe -q -n test_bitmap; then
4         echo "bitmap: [SKIP]"
5         exit 77
6 fi
7
8 if /sbin/modprobe -q test_bitmap; then
9         /sbin/modprobe -q -r test_bitmap
10         echo "bitmap: ok"
11 else
12         echo "bitmap: [FAIL]"
13         exit 1
14 fi