Andrew Trick
67ff0718a4
lit support for REQUIRES: asserts.
...
Take #2 . Don't piggyback on the existing config.build_mode. Instead,
define a new lit feature for each build feature we need (currently
just "asserts"). Teach both autoconf'd and cmake'd Makefiles to define
this feature within test/lit.site.cfg. This doesn't require any lit
harness changes and should be more robust across build systems.
llvm-svn: 133664
2011-06-22 23:23:19 +00:00
NAKAMURA Takumi
cb1b5ff9c6
test/lit.cfg: Add PATHEXT to 'substitution', to recognize tools on Windows hosts. Thanks to Danil Malyshev!
...
Some tests on Windows use the "not" utility and fail with an error "program not executable". The reason for this error is that the name of the executable file sended to the "not" without the extension.
llvm-svn: 126383
2011-02-24 12:34:34 +00:00
Sean Callanan
7d2f87b9a8
Fixed lit.cfg to no longer recognize the old
...
edis name as needing expansion. This tool was
been replaced by llvm-mc long ago.
llvm-svn: 126180
2011-02-22 02:05:53 +00:00
NAKAMURA Takumi
0627147d12
test/lit.cfg: Seek sane tools(and bash) in directories and set to $PATH.
...
LitConfig.getBashPath() will not seek in $PATH after LitConfig.getToolsPath() was executed.
llvm-svn: 125176
2011-02-09 04:19:21 +00:00
Frits van Bommel
c7d65b42fc
Fix lit for people whose LLVM path contains 'opt', which is a common directory name on Unix-like systems.
...
llvm-svn: 122873
2011-01-05 15:10:24 +00:00
Tobias Grosser
4ccb923820
Include llvm-gcc dir before llvm_tools_dir
...
This ensures that always the recently compiled tools are picked for testing.
llvm-svn: 122810
2011-01-04 16:01:17 +00:00
David Greene
4b71405b71
Don't pattern match "/clang" so we don't mangle directory names. Some
...
tests use absolute paths to clang.
llvm-svn: 122796
2011-01-04 01:05:30 +00:00
David Greene
544a3e932f
Don't pattern match "clang-" as it may be part of a tool name with a
...
triple suffix.
llvm-svn: 122779
2011-01-03 21:55:08 +00:00
David Greene
dc276c315c
Reapply 122341 to fix PR8199 now that clang changes are in.
...
llvm-svn: 122754
2011-01-03 17:30:25 +00:00
David Greene
be57ab185f
Revert 122341. It breaks some darwin tests.
...
llvm-svn: 122346
2010-12-21 17:25:43 +00:00
David Greene
a93adab324
Fix PR 8199. This patch prepends the build tool dir to LLVM programs
...
being tested. This ensures that we test the tools just built and not
some random tools that might happen to be in the user's PATH. This
makes LLVM testing much more stable and predictable.
llvm-svn: 122341
2010-12-21 16:55:53 +00:00
NAKAMURA Takumi
75986b8c07
test: Add the feature 'shell' on LLVM_ON_UNIX.
...
llvm-svn: 121104
2010-12-07 02:43:51 +00:00
Michael J. Spencer
da817bf231
Test: Fix Support.Path and _all_ of the unittest death tests. GetTempPath defaults to \Windows\.
...
If I typed anything else it would just decline into cursing.
llvm-svn: 121095
2010-12-07 01:23:49 +00:00
NAKAMURA Takumi
4fc56f0be7
test: Use $SharedLibDir for loadable modules. On Cygming, loadable modules are not in lib/ but bin.
...
llvm-svn: 120274
2010-11-29 00:20:21 +00:00
NAKAMURA Takumi
5114d0afe3
test: Add the new feature 'loadable_module'.
...
llvm-svn: 120273
2010-11-29 00:20:09 +00:00
Duncan Sands
c78fbf9877
Use LLVMCC_EMITIR_FLAG rather than hard-coding "-emit-llvm".
...
llvm-svn: 120156
2010-11-25 21:19:52 +00:00
Duncan Sands
df65e14397
Spelling fixes in comments.
...
llvm-svn: 113746
2010-09-13 13:32:22 +00:00
Michael J. Spencer
41c18853c8
Test: Fix LLVMC tests on CMake.
...
The CMake build didn't define TEST_COMPILE_CXX_CMD. The tests assumed gcc.
llvm-svn: 112480
2010-08-30 14:49:00 +00:00
Bob Wilson
6c66144eb3
The %ocamlopt setting has embedded quotes. Copy the entire value instead
...
of stopping at the first embedded quote.
llvm-svn: 111622
2010-08-20 14:19:38 +00:00
Daniel Dunbar
0d7e9538db
tests: Haste makes waste.
...
llvm-svn: 111525
2010-08-19 16:47:54 +00:00
Daniel Dunbar
471a649c6b
tests: Ignore whitespace in llvm_supports_binding() and llvm_gcc_supports().
...
llvm-svn: 111524
2010-08-19 16:46:52 +00:00
Daniel Dunbar
18cc4acb00
tests: Don't error out if HOME isn't present in t the environment.
...
llvm-svn: 110711
2010-08-10 19:36:25 +00:00
Daniel Dunbar
f643aa86b0
tests: Tweak lit.cfg to fix breakage with out-of-dir lookup.
...
llvm-svn: 106638
2010-06-23 18:06:16 +00:00
Daniel Dunbar
12225eb687
tests: Propogate LLVM_SRC_ROOT and PYTHON_EXECUTABLE environment variables to tests.
...
llvm-svn: 105890
2010-06-12 16:21:19 +00:00
Jeffrey Yasskin
2f87b54f1a
Add support for XFAILing valgrind runs with memory leak checking independently
...
of runs without leak checking. We add -vg to the triple for non-checked runs,
or -vg_leak for checked runs. Also use this to XFAIL the TableGen tests, since
tablegen leaks like a sieve. This includes some valgrindArgs refactoring.
llvm-svn: 99103
2010-03-20 23:08:45 +00:00
Daniel Dunbar
e848de3911
tests: Mangle '-vg' onto the end of the triple when running under valgrind, so
...
we can use the standard XFAIL and XTARGET to conditional tests based on
valgrind.
llvm-svn: 99088
2010-03-20 21:12:48 +00:00
John McCall
953838d0d5
Revert r97726 and r97728 at ddunbar's request; we want to solve this
...
some other way when it comes to be necessary.
llvm-svn: 97972
2010-03-08 20:02:05 +00:00
John McCall
d423572e86
Teach lit to honor conditional directives. The syntax is:
...
IF(condition(value)):
If the value satisfies the condition, the line is processed by lit; otherwise
it is skipped. A test with no unignored directives is resolved as Unsupported.
The test suite is responsible for defining conditions; conditions are unary
functions over strings. I've defined two conditions in the LLVM test suite,
TARGET (with values like those in TARGETS_TO_BUILD) and BINDING (with values
like those in llvm_bindings). So for example you can write:
IF(BINDING(ocaml)): RUN: %blah %s -o -
and the RUN line will only execute if LLVM was configured with the ocaml
bindings.
llvm-svn: 97726
2010-03-04 09:36:50 +00:00
Daniel Dunbar
de277d48f5
tests: Propogate the HOME environment variable through to tests. I'm ambivalent
...
about this, but it can be useful for users who use ccache, since the LLVMC tests
are fond of calling gcc.
llvm-svn: 97171
2010-02-25 22:09:09 +00:00
Daniel Dunbar
7e4acbdf53
tests: Don't make a missing llvm-gcc dir a fatal error.
...
llvm-svn: 96938
2010-02-23 11:34:12 +00:00
Daniel Dunbar
5c8f47863c
Fix a thinko in the lit.cfg.
...
llvm-svn: 96931
2010-02-23 09:28:48 +00:00
Benjamin Kramer
72d36b59be
Get the LLVMC tests working with clang++ by removing the problematic CXXFLAG in lit.
...
llvm-svn: 95318
2010-02-04 18:40:11 +00:00
Daniel Dunbar
09d81caa12
MCAssembler/Darwin: Add a test (on Darwin) that we assemble a bunch of
...
instructions exactly like 'as', and produce equivalent .o files.
llvm-svn: 95143
2010-02-02 22:00:15 +00:00
Daniel Dunbar
6d8f59e65f
Fix llvm_supports_binding for lit, problem noticed by Bob!
...
llvm-svn: 93591
2010-01-16 00:00:20 +00:00
Daniel Dunbar
0f620b81c1
CMake/lit: Add llvm_{unit_,}site_config parameters, and always pass them when running tests from the project files.
...
llvm-svn: 90869
2009-12-08 19:47:36 +00:00
Daniel Dunbar
84bc8c3058
Derive the right paths to use during testing instead of passing it in via make.
...
Also, fix a few other details of the cmake test target and rename it to
'check'. CMake tests now work for the most part, but there are a handful of
failures left due to missing site.exp bits.
llvm-svn: 86452
2009-11-08 09:08:00 +00:00
Daniel Dunbar
4759a8979c
Add missing substitution for %llvmgcc_only.
...
llvm-svn: 85614
2009-10-30 21:13:59 +00:00
Daniel Dunbar
abc5153371
tests: Add llvm_supports_binding predicate.
...
llvm-svn: 81664
2009-09-13 01:41:18 +00:00
Daniel Dunbar
e2d76237ec
Remove prcontext.
...
llvm-svn: 81427
2009-09-10 04:56:59 +00:00
Daniel Dunbar
3eeddd22dd
Add 'lit' support for llvm tests.
...
- This adds 'make check-lit' from the top-level Makefile.
llvm-svn: 81191
2009-09-08 05:31:44 +00:00