New testcase
[oota-llvm.git] / test / Transforms / DSAnalysis / Makefile
1 #                    test/Regression/Transforms/DSAnalysis/Makefile
2 #
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
6 # are correct.
7 #
8 LEVEL = ../../../..
9 include $(LEVEL)/test/Makefile.tests
10
11 ## Get absolute pathname for analyze
12 LANALYZE_ABS := $(shell cd `dirname $(LANALYZE)`; pwd)/analyze
13
14 TESTS := $(wildcard *.ll)
15 FTESTS := $(wildcard *.llx)   # Freeform tests
16
17 all:: $(addprefix Output/, $(TESTS:%.ll=%.out))
18
19 Output/%.out: %.ll $(LANALYZE) Output/.dir
20         (cd Output/; $(LANALYZE_ABS) -datastructure ../$< || \
21                  ( rm -f ../$@; ../$(FAILURE) ../$@ ))
22
23 all:: $(addprefix Output/, $(FTESTS:%.llx=%.llx.out))
24
25 clean::
26         rm -f *.ps *.dot
27
28 Output/%.llx.out: %.llx Output/.dir $(LAS)
29         -$(TESTRUNR) $<
30