Commit Graph

25 Commits

Author SHA1 Message Date
Daniel Dunbar 22d5360ed0 Switch TestRunner.sh to just use 'lit'.
- Does people use this?

llvm-svn: 82406
2009-09-20 22:00:23 +00:00
Daniel Dunbar ce4bcf4b64 Don't substitute prcontext.
llvm-svn: 81428
2009-09-10 04:57:10 +00:00
Argyrios Kyrtzidis 1561c6cf54 Having tests that depend on previously created files is bad idea. Fix them to be self-sufficient.
llvm-svn: 74810
2009-07-06 00:03:47 +00:00
Argyrios Kyrtzidis 5641111e3f 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

llvm-svn: 74803
2009-07-05 22:22:35 +00:00
Daniel Dunbar 908a66dc9b If stderr isn't a terminal, don't try to guess the terminal width or
look at COLUMNS.

llvm-svn: 71120
2009-05-06 21:28:42 +00:00
Daniel Dunbar d8b7f8e7cf Set COLUMNS=0 to disable wrapping instead of a random large number.
llvm-svn: 70818
2009-05-04 02:20:01 +00:00
Daniel Dunbar ea6dff3744 Make diagnostic printing more deterministic when running tests.
llvm-svn: 70809
2009-05-03 23:14:36 +00:00
Daniel Dunbar 10c6ee968f Use clang to find clang-cc, if it isn't in path.
llvm-svn: 70640
2009-05-02 20:08:07 +00:00
Douglas Gregor ef84c4b434 Implementation of pre-compiled headers (PCH) based on lazy
de-serialization of abstract syntax trees.

PCH support serializes the contents of the abstract syntax tree (AST)
to a bitstream. When the PCH file is read, declarations are serialized
as-needed. For example, a declaration of a variable "x" will be
deserialized only when its VarDecl can be found by a client, e.g.,
based on name lookup for "x" or traversing the entire contents of the
owner of "x".

This commit provides the framework for serialization and (lazy)
deserialization, along with support for variable and typedef
declarations (along with several kinds of types). More
declarations/types, along with important auxiliary structures (source
manager, preprocessor, etc.), will follow.

llvm-svn: 68732
2009-04-09 22:27:44 +00:00
Daniel Dunbar 2afa8abdfb Update TestRunner.sh for renaming.
- Substitutes both clang and clang-cc.

 - Incorporates patch from Jon Simons to diagnose if clang or clang-cc
   isn't found.

 - Uses full path when running scripts, for more precision in the
   output.

llvm-svn: 67610
2009-03-24 06:17:45 +00:00
Daniel Dunbar 267c4fe1b5 Test commit.
llvm-svn: 57540
2008-10-15 00:26:06 +00:00
Daniel Dunbar 53642c0160 Remove automagic substitution of %llvmgcc
- Is unused and somewhat unreliable.

llvm-svn: 56737
2008-09-27 00:47:03 +00:00
Nuno Lopes fc8c680b89 skip test if llvm-gcc is requires but not found on the path.
someone with llvm-gcc installed please test if the Codegen/function-attributes.c test isn't skip in your system. thanks.

llvm-svn: 55871
2008-09-06 16:42:14 +00:00
Nuno Lopes 92c4bc8873 fix running tests with valgrind (there were a lot of bogus failures and warnings)
currently clang passes all tests under valgrind with the leak checker disabled :P (and fails most otherwise)

llvm-svn: 55782
2008-09-04 18:33:57 +00:00
Daniel Dunbar 0f99912868 Update TestRunner to not report failure for XFAIL tests
llvm-svn: 55751
2008-09-04 00:30:11 +00:00
Eli Friedman d7a9a46cb5 Remove bashism; sh != bash on Ubuntu.
llvm-svn: 54118
2008-07-27 05:05:07 +00:00
Daniel Dunbar dd49a04d18 Allow CLANG env variable to override "clang" command in TestRunner.sh
llvm-svn: 54005
2008-07-25 01:05:44 +00:00
Sam Bishop ac92a13c86 The newest version of valgrind, 3.3.0, no longer appends PIDs to log filenames
by default.  Adding a %p works with this new version and is backwards
compatible, though it looks a little funny.

llvm-svn: 48698
2008-03-23 03:42:18 +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 8bdc7b057d let the %t magic happen, thanks Chris!
llvm-svn: 48487
2008-03-18 06:42:43 +00:00
Gabor Greif d8d1b60237 Actually expand the %t1 patterns (in RUN: lines) to a unique
filename.
This fixes (e.g.) CodeGen/struct-x86-darwin.c which
raced at writing to "%t1" with other tests when parallel
testing was specified with a high "-j XX" value.

Also gets rid of the file tools/clang/test/%t1
when doing an "svn st" after testing.

llvm-svn: 48454
2008-03-17 13:45:47 +00:00
Gabor Greif 8eea5b51b5 Second round of review feedback.
* print out message when tests start
* testrunner sets status now
* on failed test run print out test name

I tested these changes with the non-parallel makefile
and it did not break.

llvm-svn: 48453
2008-03-17 12:35:00 +00:00
Chris Lattner e01fc281c3 verify that tests contain RUN lines.
llvm-svn: 44915
2007-12-12 06:19:22 +00:00
Ted Kremenek 44d5166cdb Changed TestRunner.sh to dump the output and generated script files in
subdirectories mirroring where the test case file is located

For example, for the test case "Sema/stmt_exprs.c", instead of the files
"Output/stmt_exprs.c.out" and "Output/stmt_exprs.c.out.script" being created, the
files "Output/Sema/stmt_exprs.c.out" and "Output/Sema/stmt_exprs.c.out.script" are
created. This prevents any collisions from different test directories that have the
same file name for a test case, and also makes it clear where the test case was
drawn from.

llvm-svn: 44410
2007-11-28 19:16:54 +00:00
Chris Lattner e9a7da1d55 Make make check work again.
llvm-svn: 39608
2007-06-08 17:57:13 +00:00