summaryrefslogtreecommitdiffstats
path: root/test/Makefile
blob: 13cbfe6b3ce33fa4c9606bfd3273b0fff057caff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
LEVEL = ../../..
include $(LEVEL)/Makefile.common

# Test in all immediate subdirectories if unset.
TESTDIRS ?= $(PROJ_SRC_DIR)

ifndef TESTARGS
ifdef VERBOSE
TESTARGS = -v
else
TESTARGS = -s
endif
endif

ifdef VG
  VGARG="--vg"
else
  VGARG=
endif

all::
	@ echo '--- Running clang tests for $(TARGET_TRIPLE) ---'
	@ $(PROJ_SRC_DIR)/../utils/test/MultiTestRunner.py \
	  --root $(PROJ_SRC_DIR) \
	  --path $(ToolDir) \
	  --path $(LLVM_SRC_ROOT)/test/Scripts \
	  $(TESTARGS) $(TESTDIRS) $(VGARG)

clean::
	@ rm -rf Output/

.PHONY: all report clean