aboutsummaryrefslogtreecommitdiff
path: root/final/TEST.lineinfo.Makefile
blob: 98a40a72d9b9428cac9b05d663c80e65f4a882a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
##===- TEST.lineinfo.Makefile -----------------------------*- Makefile -*--===##
#
# This test is used to measure quality of debugging information.
#
##===----------------------------------------------------------------------===##

CURDIR  := $(shell cd .; pwd)
PROGDIR := $(PROJ_SRC_ROOT)
RELDIR  := $(subst $(PROGDIR),,$(CURDIR))
COLLECTOR := $(PROJ_SRC_ROOT)/CollectDebugInfoUsingLLDB.py 

REPORTS_TO_GEN := dbg
REPORTS_SUFFIX := $(addsuffix .report.txt, $(REPORTS_TO_GEN))

$(PROGRAMS_TO_TEST:%=test.$(TEST).%): \
test.$(TEST).%: Output/%.dbg Output/%.dbg.opt Output/%.native.dbg Output/%.native.dbg.opt
	$(PROJ_SRC_ROOT)/PrintLineNo.sh $*; \
	$(PROJ_SRC_ROOT)/FindMissingLineNo.py $* $(PROJ_SRC_ROOT);