1 # test/Regression/Transforms/DSAnalysis/Makefile
3 # This directory contains test cases for the llvm data structure analysis
4 # library. These are meant to test all of the nooks and cranies of the
5 # algorithm, although we really have no way to verify that the answers produced
9 include $(LEVEL)/test/Makefile.tests
11 ## Get absolute pathname for analyze
12 LANALYZE_ABS := $(shell cd `dirname $(LANALYZE)`; pwd)/analyze
14 TESTS := $(wildcard *.ll)
15 FTESTS := $(wildcard *.llx) # Freeform tests
17 all:: $(addprefix Output/, $(TESTS:%.ll=%.out))
19 Output/%.out: %.ll $(LANALYZE) Output/.dir
20 (cd Output/; $(LANALYZE_ABS) -datastructure ../$< || \
21 ( rm -f ../$@; ../$(FAILURE) ../$@ ))
23 all:: $(addprefix Output/, $(FTESTS:%.llx=%.llx.out))
28 Output/%.llx.out: %.llx Output/.dir $(LAS)