summaryrefslogtreecommitdiff
path: root/test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/Makefile b/test/Makefile
index 1f0dea5233..adbca665a9 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -119,11 +119,15 @@ qmtest-clean:
# DejaGNU testing support
#===------------------------------------------------------------------------===#
-EXPECT = expect
RUNTEST = runtest
+ifdef TESTSUITE
+RUNTESTFLAGS := --tool $(TEST)
+endif
+
check-dejagnu: site.exp
- $(RUNTEST) --tool $(TEST)
+ PATH=$(LLVM_SRC_ROOT)/test/Scripts:$(PATH) $(RUNTEST) $(RUNTESTFLAGS)
+
dejagnu-clean:
$(RM) -rf `find $(LLVM_OBJ_ROOT)/test/Regression -name Output -type d -print`
@@ -133,7 +137,7 @@ site.exp: Makefile $(LLVM_OBJ_ROOT)/Makefile.config
@echo '## these variables are automatically generated by make ##' >site.tmp
@echo '# Do not edit here. If you wish to override these values' >>site.tmp
@echo '# edit the last section' >>site.tmp
- @echo "set target_triplet i686-pc-linux-gnu" >> site.tmp
+ @echo "set target_triplet $(TARGET_TRIPLE)" >> site.tmp
@echo 'set prcontext $(LLVM_SRC_ROOT)/test/Scripts/prcontext.py' >> site.tmp
@echo 'set srcdir $(LLVM_SRC_ROOT)/test' >>site.tmp
@echo "set objdir $(LLVM_OBJ_ROOT)/test" >>site.tmp