From: Vikram S. Adve Date: Fri, 1 Nov 2002 16:49:10 +0000 (+0000) Subject: Use absolute path name for "analyze" since we are changing directories. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=1b3b4c5ab03ca06d6c8cf59ed515a419e59ce5bf;p=oota-llvm.git Use absolute path name for "analyze" since we are changing directories. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4483 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/DSAnalysis/Makefile b/test/Transforms/DSAnalysis/Makefile index 8ef0b2be45e..715b4584137 100644 --- a/test/Transforms/DSAnalysis/Makefile +++ b/test/Transforms/DSAnalysis/Makefile @@ -8,13 +8,16 @@ 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) -datastructure ../$< || \ + (cd Output/; $(LANALYZE_ABS) -datastructure ../$< || \ ( rm -f ../$@; ../$(FAILURE) ../$@ )) all:: $(addprefix Output/, $(FTESTS:%.llx=%.llx.out))