Dejagnu doesn't work if you do TESTSUITE=.../
authorChris Lattner <sabre@nondot.org>
Sun, 12 Dec 2004 21:39:49 +0000 (21:39 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 12 Dec 2004 21:39:49 +0000 (21:39 +0000)
You can't pass the trailing / into Dejagnu, so make the makefile strip it off

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18836 91177308-0d34-0410-b5e6-96231b3b80d8

test/Makefile

index 5aa74d376b0e1dd865998816eac03a4610c11263..7e3d1290f500a56f35f20f4907da3d26f10e7aca 100644 (file)
@@ -23,7 +23,8 @@ include Makefile.tests
 #===------------------------------------------------------------------------===#
 
 ifdef TESTSUITE
-RUNTESTFLAGS := --tool $(TESTSUITE)
+CLEANED_TESTSUITE := $(patsubst %/,%,$(TESTSUITE))
+RUNTESTFLAGS := --tool $(CLEANED_TESTSUITE)
 endif
 
 check-local:: site.exp