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

78 Коммитов

Автор SHA1 Сообщение Дата
Galina Kistanova 065063bdf4 Preparations for separating target-specific clang tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132319 91177308-0d34-0410-b5e6-96231b3b80d8
2011-05-31 00:29:49 +00:00
NAKAMURA Takumi 41d6d6984d test/Makefile: Reapply r127079, use $(ECHOPATH) to make lit.site.cfg(s).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127284 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-08 22:17:40 +00:00
Benjamin Kramer 69db2ddcb2 Revert r127079: "test/Makefile: Use $(ECHOPATH) to make lit.site.cfg(s)."
It depends on LLVM r127073 that was reverted and is now blocking "make test"

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127109 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-05 20:57:36 +00:00
NAKAMURA Takumi 6ac97b1039 test/Makefile: Use $(ECHOPATH) to make lit.site.cfg(s).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127079 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-05 11:16:01 +00:00
Jeffrey Yasskin 7a17889829 Add gTest unittests to clang, and write the first one.
This is the Makefile version only; the cmake implementation is coming soon.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124777 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-03 04:51:52 +00:00
Chris Lattner ea9799c748 daniel doesn't hate me, he hates macpython 2.5, which
is a very reasonable position on life!



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108651 91177308-0d34-0410-b5e6-96231b3b80d8
2010-07-18 18:42:35 +00:00
Chris Lattner f0fb0e0d95 see comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108410 91177308-0d34-0410-b5e6-96231b3b80d8
2010-07-15 05:22:46 +00:00
Chris Lattner dd4877a3d4 I don't know when I committed this, but it's probably a "bad thing".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106821 91177308-0d34-0410-b5e6-96231b3b80d8
2010-06-25 05:00:29 +00:00
Chris Lattner 788b0fd67e improve altivec vector bool/pixel support, patch by Anton Yartsev
with several tweaks by me.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106619 91177308-0d34-0410-b5e6-96231b3b80d8
2010-06-23 06:00:24 +00:00
Daniel Dunbar afed099bd2 Makefile: Switch Clang Makefiles to always include the top-level Clang Makefile.
- This eliminates most dependencies on how Clang is installed relative to LLVM.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105637 91177308-0d34-0410-b5e6-96231b3b80d8
2010-06-08 20:34:18 +00:00
Chris Lattner 986f3490c5 sigh
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103874 91177308-0d34-0410-b5e6-96231b3b80d8
2010-05-15 16:56:34 +00:00
Chris Lattner eb941559a1 fix _mm_shuffle_pd too, thanks to Joel Falcou for pointing this out.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103873 91177308-0d34-0410-b5e6-96231b3b80d8
2010-05-15 16:54:46 +00:00
Chris Lattner 984ec48009 don't force 16 threads.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103566 91177308-0d34-0410-b5e6-96231b3b80d8
2010-05-12 02:47:23 +00:00
Chris Lattner 14ab24f01e pch'ify typeid.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103374 91177308-0d34-0410-b5e6-96231b3b80d8
2010-05-09 06:03:39 +00:00
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