xref: /kernel/linux/linux-6.6/tools/testing/selftests/drivers/gpu/drm_mm.sh
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/tools/testing/selftests/drivers/gpu/
162306a36Sopenharmony_ci#!/bin/sh
262306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
362306a36Sopenharmony_ci# Runs API tests for struct drm_mm (DRM range manager)
462306a36Sopenharmony_ci
562306a36Sopenharmony_ciif ! /sbin/modprobe -n -q test-drm_mm; then
662306a36Sopenharmony_ci       echo "drivers/gpu/drm_mm: module test-drm_mm is not found in /lib/modules/`uname -r` [skip]"
762306a36Sopenharmony_ci       exit 77
862306a36Sopenharmony_cifi
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ciif /sbin/modprobe -q test-drm_mm; then
1162306a36Sopenharmony_ci       /sbin/modprobe -q -r test-drm_mm
1262306a36Sopenharmony_ci       echo "drivers/gpu/drm_mm: ok"
1362306a36Sopenharmony_cielse
1462306a36Sopenharmony_ci       echo "drivers/gpu/drm_mm: module test-drm_mm could not be removed [FAIL]"
1562306a36Sopenharmony_ci       exit 1
1662306a36Sopenharmony_cifi
17

Indexes created Thu Nov 07 10:32:03 CST 2024