2007-07-16 12:35:52 +08:00
|
|
|
LEVEL = ../../..
|
|
|
|
include $(LEVEL)/Makefile.common
|
2006-06-18 13:42:02 +08:00
|
|
|
|
2009-07-12 07:43:59 +08: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-11 03:32:31 +08:00
|
|
|
|
2009-06-14 02:28:48 +08:00
|
|
|
ifndef TESTARGS
|
2008-04-07 06:32:01 +08:00
|
|
|
ifdef VERBOSE
|
2009-06-14 02:28:48 +08:00
|
|
|
TESTARGS = -v
|
2009-03-13 08:21:49 +08:00
|
|
|
else
|
2009-06-14 02:28:48 +08:00
|
|
|
TESTARGS = -s
|
2009-03-19 04:25:18 +08:00
|
|
|
endif
|
2008-04-07 06:32:01 +08:00
|
|
|
endif
|
|
|
|
|
2009-07-12 02:34:43 +08:00
|
|
|
ifdef VG
|
|
|
|
VGARG="--vg"
|
|
|
|
else
|
|
|
|
VGARG=
|
|
|
|
endif
|
|
|
|
|
2007-07-16 12:35:52 +08:00
|
|
|
all::
|
2009-03-13 08:41:24 +08:00
|
|
|
@ echo '--- Running clang tests for $(TARGET_TRIPLE) ---'
|
2009-07-12 02:34:43 +08:00
|
|
|
@ PATH=$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts:$$PATH $(PROJ_SRC_DIR)/../utils/test/MultiTestRunner.py $(TESTARGS) $(TESTDIRS) $(VGARG)
|
2008-03-18 15:03:00 +08:00
|
|
|
|
|
|
|
clean::
|
2008-03-20 22:28:22 +08:00
|
|
|
@ rm -rf Output/
|
2008-03-18 15:03:00 +08:00
|
|
|
|
2008-04-07 06:32:01 +08:00
|
|
|
.PHONY: all report clean
|