Merge branches 'pm-cpufreq-x86', 'pm-cpufreq-docs' and 'intel_pstate'
[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