Commit Graph

226 Commits

Author SHA1 Message Date
Daniel Dunbar e9feb71497 Avoid a problem with ulimit on Solaris & friends, patch by Edward O'Callaghan!
llvm-svn: 77767
2009-08-01 03:37:54 +00:00
Bob Wilson e3228acc62 Fix ocaml tests for 64-bit MacOS systems. LLVM is currently built
as 32-bit code by default, and if gcc defaults to 64-bit code then ocamlc
requires a -cc "gcc -arch i386" option.  We were hardcoding -cc g++
and throwing away any other compiler options that were determined when
ocamlc was configured and built.

llvm-svn: 76658
2009-07-21 21:56:46 +00:00
Shantonu Sen 89d5c4196e Clarify how to configure llvm-gcc-4.2 for use with
test suite. Remove documentation for --with-f2c, which
is no longer supported. Remove information about obtaining
tcl/expect, which ship with Mac OS X by default since
10.4.

llvm-svn: 74271
2009-06-26 05:44:53 +00:00
Dan Gohman 4cc0cae46c Add more ulimit limits, to catch more kinds of runaway behavior.
llvm-svn: 69847
2009-04-23 00:28:31 +00:00
Evan Cheng 15f1754eb4 Re-commit r67334 and r67349 with fix.
llvm-svn: 67451
2009-03-21 18:12:24 +00:00
Nick Lewycky 18ca80cdda Revert r67334 and r37349 which break "make check" on Linux.
llvm-svn: 67368
2009-03-20 07:56:31 +00:00
Evan Cheng 05799db963 More makefile changes to allow dejagnu tests to pass when system tools default to a different target from the llvm configuration (e.g. 64-bit gcc and 32-bit llvm).
llvm-svn: 67334
2009-03-19 20:27:23 +00:00
Mikhail Glushenkov 0658cac532 Trailing whitespace.
llvm-svn: 66269
2009-03-06 12:25:56 +00:00
Chris Lattner df86f29347 make sure that make fully evaluates variables when determining how compile_c and
friends should work.  This fixes 2006-11-30-Pubnames.cpp and friends on darwin
with the new -mmacosx-version-min change.

llvm-svn: 65564
2009-02-26 19:19:26 +00:00
Devang Patel dd5dbca59c Run dsymutil on darwin, when it is expected, before running gdb test.
llvm-svn: 63548
2009-02-02 21:09:36 +00:00
Misha Brukman 36daf0d1c7 * Quoted the executable 'runtest' to emphasize the binary needed;
otherwise, some unlucky souls start looking for a 'dejagnu' binary...
* Properly capitalized LLVM.

llvm-svn: 61546
2009-01-01 20:26:05 +00:00
Misha Brukman bbfefd9612 Removed extra spaces.
llvm-svn: 61527
2008-12-31 17:38:27 +00:00
Torok Edwin 016fa4cd0d Fix make check on Solaris 10/x86: the default grep is not GNU grep, same for as.
llvm-svn: 57912
2008-10-21 17:21:32 +00:00
Nuno Lopes 9a04782fda add support for running the test suite with valgrind. to run it just type 'make VG=1', as in clang
beware of the 42000 leaks reported by valgrind in the Constant.cpp + Type.cpp files. it needs fixing IMHO

llvm-svn: 57245
2008-10-07 14:48:14 +00:00
Devang Patel f7c3979bb0 Add EXTRA_OPTIONS on the llvmgxx command line.
llvm-svn: 50217
2008-04-24 17:59:03 +00:00
Devang Patel 1a5cfb05b5 Add EXTRA_OPTIONS on the llvmgcc command line.
llvm-svn: 50216
2008-04-24 17:54:25 +00:00
Tanya Lattner a043a9b0f0 Do not pass -g flag when compiling tests, so remove the C.Flags. This only happens if you have a debug build of llvm.
llvm-svn: 48498
2008-03-18 19:59:04 +00:00
Chris Lattner 0c1d7b43a6 Fix a typo
llvm-svn: 48133
2008-03-10 06:49:40 +00:00
Gabor Greif 0a43601153 unbreak check-one
by supplying a dummy
"verbose" procedure

llvm-svn: 47603
2008-02-26 13:27:49 +00:00
Gabor Greif d5691031f5 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

