2007-07-16 08:35:52 +04:00
|
|
|
LEVEL = ../../..
|
|
|
|
include $(LEVEL)/Makefile.common
|
2007-07-11 21:01:13 +04:00
|
|
|
|
2009-07-12 03:43:59 +04:00
|
|
|
# Test in all immediate subdirectories if unset (except for the .svn and Output
|
|
|
|
# directories).
|
|
|
|
TESTDIRS ?= $(shell find $(PROJ_SRC_DIR) -depth 1 -type d -not -name .svn -prune -and -not -name Output -prune)
|
2008-03-10 22:32:31 +03:00
|
|
|
|
2009-06-13 22:28:48 +04:00
|
|
|
ifndef TESTARGS
|
2008-04-07 02:32:01 +04:00
|
|
|
ifdef VERBOSE
|
2009-06-13 22:28:48 +04:00
|
|
|
TESTARGS = -v
|
2009-03-13 03:21:49 +03:00
|
|
|
else
|
2009-06-13 22:28:48 +04:00
|
|
|
TESTARGS = -s
|
2009-03-18 23:25:18 +03:00
|
|
|
endif
|
2008-04-07 02:32:01 +04:00
|
|
|
endif
|
|
|
|
|
2009-07-11 22:34:43 +04:00
|
|
|
ifdef VG
|
|
|
|
VGARG="--vg"
|
|
|
|
else
|
|
|
|
VGARG=
|
|
|
|
endif
|
|
|
|
|
2007-07-16 08:35:52 +04:00
|
|
|
all::
|
2009-03-13 03:41:24 +03:00
|
|
|
@ echo '--- Running clang tests for $(TARGET_TRIPLE) ---'
|
2009-07-11 22:34:43 +04:00
|
|
|
@ PATH=$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts:$$PATH $(PROJ_SRC_DIR)/../utils/test/MultiTestRunner.py $(TESTARGS) $(TESTDIRS) $(VGARG)
|
2008-03-18 10:03:00 +03:00
|
|
|
|
|
|
|
clean::
|
2008-03-20 17:28:22 +03:00
|
|
|
@ rm -rf Output/
|
2008-03-18 10:03:00 +03:00
|
|
|
|
2008-04-07 02:32:01 +04:00
|
|
|
.PHONY: all report clean
|