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