File Index
Files and directories
Sign in
FILE

drm_mm.sh

File preview with syntax highlighting.

linux-6.19.14/tools/testing/selftests/drivers/gpu/drm_mm.sh BASH
 1#!/bin/sh
 2# SPDX-License-Identifier: GPL-2.0
 3# Runs API tests for struct drm_mm (DRM range manager)
 4
 5if ! /sbin/modprobe -n -q test-drm_mm; then
 6       echo "drivers/gpu/drm_mm: module test-drm_mm is not found in /lib/modules/`uname -r` [skip]"
 7       exit 77
 8fi
 9
10if /sbin/modprobe -q test-drm_mm; then
11       /sbin/modprobe -q -r test-drm_mm
12       echo "drivers/gpu/drm_mm: ok"
13else
14       echo "drivers/gpu/drm_mm: module test-drm_mm could not be removed [FAIL]"
15       exit 1
16fi
~/ Read-only file preview.