Daniel Dunbar
d3f630f4d5
Add clang_site_config user variable, so that extra tests (e.g., utils/C++Syntax)
...
can always find the main clang site config (when invoked via CMake/Makefiles, at
least).
llvm-svn: 86139
2009-11-05 16:36:19 +00:00
Daniel Dunbar
377eb21801
Add EXTRA_TESTDIRS variable for specifying additional test directories.
...
llvm-svn: 86122
2009-11-05 06:55:24 +00:00
Nuno Lopes
f94d35387e
make 'make clean' work on Solaris, per Gabor Greif comment
...
llvm-svn: 85958
2009-11-03 22:39:56 +00:00
Nuno Lopes
6a20b2df3e
make 'make clean' clean everything
...
llvm-svn: 85957
2009-11-03 22:21:28 +00:00
Daniel Dunbar
a3b52d7fb4
Add target_triple to Clang site configuration.
...
llvm-svn: 85881
2009-11-03 07:25:53 +00:00
Douglas Gregor
6b603c9ec5
Allow the PYTHON make variable to override the default Python when running Clang tests, from Ken Dyck.
...
llvm-svn: 83065
2009-09-29 14:54:28 +00:00
Daniel Dunbar
a87097a6ac
Add the lib path to LD_LIBRARY_PATH, so finding .so works (more) portably.
...
llvm-svn: 82853
2009-09-26 07:36:09 +00:00
Daniel Dunbar
b5cbf77c2e
Remove old test runner, this has moved to LLVM/utils/lit and all known clients
...
have been updated.
- Please let me know of any problems.
llvm-svn: 82524
2009-09-22 05:16:02 +00:00
Daniel Dunbar
c6bca95723
Switch to using the new LLVM lit test runner by default.
...
llvm-svn: 82405
2009-09-20 22:00:17 +00:00
Daniel Dunbar
a173d9b874
Include LLVM {src,obj} root in lit.site.cfg, to support non-standard layouts.
...
llvm-svn: 82401
2009-09-20 19:04:35 +00:00
Daniel Dunbar
ecac0a408c
Tweak clang testing.
...
- Move CMake to using the new test runner.
- Switch Makefiles to use the lit.site.cfg.in template.
- Remove explicit --path arguments, instead this gets written into the site
configuration. This means running lit from the command line should use the
exact same configuration as is used in 'make test', assuming it can find the
site configuration file. You still need to run 'make test' (or the cmake
build target equivalent) at least once.
llvm-svn: 82160
2009-09-17 19:55:53 +00:00
Daniel Dunbar
8c10ff8f13
Teach LIT2 how to run Clang tests in the objdir for srcdir != objdir builds.
...
llvm-svn: 81472
2009-09-10 23:00:15 +00:00
Daniel Dunbar
be4253a0ca
Support running tests using the new 'lit', via 'make test LIT2=1'.
...
llvm-svn: 81225
2009-09-08 16:39:23 +00:00
Daniel Dunbar
c9b0a37211
Support 'make test TESTSUITE=CodeGen', etc.
...
llvm-svn: 81011
2009-09-04 17:40:27 +00:00
Daniel Dunbar
3667b99af3
MultiTestRunner: Simplify, cleanup, and rename!
...
- MultiTestRunner will eventually be renamed to 'lit', for LLVM integrated
tester/testing. This has the pros of being pronouncable and short.
- "Project" level configuration lives in 'lit.cfg', which is also what lit uses
to find the root testing directory in some cases. This can be overridden for
use in project files which want to precisely specify where things are.
- TestRunner.py is not longer able to be invoked directly.
- Moved some code to Util.py.
- Introduced a configuration object.
- Cleaned up --help, removed a few not-very-useful options.
- Tried not to break anything that works. :)
llvm-svn: 77665
2009-07-31 05:54:17 +00:00
Daniel Dunbar
b8aa9589bb
Tweak MultiTestRunner --path argument.
...
- Accept multiple values instead of embedding separator.
- Make sure this gets used when searching for 'clang' binary.
- Switch makefiles to using --path to stay in sync with cmake.
llvm-svn: 77234
2009-07-27 19:01:13 +00:00
Daniel Dunbar
605bd11311
MultiTestRunner: Make sure to point at src dir, for out of tree builds.
...
Factor out routine for executing the script commands.
llvm-svn: 77075
2009-07-25 15:26:08 +00:00
Daniel Dunbar
b6372fa7bb
Remove TESTDIR initialization, MultiTestRunner can find the test dirs itself.
...
llvm-svn: 77069
2009-07-25 12:44:58 +00:00
Daniel Dunbar
d37908f149
Revert to using shell to find files instead of 'find', that wasn't portable.
...
- I think I did this commit sequence before. :)
llvm-svn: 75420
2009-07-12 19:00:20 +00:00
Daniel Dunbar
0f4736424e
Stop looking for tests in the Output/ directory.
...
llvm-svn: 75404
2009-07-11 23:43:59 +00:00
Nuno Lopes
14ea24e422
restore proper valgrind support.
...
disclaim: I know nothing about Python, so apologies in advance if I break something
llvm-svn: 75368
2009-07-11 18:34:43 +00:00
Douglas Gregor
9d243d47dd
Fix out-of-source regression testing for makefiles
...
llvm-svn: 74832
2009-07-06 16:35:57 +00:00
Daniel Dunbar
c54e242fb4
Switch to the new test runner.
...
- TestRunner.sh still needs to be moved over.
- Please let me know if you find problems / missing features.
llvm-svn: 73298
2009-06-13 18:28:48 +00:00
Mike Stump
12ef15f8b2
Update to account for the great driver renaming.
...
llvm-svn: 67695
2009-03-25 17:56:16 +00:00
Mike Stump
0bb5f76493
Add version information to ISO style test results.
...
llvm-svn: 67227
2009-03-18 20:25:18 +00:00
Mike Stump
a1e619330f
Fix spelling error, and add target triplet to header.
...
llvm-svn: 66853
2009-03-13 00:41:24 +00:00
Mike Stump
39eaa7bc67
When testing with VERBOSE=0, report results in the ISO format. We
...
include the triplet so that people that run multiple targets in
parallel, say i386 and x86_64 can distinguish between the two.
llvm-svn: 66849
2009-03-13 00:21:49 +00:00
Daniel Dunbar
0132cdc45c
Add test case for __ASSEMBLER__ definition.
...
llvm-svn: 60363
2008-12-01 19:23:47 +00:00
Daniel Dunbar
bc47ed8e74
Ignore Output directories when searching for tests.
...
llvm-svn: 59660
2008-11-19 19:06:57 +00:00
Daniel Dunbar
6ff95305e6
Another attempt to make test/Makefile return correct error code.
...
llvm-svn: 56285
2008-09-17 18:08:07 +00:00
Daniel Dunbar
86169d6d0d
Ignore XFAIL tests when checking for make failure in test/
...
llvm-svn: 56262
2008-09-16 23:43:13 +00:00
Daniel Dunbar
5888e603c3
Allow 'make TESTDIRS=Sema' in test/ directory for only running a
...
subset of tests.
llvm-svn: 55513
2008-08-28 23:28:16 +00:00
Anders Carlsson
a3345a5d73
Handle Objective-C++ tests.
...
llvm-svn: 55254
2008-08-23 21:03:10 +00:00
Daniel Dunbar
66dd6382e4
Use full path to count script, and don't treat files with missing RUN
...
lines as errors.
llvm-svn: 55109
2008-08-21 04:43:28 +00:00
Daniel Dunbar
5f977e7b15
Missed a test case writing a .ll file.
...
Suppress count output from 'make test' on errors (used to generate
result code).
llvm-svn: 55107
2008-08-21 04:30:23 +00:00
Daniel Dunbar
746d104b3d
Reorder the PATH used during testing so $(ToolDir) and the LLVM
...
scripts dir appear before the user path.
- This is an attempt to pick up the right executables. We should
probably be substituting the exact things we want for clang a la
the LLVM test script.
llvm-svn: 55105
2008-08-21 03:03:44 +00:00
Daniel Dunbar
10a230ded9
Update test/Makefile to allow testing when using a separate obj
...
directory.
- Also, return proper error code if testing fails.
llvm-svn: 55103
2008-08-21 02:48:23 +00:00
Eli Friedman
a7e8c231ea
Fix some spam from make I accidentally introduced.
...
llvm-svn: 55027
2008-08-20 00:38:03 +00:00
Eli Friedman
02d4a78688
Get rid of the bogus -depth +0 argument; I really have no clue what the
...
heck it does on Darwin, but it's not part of POSIX, and the GNU version
of find errors out on it.
On a side note, there are a couple of new failures due to tests
including OS X specific headers.
llvm-svn: 55019
2008-08-20 00:02:01 +00:00
Daniel Dunbar
309dd7e31a
Change test/Makefile to automatically test all subdirs.
...
llvm-svn: 54923
2008-08-18 18:05:17 +00:00
Argyrios Kyrtzidis
3014572ea2
Move the C++ Sema tests into a separate SemaCXX directory.
...
llvm-svn: 54853
2008-08-16 20:53:59 +00:00
Chris Lattner
89026888ef
move all objc sema tests into a new SemaObjC directory. Next step is to
...
remove the objc- prefix from the tests that use it.
llvm-svn: 54084
2008-07-26 00:57:24 +00:00
Ted Kremenek
6bed7d6b1e
Remove Analysis-Apple.
...
llvm-svn: 52366
2008-06-16 21:21:48 +00:00
Eli Friedman
69d721e071
Enable the rewriter tests on all platforms; there don't appear to
...
be any regressions from this on my machine, but please let me know if
you run into issues. (The idea here is that it's better to run all
tests on all platforms if at all possible.)
llvm-svn: 52083
2008-06-07 23:20:33 +00:00
Chris Lattner
56a7bf5a7e
remove the old non-parallel test system. 'make' in clang/test now runs
...
the tests in parallel.
llvm-svn: 49290
2008-04-06 22:32:01 +00:00
Ted Kremenek
a1d9ed137a
Added test case for static analyzer to detect uses of uninitialized pointers as receivers in Objective-C message expressions.
...
Added test case directory "Analysis-Apple" which is only run on Apple (darwin) machines.
llvm-svn: 48844
2008-03-26 21:51:44 +00:00
Gabor Greif
56c563ad3f
Add ability to run clang tests under valgrind. Patch by Sam Bishop.
...
llvm-svn: 48621
2008-03-20 22:50:54 +00:00
Gabor Greif
f5eb286707
reduce chattyness of makefiles
...
llvm-svn: 48597
2008-03-20 14:28:22 +00:00
Gabor Greif
831c7c52c7
add 'clean' targets, make sure that 'make test' works after 'make clean'
...
llvm-svn: 48488
2008-03-18 07:03:00 +00:00
Chris Lattner
4114219ac6
rewriter tests are darwin specific, don't run them on other platforms.
...
llvm-svn: 48168
2008-03-10 19:32:31 +00:00