Commit Graph

112 Commits

Author SHA1 Message Date
Devang Patel
ef89bbb436 Add EXTRA_OPTIONS on the llvmgxx command line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50217 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-24 17:59:03 +00:00
Devang Patel
00dd691e75 Add EXTRA_OPTIONS on the llvmgcc command line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50216 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-24 17:54:25 +00:00
Tanya Lattner
856ce2da14 Do not pass -g flag when compiling tests, so remove the C.Flags. This only happens if you have a debug build of llvm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48498 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-18 19:59:04 +00:00
Chris Lattner
27137a5e34 Fix a typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48133 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-10 06:49:40 +00:00
Gabor Greif
1514010270 unbreak check-one
by supplying a dummy
"verbose" procedure


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47603 91177308-0d34-0410-b5e6-96231b3b80d8
2008-02-26 13:27:49 +00:00
Gabor Greif
684ed3d987 While hunting for two hanging tests,
(on solaris10, which are:
  CodeGen/PowerPC/frounds.ll
  Transforms/InstCombine/2008-02-23-MulSub.ll)

I needed a tool to figure out which one is the guilty.

To this end I have added a verbosity
option to the test/Makefile.

It can be invoked thus:

gmake check TESTSUITE=CodeGen/PowerPC VERBOSE="-v -v"

(The number of "-v"s specifies the verbosity level.
 Instead of "-v" other aliases can be specified,
 please consult the dejagnu docs for info.)

At level >= 2 following line is logged for each
test, before running it:

ABOUT TO RUN: <test>.ll


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47602 91177308-0d34-0410-b5e6-96231b3b80d8
2008-02-26 12:08:55 +00:00
Chris Lattner
57360d1f1c remove attributions from the rest of the llvm makefiles.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45416 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-29 20:11:13 +00:00
Gordon Henriksen
6530e9d8e6 Add explicit --enable-bindings option to configure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42526 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-02 09:50:18 +00:00
Gordon Henriksen
0908d49c22 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42090 91177308-0d34-0410-b5e6-96231b3b80d8 2007-09-18 12:26:17 +00:00
Reid Spencer
e41f23f93a For PR1411:
Don't try to use {} bracketing when setting a variable in site.exp


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36985 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-11 06:47:16 +00:00
Reid Spencer
51162baae1 Pass the LLVMGCC_LANGS variable through to Tcl.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36321 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-21 21:43:18 +00:00
Reid Spencer
e5190d2851 Add the TARGETS_TO_BUILD variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36313 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-21 20:39:26 +00:00
Duncan Sands
64609d341e Look for site.exp in the build directory, not the source directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36138 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-16 16:45:12 +00:00
Reid Spencer
470f260577 We don't need the path to be set for llvmgcc/llvmgxx any more.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36078 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-15 19:27:27 +00:00
Reid Spencer
42f98e54d1 Echo command lines only if the user wants them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36050 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-15 06:22:48 +00:00
Reid Spencer
9df5561a95 Add a new testing target: check-one. It is used like this:
make check-one TESTONE=test/path/to/test.ll

