drm_mm.sh 384 B

12345678910111213141516
  1. #!/bin/sh
  2. # SPDX-License-Identifier: GPL-2.0
  3. # Runs API tests for struct drm_mm (DRM range manager)
  4. if ! /sbin/modprobe -n -q test-drm_mm; then
  5. echo "drivers/gpu/drm_mm: [skip]"
  6. exit 77
  7. fi
  8. if /sbin/modprobe -q test-drm_mm; then
  9. /sbin/modprobe -q -r test-drm_mm
  10. echo "drivers/gpu/drm_mm: ok"
  11. else
  12. echo "drivers/gpu/drm_mm: [FAIL]"
  13. exit 1
  14. fi