[llvm-commits] CVS: llvm/test/Makefile

Tanya Brethour tbrethou at cs.uiuc.edu
Sat Nov 6 21:00:04 PST 2004



Changes in directory llvm/test:

Makefile updated: 1.57 -> 1.58
---
Log message:

Added rough support for dejagnu testing. Changes need to be made to autoconf to provide the target_triplet and to check for 'grep -C' which would be used instead of the python script we have now. Eventually the python script should be converted to bash.
The dejagnu-clean needs to be fixed to use find.


---
Diffs of the changes:  (+28 -0)

Index: llvm/test/Makefile
diff -u llvm/test/Makefile:1.57 llvm/test/Makefile:1.58
--- llvm/test/Makefile:1.57	Wed Nov  3 11:11:23 2004
+++ llvm/test/Makefile	Sat Nov  6 22:59:52 2004
@@ -110,3 +110,31 @@
 	$(RM) -f $(LLVM_SRC_ROOT)/test/results.qmr \
 		$(LLVM_OBJ_ROOT)/test/results.qmr
 
+EXPECT = expect
+RUNTEST = runtest
+
+check-dejagnu: site.exp
+	$(RUNTEST)
+
+dejagnu-clean:
+	cd $(LLVM_OBJ_ROOT)/test/
+	$(RM) -rf Regression/*/Output
+	$(RM) -rf Regression/*/*/Output
+
+site.exp: Makefile $(LLVM_OBJ_ROOT)/Makefile.config
+	@echo 'Making a new site.exp file...'
+	@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 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
+	@echo 'set llvmgcc $(LLVMGCCDIR)/bin/gcc' >> site.tmp
+	@echo 'set llvmgxx $(LLVMGCCDIR)/bin/g++' >> site.tmp
+	@echo '## All variables above are generated by configure. Do Not Edit ## ' >>site.tmp
+	@test ! -f site.exp || \
+	sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp
+	@-rm -f site.bak
+	@test ! -f site.exp || mv site.exp site.bak
+	@mv site.tmp site.exp






More information about the llvm-commits mailing list