2007-07-16 12:35:52 +08:00
|
|
|
LEVEL = ../../..
|
|
|
|
include $(LEVEL)/Makefile.common
|
2006-06-18 13:42:02 +08:00
|
|
|
|
2009-07-13 03:00:20 +08:00
|
|
|
# Test in all immediate subdirectories if unset.
|
2009-07-25 23:26:08 +08:00
|
|
|
TESTDIRS ?= $(PROJ_SRC_DIR)
|
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-28 03:01:13 +08:00
|
|
|
@ $(PROJ_SRC_DIR)/../utils/test/MultiTestRunner.py \
|
2009-07-31 13:54:17 +08:00
|
|
|
--root $(PROJ_SRC_DIR) \
|
2009-07-28 03:01:13 +08:00
|
|
|
--path $(ToolDir) \
|
|
|
|
--path $(LLVM_SRC_ROOT)/test/Scripts \
|
|
|
|
$(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
|