This runs a single check in exactly the same way that dejagnu runs it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36049 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-15 06:18:50 +00:00
Reid Spencer
4e3e115e15 Make the shlibext and llvmlibsdir variables accessible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35939 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-12 02:49:30 +00:00
Reid Spencer
3d89bc5845 Make new variables available: compile_c, compile_cxx, link to handle tests
that want to use LLVM's notion of compiling and linking programs. This
includes all the -I -L and optimization switches that LLVM would using to
compile or link any of this files.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35920 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-11 20:57:39 +00:00
Reid Spencer
ec68fd4391 For PR1196:
Prevent infinite loops and memory bombs by setting a ulimit on time and
space for running the dejagnu tests.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34184 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-11 20:18:32 +00:00
Reid Spencer
82d5ee5653 Add a gxxcmd variable for the g++ command line used to build llvm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33659 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-30 16:06:55 +00:00
Reid Spencer
fb15c005bb Regression is gone, don't try to find it on clean target.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33296 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-17 07:59:14 +00:00
Reid Spencer
b18ec660cc Enable path completion when typing the TESTSUITE= option by allowing the
test directory to precede the test suite name. That is, it will strip off
test/ from TESTSUITE which allows path completion from the command line.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31662 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-11 01:02:45 +00:00
Chris Lattner
03ed625c66 If dejagnu is not found, tell the user instead of bombing out with an
obscure error.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29421 91177308-0d34-0410-b5e6-96231b3b80d8
2006-08-01 00:07:58 +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
db4264fee1 Use quotes properly so that the possibility of a null variable set is
eliminated. This can happen, for example, if LLVM is configured without
llvm-gcc in which case things like LLVMGCC_VERSION will be empty. In
such cases, deja-gnu fails with:
can't read "llvmgcc_version": no such variable
because it sees:
set llvmgcc_version
instead of:
set llvmgcc_version ""


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27676 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-13 20:33:59 +00:00
Tanya Lattner
1c62195c98 Added llvmgcc version to allow tests to be xfailed by frontend version.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27619 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-12 18:08:25 +00:00
Reid Spencer
805ab0789a Add the variable llvmgccmajvers to the site.exp file. This will contain
the major version number of llvm-gcc, as configured.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27465 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-06 22:22:08 +00:00
Reid Spencer
87df3636e1 Add a test that runs the ParallelJIT example program to ensure that the
JIT can run against a multi-threaded program without getting its data
structures messed up. Also had to add the examples directory to the path
for the tests so that ParallelJIT can be found.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22415 91177308-0d34-0410-b5e6-96231b3b80d8
2005-07-13 00:35:12 +00:00
Reid Spencer
70dd5214c4 Remove trailing blank line, just to test whether the new commit script
is going to credit the commit correctly or not.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22165 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-21 01:29:30 +00:00
Reid Spencer
2a43970b28 Finally get the quoting right for both Unix and Windows for the llvmgcc and
llvmgxx programs. dejagnu doesn't understand single quote and we need to
pass double quotes through to the shell in order to escape blanks in the
paths. This patch uses \" to escape the quotes passed through to the shell.
Thanks to Aaron Gray for testing this out on cygwin.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22155 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-20 20:13:41 +00:00
Reid Spencer
13a29035cc Allow dejagnu tests to run on Windows/Cygwin. Quote the value of the PATH
variable so that spaces don't screw it up.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20240 91177308-0d34-0410-b5e6-96231b3b80d8
2005-02-18 20:17:44 +00:00
Reid Spencer
2d7eb98621 Make sure the path is properly set in the llvmgcc and llvmgxx variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19267 91177308-0d34-0410-b5e6-96231b3b80d8
2005-01-03 04:05:32 +00:00
Reid Spencer
4a25494ee6 The dejagnu scripts need a path for llvm-gcc/llvm-g++ as well so use the
correct variable to get a "set the path first" invocation of those tools.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19127 91177308-0d34-0410-b5e6-96231b3b80d8
2004-12-24 03:38:01 +00:00
Reid Spencer
c553403233 For PR432:
* Use LLVMGCC and LLVMGXX variables instead of computing the name


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19097 91177308-0d34-0410-b5e6-96231b3b80d8
2004-12-22 05:57:50 +00:00
Chris Lattner
60bdce6fd0 Dejagnu doesn't work if you do TESTSUITE=.../
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
2004-12-12 21:39:49 +00:00
John Criswell
06c2e66435 Remove the last pieces of QMTest.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18581 91177308-0d34-0410-b5e6-96231b3b80d8
2004-12-06 21:35:32 +00:00
Reid Spencer
135e1d8c3c Change check to check-local per Makefile.rules changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18568 91177308-0d34-0410-b5e6-96231b3b80d8
2004-12-06 05:35:38 +00:00
Reid Spencer
ed2040d2fa Failing Feature/Regression test should fail the build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18507 91177308-0d34-0410-b5e6-96231b3b80d8
2004-12-04 22:34:47 +00:00
Chris Lattner
0e2f492a7c Clean feature also
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18491 91177308-0d34-0410-b5e6-96231b3b80d8
2004-12-04 06:47:07 +00:00
Tanya Lattner
9f97b4c228 Made it default to check instead of check-dejagnu.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18488 91177308-0d34-0410-b5e6-96231b3b80d8
2004-12-04 06:25:08 +00:00
Tanya Lattner
78887f46ac Added TCLSH var to site.exp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18396 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-30 19:13:06 +00:00
Chris Lattner
5b0a4ff668 If TESTSUITE is set, we obviously want to run dejagnu
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18392 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-30 17:45:08 +00:00
Chris Lattner
baf790e809 Don't stop make if there are XFAIL or XPASSes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18113 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-22 19:06:22 +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
Reid Spencer
8db573e190 Document quick-test target.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17644 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-09 06:32:58 +00:00
Reid Spencer
ed8c089469 Add a quick-test target that uses QUICKTEST variable to quickly run a
portion of the test suite. e.g.:

make quck-test QUICKTEST=Regression/Bytecode


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17643 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-09 06:28:32 +00:00
Alkis Evlogimenos
440add2697 Move path override in test/Makefile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17613 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-08 05:44:05 +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
Reid Spencer
4b8f82fbe6 Add the RUNTEST autoconf onfiguration variable for Deja-gnu support. This
tool runs Deja-gnu test suites. The 'make' variable RUNTEST is now set
automatically in the Makefile.config file.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17599 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-07 23:29:39 +00:00