15fd003f5SDavid Decotigny#!/bin/sh 2*b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 35fd003f5SDavid Decotigny# Runs bitmap infrastructure tests using test_bitmap kernel module 4e0912c01SSumit Semwalif ! /sbin/modprobe -q -n test_bitmap; then 5e0912c01SSumit Semwal echo "bitmap: [SKIP]" 6e0912c01SSumit Semwal exit 77 7e0912c01SSumit Semwalfi 85fd003f5SDavid Decotigny 95fd003f5SDavid Decotignyif /sbin/modprobe -q test_bitmap; then 105fd003f5SDavid Decotigny /sbin/modprobe -q -r test_bitmap 115fd003f5SDavid Decotigny echo "bitmap: ok" 125fd003f5SDavid Decotignyelse 135fd003f5SDavid Decotigny echo "bitmap: [FAIL]" 145fd003f5SDavid Decotigny exit 1 155fd003f5SDavid Decotignyfi 16