bitmap.sh 429 B

12345678910111213141516171819
  1. #!/bin/sh
  2. # SPDX-License-Identifier: GPL-2.0
  3. # Kselftest framework requirement - SKIP code is 4.
  4. ksft_skip=4
  5. # Runs bitmap infrastructure tests using test_bitmap kernel module
  6. if ! /sbin/modprobe -q -n test_bitmap; then
  7. echo "bitmap: module test_bitmap is not found [SKIP]"
  8. exit $ksft_skip
  9. fi
  10. if /sbin/modprobe -q test_bitmap; then
  11. /sbin/modprobe -q -r test_bitmap
  12. echo "bitmap: ok"
  13. else
  14. echo "bitmap: [FAIL]"
  15. exit 1
  16. fi