]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - tools/testing/selftests/lib/bitmap.sh
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / tools / testing / selftests / lib / bitmap.sh
CommitLineData
5fd003f5 1#!/bin/sh
b2441318 2# SPDX-License-Identifier: GPL-2.0
5fd003f5 3# Runs bitmap infrastructure tests using test_bitmap kernel module
e0912c01
SS
4if ! /sbin/modprobe -q -n test_bitmap; then
5 echo "bitmap: [SKIP]"
6 exit 77
7fi
5fd003f5
DD
8
9if /sbin/modprobe -q test_bitmap; then
10 /sbin/modprobe -q -r test_bitmap
11 echo "bitmap: ok"
12else
13 echo "bitmap: [FAIL]"
14 exit 1
15fi