2007-07-16 08:35:52 +04:00
|
|
|
LEVEL = ../../..
|
|
|
|
include $(LEVEL)/Makefile.common
|
2007-07-11 21:01:13 +04:00
|
|
|
|
2009-07-12 23:00:20 +04:00
|
|
|
# Test in all immediate subdirectories if unset.
|
2009-09-04 21:40:27 +04:00
|
|
|
ifdef TESTSUITE
|
|
|
|
TESTDIRS := $(TESTSUITE:%=$(PROJ_SRC_DIR)/%)
|
|
|
|
else
|
2009-07-25 19:26:08 +04:00
|
|
|
TESTDIRS ?= $(PROJ_SRC_DIR)
|
2009-09-04 21:40:27 +04:00
|
|
|
endif
|
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
|
|
|
|
|
2009-09-08 20:39:23 +04:00
|
|
|
ifdef LIT2
|
|
|
|
all::
|
|
|
|
@ echo '--- Running clang tests for $(TARGET_TRIPLE) ---'
|
|
|
|
@ $(LLVM_SRC_ROOT)/utils/lit/lit.py \
|
|
|
|
--path $(ToolDir) \
|
|
|
|
--path $(LLVM_SRC_ROOT)/test/Scripts \
|
|
|
|
$(TESTARGS) $(TESTDIRS) $(VGARG)
|
|
|
|
else
|
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-27 23:01:13 +04:00
|
|
|
@ $(PROJ_SRC_DIR)/../utils/test/MultiTestRunner.py \
|
2009-07-31 09:54:17 +04:00
|
|
|
--root $(PROJ_SRC_DIR) \
|
2009-07-27 23:01:13 +04:00
|
|
|
--path $(ToolDir) \
|
|
|
|
--path $(LLVM_SRC_ROOT)/test/Scripts \
|
|
|
|
$(TESTARGS) $(TESTDIRS) $(VGARG)
|
2009-09-08 20:39:23 +04:00
|
|
|
endif
|
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
|