llvm-svn: 47602
2008-02-26 12:08:55 +00:00
Chris Lattner 11cc8b3c14 remove attributions from the rest of the llvm makefiles.
llvm-svn: 45416
2007-12-29 20:11:13 +00:00
Gordon Henriksen d48f4598a4 Add explicit --enable-bindings option to configure.
llvm-svn: 42526
2007-10-02 09:50:18 +00:00
Gordon Henriksen 5c4d7b8052 (no commit message)
llvm-svn: 42090
2007-09-18 12:26:17 +00:00
Reid Spencer c014687788 For PR1411:
Don't try to use {} bracketing when setting a variable in site.exp

llvm-svn: 36985
2007-05-11 06:47:16 +00:00
Reid Spencer c7f2005d45 Pass the LLVMGCC_LANGS variable through to Tcl.
llvm-svn: 36321
2007-04-21 21:43:18 +00:00
Reid Spencer b39d96e59c Add the TARGETS_TO_BUILD variable.
llvm-svn: 36313
2007-04-21 20:39:26 +00:00
Duncan Sands 17a2ef6803 Look for site.exp in the build directory, not the source directory.
llvm-svn: 36138
2007-04-16 16:45:12 +00:00
Reid Spencer 8f4cf19075 We don't need the path to be set for llvmgcc/llvmgxx any more.
llvm-svn: 36078
2007-04-15 19:27:27 +00:00
Reid Spencer 6d4a417df9 Echo command lines only if the user wants them.
llvm-svn: 36050
2007-04-15 06:22:48 +00:00
Reid Spencer a9482c8916 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.

llvm-svn: 36049
2007-04-15 06:18:50 +00:00
Reid Spencer 09f5000873 Make the shlibext and llvmlibsdir variables accessible.
llvm-svn: 35939
2007-04-12 02:49:30 +00:00
Reid Spencer 641527f3e2 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.

llvm-svn: 35920
2007-04-11 20:57:39 +00:00
Reid Spencer 6ef8c5844d For PR1196:
Prevent infinite loops and memory bombs by setting a ulimit on time and
space for running the dejagnu tests.

llvm-svn: 34184
2007-02-11 20:18:32 +00:00
Reid Spencer 6f880918d0 Add a gxxcmd variable for the g++ command line used to build llvm.
llvm-svn: 33659
2007-01-30 16:06:55 +00:00
Reid Spencer 83b3d82672 Regression is gone, don't try to find it on clean target.
llvm-svn: 33296
2007-01-17 07:59:14 +00:00
Reid Spencer 279a3aefc3 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.

llvm-svn: 31662
2006-11-11 01:02:45 +00:00
Chris Lattner aba76b76b1 If dejagnu is not found, tell the user instead of bombing out with an
obscure error.

llvm-svn: 29421
2006-08-01 00:07:58 +00:00
Reid Spencer 497120ef63 Fix a problem where dejagnu won't accept the value of global tcl variable
"libdir" for some reason. Changing to llvmlibsdir instead fixes it.

llvm-svn: 28526
2006-05-28 07:22:42 +00:00
Reid Spencer 633301acea 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.

llvm-svn: 28525
2006-05-28 04:21:40 +00:00
Reid Spencer fabdf8087e 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 ""

llvm-svn: 27676
2006-04-13 20:33:59 +00:00
Tanya Lattner bd4a203208 Added llvmgcc version to allow tests to be xfailed by frontend version.
llvm-svn: 27619
2006-04-12 18:08:25 +00:00
Reid Spencer c5aca114a0 Add the variable llvmgccmajvers to the site.exp file. This will contain
the major version number of llvm-gcc, as configured.

llvm-svn: 27465
2006-04-06 22:22:08 +00:00
Reid Spencer 4f61c64639 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.

llvm-svn: 22415
2005-07-13 00:35:12 +00:00
Reid Spencer 9c636a3b9b Remove trailing blank line, just to test whether the new commit script
is going to credit the commit correctly or not.

llvm-svn: 22165
2005-05-21 01:29:30 +00:00
Reid Spencer 43a0f5bc54 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.

llvm-svn: 22155
2005-05-20 20:13:41 +00:00
Reid Spencer 75542d4e78 Allow dejagnu tests to run on Windows/Cygwin. Quote the value of the PATH
variable so that spaces don't screw it up.

llvm-svn: 20240
2005-02-18 20:17:44 +00:00
Reid Spencer 2f61775ee1 Make sure the path is properly set in the llvmgcc and llvmgxx variables.
llvm-svn: 19267
2005-01-03 04:05:32 +00:00
Reid Spencer 69d897cc22 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.

llvm-svn: 19127
2004-12-24 03:38:01 +00:00
Reid Spencer c4de911191 For PR432:
* Use LLVMGCC and LLVMGXX variables instead of computing the name

