summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-12-18 22:55:58 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-12-20 11:02:19 +0100
commitd798ab9c2a092a08e14c6f2dfb1777376ba407a8 (patch)
tree9f518c7dfa223a67adf02a433ae4c6436d0c48ab
parentf0546374a001bbf8a4e05548a5320d05f3cc2d02 (diff)
tests: add testcase to check igt runtime enviroment
Now that we've abandonded the autohell testrunner, need to port this over. Easiest is to just add another testcase ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--tests/Makefile.am1
-rwxr-xr-xtests/test_rte_check8
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 0476908..b0ac7dd 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -104,6 +104,7 @@ TESTS_scripts_M = \
$(NULL)
TESTS_scripts = \
+ test_rte_check
debugfs_reader \
debugfs_emon_crash \
sysfs_l3_parity \
diff --git a/tests/test_rte_check b/tests/test_rte_check
new file mode 100755
index 0000000..6389592
--- /dev/null
+++ b/tests/test_rte_check
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+whoami | grep root || ( echo ERROR: not running as root; exit 1 )
+
+SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
+. $SOURCE_DIR/drm_lib.sh
+
+exit 0