summaryrefslogtreecommitdiff
path: root/test/Transforms/DSAnalysis/Makefile
blob: 9a50fe40dadabe43a9457c3ff117a5500042996c (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
#                    test/Regression/Transforms/DSAnalysis/Makefile
#
# This directory contains test cases for the llvm data structure analysis 
# library.  These are meant to test all of the nooks and cranies of the 
# algorithm, although we really have no way to verify that the answers produced
# are correct.
#
LEVEL = ../../../..
include $(LEVEL)/test/Makefile.tests

## Get absolute pathname for analyze
LANALYZE_ABS := $(shell cd `dirname $(LANALYZE)`; pwd)/analyze

TESTS := $(wildcard *.ll)
FTESTS := $(wildcard *.llx)   # Freeform tests

all:: $(addprefix Output/, $(TESTS:%.ll=%.out))

Output/%.out: %.ll $(LANALYZE) Output/.dir
	(cd Output/; $(LANALYZE_ABS) -datastructure ../$< || \
                 ( rm -f ../$@; ../$(FAILURE) ../$@ ))

all:: $(addprefix Output/, $(FTESTS:%.llx=%.llx.out))

clean::
	rm -f *.ps *.dot

Output/%.llx.out: %.llx Output/.dir $(LAS)
	-$(TESTRUNR) $<