Commit Graph

72 Commits

Author SHA1 Message Date
Reid Spencer
0f5aed5648 Make the llvm-runtest function much more amenable by eliminating all the
global variables that needed to be passed in. This makes it possible to
add new global variables with only a couple changes (Makefile and llvm-dg.exp)
instead of touching every single dg.exp file.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35918 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-11 19:56:59 +00:00
Reid Spencer
0aac889d71 Update the way llvm2cpp tests are done:
1. Make sure bytecode/assembly inputs are always redirected stdin so that
   the module name is <stdin>. This helps not get false negatives when the
   diff is done.
2. Scan the test file to determine if llvm-upgrade needs to be run.
3. Avoid running testings that are XFAIL'd because they'll cause a failure
   when run for llvm2cpp.
4. Get some better error message output.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35914 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-11 17:56:23 +00:00
Reid Spencer
ea60e204ab No, libLLVMbzip2 does not have a .a suffix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28624 91177308-0d34-0410-b5e6-96231b3b80d8
2006-06-01 07:23:32 +00:00
Reid Spencer
42505f5567 Fix gcc command line options after LLVMCore and LLVMbzip2 became archive
libraries.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28623 91177308-0d34-0410-b5e6-96231b3b80d8
2006-06-01 07:19:28 +00:00
Reid Spencer
226368ff4e 1. No need to thwart this test with an environment variable. Turning it off
is the default and handled by the makefile system and runtest
2. Redirect stderr of llvm-as and llvm2cpp so that warning messages about
   instrinsics don't cause Tcl to report the run as failed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28576 91177308-0d34-0410-b5e6-96231b3b80d8
2006-05-30 23:07:17 +00:00
Reid Spencer
0490c0f124 Fix a bug with diffing the wrong files. Make output more readable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28542 91177308-0d34-0410-b5e6-96231b3b80d8
2006-05-29 18:09:38 +00:00
Reid Spencer
492196c89f Fix a problem where dejagnu won't accept the value of global tcl variable
"libdir" for some reason. Changing to llvmlibsdir instead fixes it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28526 91177308-0d34-0410-b5e6-96231b3b80d8
2006-05-28 07:22:42 +00:00
Reid Spencer
15d4059430 Provide an infrastructure for testing the llvm2cpp program (yet to be
committed). This infrastructure is only activated when RUNLLVM2CPP=1 is
specified on the make command line. Currently it is only supported in the
Feature test suite.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28525 91177308-0d34-0410-b5e6-96231b3b80d8
2006-05-28 04:21:40 +00:00
Reid Spencer
8b437e05b5 Improve error output. Use the third parameter of the "catch" command to
capture the error output from the exec option. This generally will capture
the stderr messages generated by the tools. This information is then
printed if the test fails. This helps to recognize more quickly what the
error was. Otherwise, this information is lost.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28385 91177308-0d34-0410-b5e6-96231b3b80d8
2006-05-18 19:42:16 +00:00
Tanya Lattner
9727555859 Added the ability to xfail based on llvmgcc version
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27635 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-12 21:57:40 +00:00
Chris Lattner
3726ff0099 Automatically pass -emit-llvm to llvmgcc when using %llvmgcc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26623 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-08 22:32:20 +00:00
Tanya Lattner
b761433e81 Adding timeout for a test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18372 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-30 06:29:45 +00:00
Tanya Lattner
9397204e50 Forgot to join srcdir and subdir for complete path for input files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18022 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-19 23:00:19 +00:00
Tanya Lattner
f9e7943915 Adding srcdir arg. Added ability to specify the path to an input file. This is needed for when srcdir != objdir.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18021 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-19 22:46:23 +00:00
Tanya Lattner
d85f0af7c2 setting path to prcontext.tcl script. Right now it searches for tclsh in your path, but this should be obtained from configure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17720 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-13 23:36:18 +00:00
Tanya Lattner
c7185ac36a Run prcontext.tcl with tclsh and let it be found in the path. This should be found by configure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17713 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-13 23:16:17 +00:00
Tanya Lattner
de942dc12d Changed to use tcl script.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17711 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-13 22:55:51 +00:00
Tanya Lattner
00a7469e69 Now using path to python found by configure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17610 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-08 03:26:59 +00:00
Tanya Lattner
808fafa4cc More srcdir != objdir changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17596 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-07 23:21:50 +00:00
Tanya Lattner
e243e2ff45 Made changes to support objdir!=srcdir.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17590 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-07 22:04:21 +00:00
Tanya Lattner
70053a5160 With the changes to these files, the Regression test suite should be tested by dejagnu without anyproblem.
Some variables could be made global.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17557 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-07 05:02:56 +00:00
Tanya Lattner
3bdb2f58c0 First crack at support to run tests using dejagnu. This file contains a procedure to run a test like TestRunner.sh does.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17521 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-06 21:07:41 +00:00