i915.sh 350 B

12345678910111213141516
  1. #!/bin/sh
  2. # SPDX-License-Identifier: GPL-2.0
  3. # Runs hardware independent tests for i915 (drivers/gpu/drm/i915)
  4. if ! /sbin/modprobe -q -r i915; then
  5. echo "drivers/gpu/i915: [SKIP]"
  6. exit 77
  7. fi
  8. if /sbin/modprobe -q i915 mock_selftests=-1; then
  9. /sbin/modprobe -q -r i915
  10. echo "drivers/gpu/i915: ok"
  11. else
  12. echo "drivers/gpu/i915: [FAIL]"
  13. exit 1
  14. fi