Add polly tests to configure file.
[llvm-testsuite.git] / TEST.dbg.Makefile
blobefab32c60bffd040a4dbe2fe7f458c91afc7a863
1 ##===- TEST.dbg.Makefile ----------------------------------*- Makefile -*--===##
3 # This test is used to measure quality of debugging information.
5 ##===----------------------------------------------------------------------===##
7 #----------------------------------------------------------------------
8 # Be sure to add the python path that points to the LLDB shared library.
9 # On MacOSX csh, tcsh:
10 #   setenv PYTHONPATH /Developer/Library/PrivateFrameworks/LLDB.framework/Resources/Python
11 # On MacOSX sh, bash:
12 #   export PYTHONPATH=/Developer/Library/PrivateFrameworks/LLDB.framework/Resources/Python
13 #----------------------------------------------------------------------
15 CURDIR  := $(shell cd .; pwd)
16 PROGDIR := $(PROJ_SRC_ROOT)
17 RELDIR  := $(subst $(PROGDIR),,$(CURDIR))
18 COLLECTOR := $(PROJ_SRC_ROOT)/CollectDebugInfoUsingLLDB.py 
20 REPORTS_TO_GEN := dbg
21 REPORTS_SUFFIX := $(addsuffix .report.txt, $(REPORTS_TO_GEN))
23 Output/%.bp: %.c Output/.dir
24         $(LCC) $(CPPFLAGS) $(CFLAGS) -g -c -emit-llvm $< -o $@.bc
25         $(LOPT) -print-breakpoints-for-testing $@.bc -o $@
27 Output/%.bp: %.cpp Output/.dir
28         $(LCXX) $(CPPFLAGS) $(CFLAGS) -g -c -emit-llvm $< -o $@.bc
29         $(LOPT) -print-breakpoints-for-testing $@.bc -o $@
31 Output/%.bp: %.m Output/.dir
32         $(LCC) $(CPPFLAGS) $(CFLAGS) -g -c -emit-llvm $< -o $@.bc
33         $(LOPT) -print-breakpoints-for-testing $@.bc -o $@
35 Output/%.bp: %.mm Output/.dir
36         $(LCXX) $(CPPFLAGS) $(CFLAGS) -g -c -emit-llvm $< -o $@.bc
37         $(LOPT) -print-breakpoints-for-testing $@.bc -o $@
39 $(PROGRAMS_TO_TEST:%=test.$(TEST).%): \
40 test.$(TEST).%: Output/%.bp Output/%.dbg Output/%.dbg.opt Output/%.native.dbg Output/%.native.dbg.opt
41         @-is_skip=0; \
42         if test "$*" == "reversefile"; then \
43           is_skip=1; \
44         fi; \
45         if test "$*" == "spellcheck"; then \
46           is_skip=1; \
47         fi; \
48         if test "$*" == "sumcol"; then \
49           is_skip=1; \
50         fi; \
51         if test "$*" == "wc"; then \
52           is_skip=1; \
53         fi; \
54         if test "$*" == "wordfreq"; then \
55           is_skip=1; \
56         fi; \
57         if test "$*" == "exptree"; then \
58           is_skip=1; \
59         fi; \
60         if test "$*" == "ray"; then \
61           is_skip=1; \
62         fi; \
63         if test "$*" == "oscar"; then \
64           is_skip=1; \
65         fi; \
66         if test "$*" == "spirit"; then \
67           is_skip=1; \
68         fi; \
69         if test $$is_skip == 0; then \
70           $(COLLECTOR) Output/$*.dbg Output/$*.bp Output/$*.dbg.out; \
71           $(COLLECTOR) Output/$*.dbg.opt Output/$*.bp Output/$*.dbg.opt.out; \
72           $(COLLECTOR) Output/$*.native.dbg Output/$*.bp Output/$*.native.dbg.out; \
73           $(COLLECTOR) Output/$*.native.dbg.opt Output/$*.bp Output/$*.native.dbg.opt.out; \
74           $(PROJ_SRC_ROOT)/CompareDebugInfo.py $*; \
75         fi