hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/tools/testing/selftests/lib/bitmap.sh
....@@ -1,19 +1,3 @@
11 #!/bin/sh
22 # SPDX-License-Identifier: GPL-2.0
3
-
4
-# Kselftest framework requirement - SKIP code is 4.
5
-ksft_skip=4
6
-
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
11
-fi
12
-
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
19
-fi
3
+$(dirname $0)/../kselftest/module.sh "bitmap" test_bitmap