blob: 13cbfe6b3ce33fa4c9606bfd3273b0fff057caff [file] [log] [blame]
Chris Lattner1467e032007-07-16 04:35:52 +00001LEVEL = ../../..
2include $(LEVEL)/Makefile.common
Reid Spencer5f016e22007-07-11 17:01:13 +00003
Daniel Dunbar0126e5e2009-07-12 19:00:20 +00004# Test in all immediate subdirectories if unset.
Daniel Dunbar10aebbb2009-07-25 15:26:08 +00005TESTDIRS ?= $(PROJ_SRC_DIR)
Chris Lattner15bd7992008-03-10 19:32:31 +00006
Daniel Dunbard5134b02009-06-13 18:28:48 +00007ifndef TESTARGS
Chris Lattner9d294b92008-04-06 22:32:01 +00008ifdef VERBOSE
Daniel Dunbard5134b02009-06-13 18:28:48 +00009TESTARGS = -v
Mike Stump039df912009-03-13 00:21:49 +000010else
Daniel Dunbard5134b02009-06-13 18:28:48 +000011TESTARGS = -s
Mike Stump9a2f1ac2009-03-18 20:25:18 +000012endif
Chris Lattner9d294b92008-04-06 22:32:01 +000013endif
14
Nuno Lopesa7afc452009-07-11 18:34:43 +000015ifdef VG
16 VGARG="--vg"
17else
18 VGARG=
19endif
20
Chris Lattner1467e032007-07-16 04:35:52 +000021all::
Mike Stumpe3c75e02009-03-13 00:41:24 +000022 @ echo '--- Running clang tests for $(TARGET_TRIPLE) ---'
Daniel Dunbar67796472009-07-27 19:01:13 +000023 @ $(PROJ_SRC_DIR)/../utils/test/MultiTestRunner.py \
Daniel Dunbar1db467f2009-07-31 05:54:17 +000024 --root $(PROJ_SRC_DIR) \
Daniel Dunbar67796472009-07-27 19:01:13 +000025 --path $(ToolDir) \
26 --path $(LLVM_SRC_ROOT)/test/Scripts \
27 $(TESTARGS) $(TESTDIRS) $(VGARG)
Gabor Greif17feadf2008-03-18 07:03:00 +000028
29clean::
Gabor Greif5267d7c2008-03-20 14:28:22 +000030 @ rm -rf Output/
Gabor Greif17feadf2008-03-18 07:03:00 +000031
Chris Lattner9d294b92008-04-06 22:32:01 +000032.PHONY: all report clean