]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - tools/testing/selftests/drivers/gpu/i915.sh
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / tools / testing / selftests / drivers / gpu / i915.sh
CommitLineData
c4612656 1#!/bin/sh
b2441318 2# SPDX-License-Identifier: GPL-2.0
c4612656
CW
3# Runs hardware independent tests for i915 (drivers/gpu/drm/i915)
4
5if ! /sbin/modprobe -q -r i915; then
6 echo "drivers/gpu/i915: [SKIP]"
7 exit 77
8fi
9
10if /sbin/modprobe -q i915 mock_selftests=-1; then
953c7f82 11 /sbin/modprobe -q -r i915
c4612656
CW
12 echo "drivers/gpu/i915: ok"
13else
14 echo "drivers/gpu/i915: [FAIL]"
15 exit 1
16fi