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>
This commit is contained in:
Daniel Vetter 2012-12-18 22:55:58 +01:00
parent f0546374a0
commit d798ab9c2a
2 changed files with 9 additions and 0 deletions

View File

@ -104,6 +104,7 @@ TESTS_scripts_M = \
$(NULL)
TESTS_scripts = \
test_rte_check
debugfs_reader \
debugfs_emon_crash \
sysfs_l3_parity \

8
tests/test_rte_check Executable file
View File

@ -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