bitmap.sh 323 B

123456789101112131415
  1. #!/bin/sh
  2. # SPDX-License-Identifier: GPL-2.0
  3. # Runs bitmap infrastructure tests using test_bitmap kernel module
  4. if ! /sbin/modprobe -q -n test_bitmap; then
  5. echo "bitmap: [SKIP]"
  6. exit 77
  7. fi
  8. if /sbin/modprobe -q test_bitmap; then
  9. /sbin/modprobe -q -r test_bitmap
  10. echo "bitmap: ok"
  11. else
  12. echo "bitmap: [FAIL]"
  13. exit 1
  14. fi