xref: /linux/tools/testing/selftests/lib/bitmap.sh (revision 26b433d0da062d6e19d75350c0171d3cf8ff560d)
1#!/bin/sh
2# Runs bitmap infrastructure tests using test_bitmap kernel module
3if ! /sbin/modprobe -q -n test_bitmap; then
4	echo "bitmap: [SKIP]"
5	exit 77
6fi
7
8if /sbin/modprobe -q test_bitmap; then
9	/sbin/modprobe -q -r test_bitmap
10	echo "bitmap: ok"
11else
12	echo "bitmap: [FAIL]"
13	exit 1
14fi
15