blob: 4c65d7c0157d7d643f8d8c0ad9da462ab0216b0d [file] [log] [blame]
Chris Lattner1467e032007-07-16 04:35:52 +00001LEVEL = ../../..
2include $(LEVEL)/Makefile.common
Reid Spencer5f016e22007-07-11 17:01:13 +00003
Daniel Dunbar852119e2008-08-28 23:28:16 +00004# Test in all immediate subdirectories if unset.
5TESTDIRS ?= $(shell echo $(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) ---'
Nuno Lopesa7afc452009-07-11 18:34:43 +000023 @ PATH=$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts:$$PATH $(PROJ_SRC_DIR)/../utils/test/MultiTestRunner.py $(TESTARGS) $(TESTDIRS) $(VGARG)
Gabor Greif17feadf2008-03-18 07:03:00 +000024
25clean::
Gabor Greif5267d7c2008-03-20 14:28:22 +000026 @ rm -rf Output/
Gabor Greif17feadf2008-03-18 07:03:00 +000027
Chris Lattner9d294b92008-04-06 22:32:01 +000028.PHONY: all report clean