summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2011-10-30 22:27:19 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2011-10-30 22:27:19 +0100
commit20ff3839e448ba383b73a227889445a35d197cdc (patch)
tree29f634980a7e231a4741bcf0ec39752ac7affcea
parent931aa17754bad046f9a1d870894468527cb10c17 (diff)
tests: don't run kernel check from make check
Add a new target test for that. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--Makefile.am3
-rw-r--r--tests/Makefile.am10
2 files changed, 12 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 9375823..ed57af6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -26,3 +26,6 @@ SHADER_DEBUGGER_SUBDIR = debugger
endif
SUBDIRS = lib man tools scripts tests benchmarks $(SHADER_DEBUGGER_SUBDIR)
+
+test:
+ ${MAKE} -C tests test
diff --git a/tests/Makefile.am b/tests/Makefile.am
index b966369..3d18f73 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -60,10 +60,18 @@ TESTS_scripts = \
debugfs_reader \
$(NULL)
-TESTS = $(TESTS_progs) \
+kernel_tests = \
+ $(TESTS_progs) \
$(TESTS_scripts) \
$(NULL)
+TESTS = \
+ $(NULL)
+
+test:
+ whoami | grep root || ( echo not running as root; exit 1 )
+ make TESTS="${kernel_tests}" check
+
HANG = \
gem_bad_batch \
gem_hang \