llvm-svn: 19097
2004-12-22 05:57:50 +00:00
Chris Lattner 360cda5ffd Dejagnu doesn't work if you do TESTSUITE=.../
You can't pass the trailing / into Dejagnu, so make the makefile strip it off

llvm-svn: 18836
2004-12-12 21:39:49 +00:00
John Criswell b2249635ae Remove the last pieces of QMTest.
llvm-svn: 18581
2004-12-06 21:35:32 +00:00
Reid Spencer ca1baad120 Change check to check-local per Makefile.rules changes.
llvm-svn: 18568
2004-12-06 05:35:38 +00:00
Reid Spencer 20275c1d5d Failing Feature/Regression test should fail the build
llvm-svn: 18507
2004-12-04 22:34:47 +00:00
Chris Lattner 144924cbaa Clean feature also
llvm-svn: 18491
2004-12-04 06:47:07 +00:00
Tanya Lattner 26a1367d8a Made it default to check instead of check-dejagnu.
llvm-svn: 18488
2004-12-04 06:25:08 +00:00
Tanya Lattner 33f621acf8 Added TCLSH var to site.exp.
llvm-svn: 18396
2004-11-30 19:13:06 +00:00
Chris Lattner 4114c7d87c If TESTSUITE is set, we obviously want to run dejagnu
llvm-svn: 18392
2004-11-30 17:45:08 +00:00
Chris Lattner ee59b6bf22 Don't stop make if there are XFAIL or XPASSes
llvm-svn: 18113
2004-11-22 19:06:22 +00:00
Tanya Lattner 0fbc9c8350 setting path to prcontext.tcl script. Right now it searches for tclsh in your path, but this should be obtained from configure.
llvm-svn: 17720
2004-11-13 23:36:18 +00:00
Reid Spencer 981afd7c1c Document quick-test target.
llvm-svn: 17644
2004-11-09 06:32:58 +00:00
Reid Spencer 3006081612 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

llvm-svn: 17643
2004-11-09 06:28:32 +00:00
Alkis Evlogimenos eb4dbfd4e2 Move path override in test/Makefile.
llvm-svn: 17613
2004-11-08 05:44:05 +00:00
Tanya Lattner 8fabe17ced Now using path to python found by configure.
llvm-svn: 17610
2004-11-08 03:26:59 +00:00
Reid Spencer 6bf36bdefb 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.

llvm-svn: 17599
2004-11-07 23:29:39 +00:00
Tanya Lattner d8f25acec4 Changed TEST to TESTSUITE
llvm-svn: 17598
2004-11-07 23:26:13 +00:00
Tanya Lattner 71a3368fdd Changed check-dejagnu to take TESTSUITE as its args instead of TEST in order to not conflict with other stuff. Added path for test/Scripts. Also added a check to deal with TESTSUITE and runtest flags.
llvm-svn: 17586
2004-11-07 21:39:41 +00:00
Tanya Lattner 7aad4fef81 Added support to specify which test suite dejagnu should run (Feature or Regression). Use TEST=suite
llvm-svn: 17572
2004-11-07 08:24:59 +00:00
Chris Lattner fbb15f39b8 Add missing file header
Add some comments
Switch to use 'find' to do the clean instead of globbing

llvm-svn: 17559
2004-11-07 05:05:37 +00:00
Tanya Lattner 9082d7a6fd 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.

llvm-svn: 17555
2004-11-07 04:59:52 +00:00
Brian Gaeke 1845e9b4c7 CONFIGURATION isn't spelled Configuration, it's spelled BuildMode.
Due to qmtest's or llvm.py's lousy error checking, this single error
causes qmtest to fork-bomb the machine, filling the process table with
python processes that do nothing.  Clearly, better error checking is
needed.

llvm-svn: 17449
2004-11-03 17:11:23 +00:00
Reid Spencer f88808ae43 Internalize variable names to prevent recursive assignment. Cleanup docs.
llvm-svn: 17359
2004-10-30 09:19:36 +00:00
Reid Spencer ebb2334fa5 Per Bug 257
The "Programs" directory no longer lives here. It have been moved to its
own cvs module. Check it out into llvm/projects and configure/build it
there.

