summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/drivers/gpu/i915.sh
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-12-15 23:17:32 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2016-12-15 23:17:32 +0100
commit09dee2a608a4a7d42f021f83084ade7de2415d7e (patch)
tree5e5cce54d2f20763e03eaeb07aaac1bffd968f9d /tools/testing/selftests/drivers/gpu/i915.sh
parentMerge tag 'arc-4.10-rc1-part1' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff)
parentselftest/gpio: add gpio test case (diff)
downloadlinux-09dee2a608a4a7d42f021f83084ade7de2415d7e.tar.xz
linux-09dee2a608a4a7d42f021f83084ade7de2415d7e.zip
Merge tag 'linux-kselftest-4.10-rc1-update' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest updates from Shuah Khan: "This update consists of: - new tests to exercise the Sync Kernel Infrastructure. These tests are part of a battery of Android libsync tests and are re-written to test the new sync user-space interfaces from Emilio López, and Gustavo Padovan. - test to run hw-independent mock tests for i915.ko from Chris Wilson - a new gpio test case from Bamvor Jian Zhang - missing gitignore additions" * tag 'linux-kselftest-4.10-rc1-update' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: selftest/gpio: add gpio test case selftest: sync: improve assert() failure message kselftests: Exercise hw-independent mock tests for i915.ko selftests: add missing gitignore files/dirs selftests: add missing set-tz to timers .gitignore selftest: sync: stress test for merges selftest: sync: stress consumer/producer test selftest: sync: stress test for parallelism selftest: sync: wait tests for sw_sync framework selftest: sync: merge tests for sw_sync framework selftest: sync: fence tests for sw_sync framework selftest: sync: basic tests for sw_sync framework
Diffstat (limited to 'tools/testing/selftests/drivers/gpu/i915.sh')
-rwxr-xr-xtools/testing/selftests/drivers/gpu/i915.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/testing/selftests/drivers/gpu/i915.sh b/tools/testing/selftests/drivers/gpu/i915.sh
new file mode 100755
index 000000000000..d407f0fa1e3a
--- /dev/null
+++ b/tools/testing/selftests/drivers/gpu/i915.sh
@@ -0,0 +1,14 @@
+#!/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
+ echo "drivers/gpu/i915: ok"
+else
+ echo "drivers/gpu/i915: [FAIL]"
+ exit 1
+fi