diff options
author | Tanya Lattner <tonic@nondot.org> | 2004-11-07 04:59:52 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2004-11-07 04:59:52 +0000 |
commit | 7a7cb4c99b9021e8faeb9bba5c16f8a7e8edaf08 (patch) | |
tree | 8664fc1a5e2e58fe51999e7bbc526d3d997a7df0 /test | |
parent | 1976abd4cc1eb75d6e61e4e7945a6dc38085fe5a (diff) | |
download | external_llvm-7a7cb4c99b9021e8faeb9bba5c16f8a7e8edaf08.zip external_llvm-7a7cb4c99b9021e8faeb9bba5c16f8a7e8edaf08.tar.gz external_llvm-7a7cb4c99b9021e8faeb9bba5c16f8a7e8edaf08.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17555 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile index 466886e..be62151 100644 --- a/test/Makefile +++ b/test/Makefile @@ -110,3 +110,31 @@ qmtest-clean: $(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 |