llvm-svn: 16182
2004-09-05 08:18:23 +00:00
John Criswell 8b25914667 Add support for using the prcontext python script instead of grep -C.
llvm-svn: 15426
2004-08-02 22:29:38 +00:00
John Criswell fa2f3686a3 Merged in RELEASE_12.
llvm-svn: 12532
2004-03-29 20:23:11 +00:00
Brian Gaeke a03eeb0b7d Separate out target for cleaning up qmtest garbage.
llvm-svn: 10395
2003-12-11 04:48:38 +00:00
Brian Gaeke 71040f9251 Clean more qmtest files.
llvm-svn: 10125
2003-11-21 01:12:47 +00:00
Brian Gaeke ce9a00cea6 Blow away compiled versions of qmtest classes on 'make clean'.
llvm-svn: 10119
2003-11-20 19:57:17 +00:00
John Criswell f4720a1575 We now support different expectations for different OS's/architectures.
llvm-svn: 10094
2003-11-19 21:13:25 +00:00
John Criswell cdde075fa9 Merged RELEASE_1.
llvm-svn: 9533
2003-10-27 17:46:42 +00:00
John Criswell c82fb1520e Do not report errors if QMTest returns a non-zero value.
llvm-svn: 9404
2003-10-23 14:11:53 +00:00
Brian Gaeke bf7bbf1881 Quote qmtest args in $(CONTEXT).
I don't remember precisely what bug this fixed, but I remember that
it fixed a bug. Sorry. (I think one of these args had a Funny Shell Character
in it, or a space, or something, in my last build, and this seemed
like the obvious fix.)

llvm-svn: 9044
2003-10-11 00:10:05 +00:00
John Criswell c751a493af Removed the AnalyzeTest class.
llvm-svn: 9041
2003-10-10 20:24:56 +00:00
John Criswell 486035591f Make the clean target remove the QMTest temporary directory.
Remove QMTest python classes which are no longer used.

llvm-svn: 9040
2003-10-10 19:52:30 +00:00
John Criswell c64016dfde Fixed the location of the expectations file.
Added the registration of the LLVM Database class.

llvm-svn: 8946
2003-10-07 21:30:07 +00:00
John Criswell e078b436f1 Switching over to the new test database.
Adding new qmt files should no longer be necessary.
QMTest should know just "magically" know what sort of test each file is.

llvm-svn: 8945
2003-10-07 21:13:47 +00:00
John Criswell c6bf1422a9 Added the CXXTest test class.
llvm-svn: 8788
2003-09-30 19:04:08 +00:00
John Criswell 67fdd43bff Allow multiple object trees to use the source tree tests at once by
using a QMTEST_CLASS_PATH local to the object tree.
Add the gui target to start the QMTest gui (saves writing a few lines of
documentation too).	:)

llvm-svn: 8552
2003-09-16 02:59:26 +00:00
John Criswell dd49d8c669 QMTest test and resource classes are always register before running the tests.
This ensures that any python bytecode generated by another platform is
replaced with new pythong bytecode before the tests begin.

Perferably, a better method will be implemented in the next few weeks.

llvm-svn: 8549
2003-09-15 21:54:49 +00:00
John Criswell 5ba345c6c4 Added the .t implicit rule. You can now run an individual set of QMTests by
specifying "make <test>.t"
For example, make feature.t will run the feature tests.
Removed the QMTESTS variable since it is no longer used.

llvm-svn: 8414
2003-09-08 21:25:35 +00:00
John Criswell e75273471c Checkin of autoconf-style object root.
Use QMTest for the feature and Regression tests.
Continue using the Makefile system for the Programs tests.
Adjusted the Makefile rules to handle building outside the source directory.

llvm-svn: 8381
2003-09-06 15:12:21 +00:00
John Criswell 63abacc766 Added the ability to run the QMTests. It is currently not enabled by default,
but is here in case others want to start trying it out.

llvm-svn: 8001
2003-08-21 15:09:29 +00:00
John Criswell fa30f1be46 Removed Makefile.common.
Since we are including Makefile.test, we automatically get Makefile.common.
Furthermore, the double inclusion of Makefile.common causes the test suite to
be executed twice per invocation of the top level make.

llvm-svn: 7652
2003-08-06 21:50:36 +00:00
Chris Lattner bc69c9cf87 libraries is used for internal stuff, not as a real testcase
llvm-svn: 4580
2002-11-06 20:36:52 +00:00
Vikram S. Adve 8280198b62 include Makefile.tests.
llvm-svn: 1914
2002-03-18 04:05:26 +00:00
Chris Lattner 0343be4ff6 More rules checked in
llvm-svn: 1571
2002-01-23 21:36:59 +00:00
Chris Lattner c3aa35b66b New minimal makefile
llvm-svn: 1561
2002-01-23 17:22:17 +00:00
Vikram S. Adve 46e663c6f2 Rename Makefile.target to Makefile.tests.
Make all a :: target.

