Chris Lattner | 1467e03 | 2007-07-16 04:35:52 +0000 | [diff] [blame] | 1 | LEVEL = ../../.. |
2 | include $(LEVEL)/Makefile.common | ||||
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 3 | |
Daniel Dunbar | 852119e | 2008-08-28 23:28:16 +0000 | [diff] [blame] | 4 | # Test in all immediate subdirectories if unset. |
5 | TESTDIRS ?= $(shell echo $(PROJ_SRC_DIR)/*/) | ||||
Chris Lattner | 15bd799 | 2008-03-10 19:32:31 +0000 | [diff] [blame] | 6 | |
Daniel Dunbar | d5134b0 | 2009-06-13 18:28:48 +0000 | [diff] [blame] | 7 | ifndef TESTARGS |
Chris Lattner | 9d294b9 | 2008-04-06 22:32:01 +0000 | [diff] [blame] | 8 | ifdef VERBOSE |
Daniel Dunbar | d5134b0 | 2009-06-13 18:28:48 +0000 | [diff] [blame] | 9 | TESTARGS = -v |
Mike Stump | 039df91 | 2009-03-13 00:21:49 +0000 | [diff] [blame] | 10 | else |
Daniel Dunbar | d5134b0 | 2009-06-13 18:28:48 +0000 | [diff] [blame] | 11 | TESTARGS = -s |
Mike Stump | 9a2f1ac | 2009-03-18 20:25:18 +0000 | [diff] [blame] | 12 | endif |
Chris Lattner | 9d294b9 | 2008-04-06 22:32:01 +0000 | [diff] [blame] | 13 | endif |
14 | |||||
Nuno Lopes | a7afc45 | 2009-07-11 18:34:43 +0000 | [diff] [blame^] | 15 | ifdef VG |
16 | VGARG="--vg" | ||||
17 | else | ||||
18 | VGARG= | ||||
19 | endif | ||||
20 | |||||
Chris Lattner | 1467e03 | 2007-07-16 04:35:52 +0000 | [diff] [blame] | 21 | all:: |
Mike Stump | e3c75e0 | 2009-03-13 00:41:24 +0000 | [diff] [blame] | 22 | @ echo '--- Running clang tests for $(TARGET_TRIPLE) ---' |
Nuno Lopes | a7afc45 | 2009-07-11 18:34:43 +0000 | [diff] [blame^] | 23 | @ PATH=$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts:$$PATH $(PROJ_SRC_DIR)/../utils/test/MultiTestRunner.py $(TESTARGS) $(TESTDIRS) $(VGARG) |
Gabor Greif | 17feadf | 2008-03-18 07:03:00 +0000 | [diff] [blame] | 24 | |
25 | clean:: | ||||
Gabor Greif | 5267d7c | 2008-03-20 14:28:22 +0000 | [diff] [blame] | 26 | @ rm -rf Output/ |
Gabor Greif | 17feadf | 2008-03-18 07:03:00 +0000 | [diff] [blame] | 27 | |
Chris Lattner | 9d294b9 | 2008-04-06 22:32:01 +0000 | [diff] [blame] | 28 | .PHONY: all report clean |