xref: /linux/tools/testing/selftests/lib/bitmap.sh (revision 31368ce83c59a5422ee621a38aeea98142d0ecf7)
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