blob: 25af266c762deb6b8b166f0bb0738a356359d7c8 [file] [log] [blame]
Chris Lattner1467e032007-07-16 04:35:52 +00001LEVEL = ../../..
2include $(LEVEL)/Makefile.common
Reid Spencer5f016e22007-07-11 17:01:13 +00003
Daniel Dunbar060cad52009-07-11 23:43:59 +00004# Test in all immediate subdirectories if unset (except for the .svn and Output
5# directories).
6TESTDIRS ?= $(shell find $(PROJ_SRC_DIR) -depth 1 -type d -not -name .svn -prune -and -not -name Output -prune)
Chris Lattner15bd7992008-03-10 19:32:31 +00007
Daniel Dunbard5134b02009-06-13 18:28:48 +00008ifndef TESTARGS
Chris Lattner9d294b92008-04-06 22:32:01 +00009ifdef VERBOSE
Daniel Dunbard5134b02009-06-13 18:28:48 +000010TESTARGS = -v
Mike Stump039df912009-03-13 00:21:49 +000011else
Daniel Dunbard5134b02009-06-13 18:28:48 +000012TESTARGS = -s
Mike Stump9a2f1ac2009-03-18 20:25:18 +000013endif
Chris Lattner9d294b92008-04-06 22:32:01 +000014endif
15
Nuno Lopesa7afc452009-07-11 18:34:43 +000016ifdef VG
17 VGARG="--vg"
18else
19 VGARG=
20endif
21
Chris Lattner1467e032007-07-16 04:35:52 +000022all::
Mike Stumpe3c75e02009-03-13 00:41:24 +000023 @ echo '--- Running clang tests for $(TARGET_TRIPLE) ---'
Nuno Lopesa7afc452009-07-11 18:34:43 +000024 @ 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 +000025
26clean::
Gabor Greif5267d7c2008-03-20 14:28:22 +000027 @ rm -rf Output/
Gabor Greif17feadf2008-03-18 07:03:00 +000028
Chris Lattner9d294b92008-04-06 22:32:01 +000029.PHONY: all report clean