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

17 Коммитов

Автор SHA1 Сообщение Дата
Daniel Dunbar 3ed4bd1136 Add extra print for --time-tests output.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76104 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-16 21:18:21 +00:00
Daniel Dunbar 02cee15238 Make stdin for test scripts empty, so that tests don't accidentally hang waiting
for stdin.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75506 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-13 21:24:28 +00:00
Daniel Dunbar 7f10681795 Add --time-tests option to test runner, for profiling 'make test'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75396 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-11 22:46:27 +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
Eli Friedman 77a1fe945b Use /usr/bin/env trick to find python. Patch by Krister Walfridsson.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75271 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-10 20:15:12 +00:00
Argyrios Kyrtzidis 921bd26159 Having tests that depend on previously created files is bad idea. Fix them to be self-sufficient.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74810 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-06 00:03:47 +00:00
Argyrios Kyrtzidis 7b332d9ada Make use of the Index library through the index-test tool.
'index-test' is now able to provide additional info for a Decl, through multiple AST files:
-Find declarations
-Find definitions
-Find references

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74803 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-05 22:22:35 +00:00
Daniel Dunbar fbbb1e74b0 Revert prev commit, we have much bigger problems because 2.3 is missing
the subprocess module.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74738 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-02 23:58:07 +00:00
Daniel Dunbar 8afede292a Avoid @staticmethod to allow use with Python 2.3.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74737 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-02 23:56:37 +00:00
Daniel Dunbar 69e07a75ef Testing improvements:
- Make python test runner force COLUMNS=0 to increase determinism.

 - Substitute clang-cc as we do for clang.

 - Improved detection of Ctrl-C.

 - Honor CLANG and CLANGCC environment variables.

 - Add proper command line arguments to TestRunner.py (see --help)


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73640 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-17 21:33:37 +00:00
Douglas Gregor 4d1800d8b5 If any tests fail, the test runner returns a status code of 1
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73584 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-16 23:40:23 +00:00
Douglas Gregor ebfc180d9b Update Clang to include the InitializeAllTargets and
InitializeAllAsmPrinters LLVM headers. Also includes some minor fixes
for the CMake-based build with Xcode.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73544 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-16 20:13:51 +00:00
Douglas Gregor 7986519527 Switch CMake testing over to use Daniels new(er) Python-based infrastructure.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72977 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-05 23:57:17 +00:00
Daniel Dunbar 259a565e3c Make this code a little more generic.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70103 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-26 01:28:51 +00:00
Daniel Dunbar 360d16c49d Don't build error/warning/assertion detection in the testing script.
- This wasn't actually all that useful and isn't worth the extra
   (hard)code.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69869 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-23 05:03:44 +00:00
Daniel Dunbar 4d8076a0e4 Support %S in Python TestRunner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68814 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-10 19:49:21 +00:00
Daniel Dunbar 6fc0bdfc32 Add my "clang compatible" test runner. Sorry for keeping this to myself...
Usage: from clang/test, 'make -f ../utils/test/Makefile.multi'

Pros: About 20% faster than the Makefile based version on my 8 core
box (way faster on Windows I imagine, if it works).

Cons: Needs some cleanup. Ctrl-C works quite poorly on Darwin; more
Python's fault than mine.

Future: Support config definitions so we can use this for running LLVM
tests instead of dejagnu. Parallel testing goodness? Indeed.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66293 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-06 22:20:40 +00:00