17 lines · bash
1#!/bin/sh2# SPDX-License-Identifier: GPL-2.03# Runs API tests for struct drm_mm (DRM range manager)4 5if ! /sbin/modprobe -n -q test-drm_mm; then6 echo "drivers/gpu/drm_mm: module test-drm_mm is not found in /lib/modules/`uname -r` [skip]"7 exit 778fi9 10if /sbin/modprobe -q test-drm_mm; then11 /sbin/modprobe -q -r test-drm_mm12 echo "drivers/gpu/drm_mm: ok"13else14 echo "drivers/gpu/drm_mm: module test-drm_mm could not be removed [FAIL]"15 exit 116fi17