summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/drivers/gpu/i915.sh
blob: c06d6e8a8dcc91ad3fd1952e1d52503a87df49af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# Runs hardware independent tests for i915 (drivers/gpu/drm/i915)

if ! /sbin/modprobe -q -r i915; then
	echo "drivers/gpu/i915: [SKIP]"
	exit 77
fi

if /sbin/modprobe -q i915 mock_selftests=-1; then
	/sbin/modprobe -q -r i915
	echo "drivers/gpu/i915: ok"
else
	echo "drivers/gpu/i915: [FAIL]"
	exit 1
fi