Граф коммитов

64 Коммитов

Автор SHA1 Сообщение Дата
Chris Lattner 5e23597376 grr, lit only hates me, not the rest of the world.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101865 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-20 04:33:06 +00:00
Chris Lattner 56f3cc6a5f revert r101863, whcih is causing Sema/altivec-init.c to fail on a ton
of buildbots with:

error: 'error' diagnostics expected but not seen: 
  Line 9: too few elements in vector initialization (expected 8 elements, have 2)
1 warning and 1 error generated.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101864 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-20 04:31:55 +00:00
Jeffrey Yasskin e32be1d07c Print the errors when a clang test fails instead of just listing the
failing test files.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100469 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-05 21:20:38 +00:00
Daniel Dunbar b258d8f961 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).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86139 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-05 16:36:19 +00:00
Daniel Dunbar 6516813f77 Add EXTRA_TESTDIRS variable for specifying additional test directories.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86122 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-05 06:55:24 +00:00
Nuno Lopes f758dc0812 make 'make clean' work on Solaris, per Gabor Greif comment
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85958 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-03 22:39:56 +00:00
Nuno Lopes 320bd8fdc6 make 'make clean' clean everything
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85957 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-03 22:21:28 +00:00
Daniel Dunbar e9a7323737 Add target_triple to Clang site configuration.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85881 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-03 07:25:53 +00:00
Douglas Gregor b3496c7efd Allow the PYTHON make variable to override the default Python when running Clang tests, from Ken Dyck.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83065 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-29 14:54:28 +00:00
Daniel Dunbar 9e10cc7a4c Add the lib path to LD_LIBRARY_PATH, so finding .so works (more) portably.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82853 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-26 07:36:09 +00:00
Daniel Dunbar 5e01e3cae6 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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82524 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-22 05:16:02 +00:00
Daniel Dunbar d9c2e78281 Switch to using the new LLVM lit test runner by default.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82405 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-20 22:00:17 +00:00
Daniel Dunbar 1b720a90f2 Include LLVM {src,obj} root in lit.site.cfg, to support non-standard layouts.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82401 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-20 19:04:35 +00:00
Daniel Dunbar 7af18d359f 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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82160 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-17 19:55:53 +00:00
Daniel Dunbar 58033318b1 Teach LIT2 how to run Clang tests in the objdir for srcdir != objdir builds.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81472 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-10 23:00:15 +00:00
Daniel Dunbar 724827ff93 Support running tests using the new 'lit', via 'make test LIT2=1'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81225 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-08 16:39:23 +00:00
Daniel Dunbar 2f42d4a5f8 Support 'make test TESTSUITE=CodeGen', etc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81011 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-04 17:40:27 +00:00
Daniel Dunbar 1db467f120 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. :)


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77665 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-31 05:54:17 +00:00
Daniel Dunbar 6779647c89 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.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77234 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-27 19:01:13 +00:00
Daniel Dunbar 10aebbb5c8 MultiTestRunner: Make sure to point at src dir, for out of tree builds.
Factor out routine for executing the script commands.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77075 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25 15:26:08 +00:00
Daniel Dunbar 44f6c7a810 Remove TESTDIR initialization, MultiTestRunner can find the test dirs itself.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77069 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25 12:44:58 +00:00
Daniel Dunbar 0126e5e9de Revert to using shell to find files instead of 'find', that wasn't portable.
- I think I did this commit sequence before. :)


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75420 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-12 19:00:20 +00:00
Daniel Dunbar 060cad580b Stop looking for tests in the Output/ directory.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75404 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-11 23:43:59 +00:00
Nuno Lopes a7afc45291 restore proper valgrind support.
disclaim: I know nothing about Python, so apologies in advance if I break something

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75368 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-11 18:34:43 +00:00
Douglas Gregor c1daae3d17 Fix out-of-source regression testing for makefiles
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74832 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-06 16:35:57 +00:00
Daniel Dunbar d5134b03c3 Switch to the new test runner.
- TestRunner.sh still needs to be moved over.

 - Please let me know if you find problems / missing features.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73298 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-13 18:28:48 +00:00
Mike Stump 65633f96c9 Update to account for the great driver renaming.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67695 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-25 17:56:16 +00:00
Mike Stump 9a2f1acf79 Add version information to ISO style test results.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67227 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-18 20:25:18 +00:00
Mike Stump e3c75e0861 Fix spelling error, and add target triplet to header.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66853 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-13 00:41:24 +00:00
Mike Stump 039df91439 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.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66849 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-13 00:21:49 +00:00
Daniel Dunbar 5bea06ad9e Add test case for __ASSEMBLER__ definition.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60363 91177308-0d34-0410-b5e6-96231b3b80d8
2008-12-01 19:23:47 +00:00
Daniel Dunbar bd1f63a1ac Ignore Output directories when searching for tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59660 91177308-0d34-0410-b5e6-96231b3b80d8
2008-11-19 19:06:57 +00:00
Daniel Dunbar 4e6153b49b Another attempt to make test/Makefile return correct error code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56285 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-17 18:08:07 +00:00
Daniel Dunbar 799c6f6faf Ignore XFAIL tests when checking for make failure in test/
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56262 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-16 23:43:13 +00:00
Daniel Dunbar 852119ea9b Allow 'make TESTDIRS=Sema' in test/ directory for only running a
subset of tests.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55513 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-28 23:28:16 +00:00
Anders Carlsson 413ad8b6b5 Handle Objective-C++ tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55254 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-23 21:03:10 +00:00
Daniel Dunbar 5323e23777 Use full path to count script, and don't treat files with missing RUN
lines as errors.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55109 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-21 04:43:28 +00:00
Daniel Dunbar 9562726a28 Missed a test case writing a .ll file.
Suppress count output from 'make test' on errors (used to generate
result code).


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55107 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-21 04:30:23 +00:00
Daniel Dunbar 4565938ff6 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.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55105 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-21 03:03:44 +00:00
Daniel Dunbar 6bfd6218e8 Update test/Makefile to allow testing when using a separate obj
directory.
 - Also, return proper error code if testing fails.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55103 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-21 02:48:23 +00:00
Eli Friedman 9b20376c6c Fix some spam from make I accidentally introduced.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55027 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-20 00:38:03 +00:00
Eli Friedman 0adb3c9b2c 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.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55019 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-20 00:02:01 +00:00
Daniel Dunbar 8b6b0f66a9 Change test/Makefile to automatically test all subdirs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54923 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-18 18:05:17 +00:00
Argyrios Kyrtzidis 5e8840c7a6 Move the C++ Sema tests into a separate SemaCXX directory.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54853 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-16 20:53:59 +00:00
Chris Lattner 6ac6ddc861 move all objc sema tests into a new SemaObjC directory. Next step is to
remove the objc- prefix from the tests that use it.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54084 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-26 00:57:24 +00:00
Ted Kremenek dd536bfa8b Remove Analysis-Apple.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52366 91177308-0d34-0410-b5e6-96231b3b80d8
2008-06-16 21:21:48 +00:00
Eli Friedman 76277254fc 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.)



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52083 91177308-0d34-0410-b5e6-96231b3b80d8
2008-06-07 23:20:33 +00:00
Chris Lattner 9d294b9957 remove the old non-parallel test system. 'make' in clang/test now runs
the tests in parallel.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49290 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-06 22:32:01 +00:00
Ted Kremenek 2daf5b622b 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.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48844 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-26 21:51:44 +00:00
Gabor Greif 1e2db03f3f Add ability to run clang tests under valgrind. Patch by Sam Bishop.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48621 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-20 22:50:54 +00:00