blob: 0083efd1794be2103777a59aaf03c544a21c2559 [file] [log] [blame]
Peter Collingbourneb0589f12011-06-20 19:06:51 +00001LLDB_LEVEL := ..
2include $(LLDB_LEVEL)/Makefile
3
4.PHONY: programs
5
6all:: check-local
Chris Lattner30fdc8d2010-06-08 16:52:24 +00007
8#----------------------------------------------------------------------
9# Make all of the test programs
10#----------------------------------------------------------------------
Peter Collingbourneb0589f12011-06-20 19:06:51 +000011programs:
Chris Lattner30fdc8d2010-06-08 16:52:24 +000012 find . -type d -depth 1 | xargs -J % find % \
13 -name Makefile \
14 -exec echo \; \
15 -exec echo make -f '{}' \; \
16 -execdir make \;
17
18#----------------------------------------------------------------------
Peter Collingbourneb0589f12011-06-20 19:06:51 +000019# Clean all of the test programs
Chris Lattner30fdc8d2010-06-08 16:52:24 +000020#----------------------------------------------------------------------
Peter Collingbourneb0589f12011-06-20 19:06:51 +000021clean::
Chris Lattner30fdc8d2010-06-08 16:52:24 +000022 find . -type d -depth 1 | xargs -J % find % \
23 -name Makefile \
24 -exec echo \; \
25 -exec echo make -f '{}' clean \; \
26 -execdir make clean \;
Peter Collingbourneb0589f12011-06-20 19:06:51 +000027
28#----------------------------------------------------------------------
29# Run the tests
30#----------------------------------------------------------------------
31check-local::
32 rm -rf ../test-rdir
33 env PATH="$(ToolDir):$(PATH)" \
34 PYTHONPATH=$(ToolDir) \
35 $(SHLIBPATH_VAR)=$(LibDir) \
36 python $(PROJ_SRC_DIR)/dotest.py -i -v -r ../test-rdir