Linux 4.19.133
[linux/fpc-iii.git] / tools / testing / selftests / lib / bitmap.sh
blob5a90006d1aea9d5a75cfcc7026e679f863306ac9
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
4 # Kselftest framework requirement - SKIP code is 4.
5 ksft_skip=4
7 # Runs bitmap infrastructure tests using test_bitmap kernel module
8 if ! /sbin/modprobe -q -n test_bitmap; then
9 echo "bitmap: module test_bitmap is not found [SKIP]"
10 exit $ksft_skip
13 if /sbin/modprobe -q test_bitmap; then
14 /sbin/modprobe -q -r test_bitmap
15 echo "bitmap: ok"
16 else
17 echo "bitmap: [FAIL]"
18 exit 1