llvm-svn: 1488
2001-12-15 01:04:39 +00:00
Vikram S. Adve 485cabdb31 Run testsparc, not testcodegen for testing the back end.
llvm-svn: 1482
2001-12-15 00:29:14 +00:00
Chris Lattner 913fe0f5a9 Build Programs subdirectory
llvm-svn: 1473
2001-12-14 16:43:59 +00:00
Vikram S. Adve 491d8dde35 Replaced another HERE.
llvm-svn: 1132
2001-11-05 00:22:16 +00:00
Vikram S. Adve e943db9be9 Put common rules for compiling programs into Makefile.target.
llvm-svn: 1130
2001-11-05 00:18:30 +00:00
Vikram S. Adve 03fb2f3916 Added rules for building sparc executable with and without tracing,
and linking with local runtime library.

llvm-svn: 993
2001-10-28 20:18:11 +00:00
Vikram S. Adve 4b9c7c23b2 Disable alloca code gen tests until size of extra args in stack frame
can be computed.

llvm-svn: 957
2001-10-22 22:33:08 +00:00
Vikram S. Adve c00a4343be *** empty log message ***
llvm-svn: 913
2001-10-18 22:47:50 +00:00
Vikram S. Adve 595747054d Reverse previous change.
llvm-svn: 867
2001-10-18 00:23:32 +00:00
Vikram S. Adve aad04c97e8 Generate assembly code for testcodegen.
llvm-svn: 866
2001-10-18 00:22:14 +00:00
Vikram S. Adve 72c1d99922 Disable codgen test for calltest.ll.
llvm-svn: 855
2001-10-17 20:14:34 +00:00
Chris Lattner 914fae18c2 Add rule to build executables
llvm-svn: 846
2001-10-15 20:08:19 +00:00
Chris Lattner 66fc9e73ed Compile with v9 extensions
llvm-svn: 839
2001-10-15 17:55:35 +00:00
Vikram S. Adve 8514ec3186 Enable most tests.
llvm-svn: 797
2001-10-14 23:15:42 +00:00
Vikram S. Adve e483768174 Delete *.s on clean.
llvm-svn: 726
2001-10-11 04:24:10 +00:00
Vikram S. Adve 96654a04db testmemory and sumarray now work with instruction selection.
llvm-svn: 715
2001-10-10 20:10:48 +00:00
Chris Lattner 9b316883ed Add path to as so it doesn't find llvm as if that path is set.
llvm-svn: 687
2001-10-01 00:50:36 +00:00
Chris Lattner 2ef89c99b3 Exclude a couple of tests that the regalloc stuff doesn't handle yet
llvm-svn: 686
2001-10-01 00:40:49 +00:00
Chris Lattner 17fe55defd Add commands to assemble and compile a .ll file
llvm-svn: 661
2001-09-28 14:13:09 +00:00
Chris Lattner c36515c32f Un-neuter makefile
llvm-svn: 623
2001-09-18 16:33:36 +00:00
Vikram S. Adve 338f4cc397 Folded inssel*.ll into select.ll.
llvm-svn: 621
2001-09-18 13:10:26 +00:00
Chris Lattner 16dd09a7bb * Clean up InstrForest
* Fix ins sel problem, test case:
void "foo" (int *%x, int *%y)

begin
        seteq int *%x, %y
        ret void
end

llvm-svn: 552
2001-09-12 01:28:49 +00:00
Chris Lattner 8cc2749e2a Rerun backend tests if as or llc is changed
llvm-svn: 518
2001-09-09 21:58:36 +00:00
Chris Lattner 43840bd6f6 Executables have moved into centralized location
llvm-svn: 499
2001-09-07 22:58:33 +00:00
Chris Lattner 7170360d74 Add llc path to setup
Make code gen simpler, don't drop extra files all over the place

llvm-svn: 494
2001-09-07 22:13:44 +00:00
Chris Lattner c6b8a071b6 Make makefile not depend on where stuff is installed!!!!
llvm-svn: 491
2001-09-07 21:24:25 +00:00
Vikram S. Adve 1f98eb43e5 Add testcodegen target, and restrict which tests are run for it.
llvm-svn: 407
2001-08-28 23:26:44 +00:00
Vikram S. Adve 5abe128752 Had used the wrong option.
llvm-svn: 339
2001-07-31 21:52:28 +00:00
Vikram S. Adve a223748a52 Added support for testing instruction selection on all but 2 tests.
llvm-svn: 333
2001-07-31 21:45:56 +00:00
Chris Lattner 2f7c963559 Initial revision
llvm-svn: 2
2001-06-06 20:29:01 +00:00