summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a FIXME.Daniel Dunbar2010-03-311-0/+2
| | | | llvm-svn: 100034
* lit: Make sure to close any files we open as part of redirection.Daniel Dunbar2010-03-311-1/+7
| | | | | | PR6753. llvm-svn: 100032
* lit: Add LitTestCase and lit.load_test_suite, for adapting lit based suites forDaniel Dunbar2010-03-253-2/+75
| | | | | | use with Python's unittest. llvm-svn: 99498
* When we don't pass --vg-leak to lit, pass --leak-check=no to valgrind.Jeffrey Yasskin2010-03-211-0/+3
| | | | llvm-svn: 99112
* Add support for XFAILing valgrind runs with memory leak checking independentlyJeffrey Yasskin2010-03-204-19/+23
| | | | | | | | 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
* Test commit (removed extra blank line)Ben Holt2010-03-191-1/+0
| | | | llvm-svn: 98988
* Set numThreads to 1 by default when Python is older than 2.5.2.Torok Edwin2010-03-191-1/+8
| | | | | | | | | Python 2.4 always hits this bug: http://bugs.python.org/issue1731717 when running check-lit on multi-core systems. Setting numThreads to 1 makes it slower, but at least the results reported are correct. llvm-svn: 98969
* lit: Tweak example tests config.Daniel Dunbar2010-03-181-33/+0
| | | | llvm-svn: 98859
* Avoid a problem in libc_freeres() seen on a linux-i686 buildbot when runningJeffrey Yasskin2010-03-182-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | under valgrind: ==19577== Invalid free() / delete / delete[] ==19577== at 0x4C9C866: free (vg_replace_malloc.c:325) ==19577== by 0x5121104: ??? (in /lib/libc-2.10.2.so) ==19577== by 0x4C97412: _vgnU_freeres (vg_preloaded.c:62) ==19577== by 0x5041486: __run_exit_handlers (exit.c:93) ==19577== by 0x50414FE: exit (exit.c:100) ==19577== by 0x5028B5C: (below main) (libc-start.c:254) ==19577== Address 0xffffffff is not stack'd, malloc'd or (recently) free'd ==19577== Apparently this happens under certain versions of glibc, so valgrind provides the --run-libc-freeres=no option to avoid calling freeres(). This may increase the number of "still reachable" blocks valgrind reports, but we don't care about those, while this error breaks the buildbots. There are upstream bugs about this at http://sourceware.org/bugzilla/show_bug.cgi?id=10610 and http://bugs.kde.org/show_bug.cgi?id=167483, but they don't look likely to be fixed. llvm-svn: 98813
* Make lit pay attention to --vg for tcl tests too, which makes it work on LLVM'sJeffrey Yasskin2010-03-171-0/+12
| | | | | | non-unit tests. llvm-svn: 98741
* Make lit pay attention to --vg for unittests too.Jeffrey Yasskin2010-03-131-0/+8
| | | | llvm-svn: 98449
* Revert r97726 and r97728 at ddunbar's request; we want to solve thisJohn McCall2010-03-082-23/+3
| | | | | | some other way when it comes to be necessary. llvm-svn: 97972
* If LD_LIBRARY_PATH is set in the system environment, use it.Duncan Sands2010-03-051-0/+1
| | | | llvm-svn: 97796
* Simplify the condition-checking logic and hopefully clear up a build failureJohn McCall2010-03-041-14/+7
| | | | | | that somehow got through my testing. llvm-svn: 97728
* Teach lit to honor conditional directives. The syntax is:John McCall2010-03-042-3/+30
| | | | | | | | | | | | | | | | 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
* Eliminate llvmgcc_version testing variable.Daniel Dunbar2010-02-232-2/+0
| | | | llvm-svn: 96908
* Kill unused llvmgccmajvers testing variable.Daniel Dunbar2010-02-232-2/+0
| | | | llvm-svn: 96906
* lit: Ignore dot files when scanning for tests (e.g., editor temprary files,Daniel Dunbar2010-02-101-1/+6
| | | | | | etc.) llvm-svn: 95803
* Remove stray DOS newline.Daniel Dunbar2010-02-101-1/+1
| | | | llvm-svn: 95765
* Make lit's gtest support honor config.environment.Jeffrey Yasskin2010-02-052-8/+17
| | | | llvm-svn: 95398
* lit: Separate test suite from test name with spaces, to make it easier to ↵Daniel Dunbar2010-01-221-1/+1
| | | | | | cut and paste. llvm-svn: 94134
* lit: Add setuptools support.Daniel Dunbar2009-12-261-0/+69
| | | | llvm-svn: 92169
* lit: Sink code into a 'lit' package.Daniel Dunbar2009-12-2640-573/+591
| | | | llvm-svn: 92168
* lit: Improve error when gtest discovery fails.Daniel Dunbar2009-12-151-3/+8
| | | | llvm-svn: 91458
* lit: Prevent crash-on-invalid (when run on directory which has no test suite).Daniel Dunbar2009-12-081-1/+1
| | | | llvm-svn: 90871
* lit: Fix exclude dirs functionality.Daniel Dunbar2009-11-181-2/+3
| | | | llvm-svn: 89210
* Make X86-64 in the Large model always emit 64-bit calls.Jeffrey Yasskin2009-11-161-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The large code model is documented at http://www.x86-64.org/documentation/abi.pdf and says that calls should assume their target doesn't live within the 32-bit pc-relative offset that fits in the call instruction. To do this, we turn off the global-address->target-global-address conversion in X86TargetLowering::LowerCall(). The first attempt at this broke the lazy JIT because it can separate the movabs(imm->reg) from the actual call instruction. The lazy JIT receives the address of the movabs as a relocation and needs to record the return address from the call; and then when that call happens, it needs to patch the movabs with the newly-compiled target. We could thread the call instruction into the relocation and record the movabs<->call mapping explicitly, but that seems to require at least as much new complication in the code generator as this change. To fix this, we make lazy functions _always_ go through a call stub. You'd think we'd only have to force lazy calls through a stub on difficult platforms, but that turns out to break indirect calls through a function pointer. The right fix for that is to distinguish between calls and address-of operations on uncompiled functions, but that's complex enough to leave for someone else to do. Another attempt at this defined a new CALL64i pseudo-instruction, which expanded to a 2-instruction sequence in the assembly output and was special-cased in the X86CodeEmitter's emitInstruction() function. That broke indirect calls in the same way as above. This patch also removes a hack forcing Darwin to the small code model. Without far-call-stubs, the small code model requires things of the JITMemoryManager that the DefaultJITMemoryManager can't provide. Thanks to echristo for lots of testing! llvm-svn: 88984
* lit: Factor a new OneCommandPerFileTest out of SyntaxCheckTest.Daniel Dunbar2009-11-152-12/+42
| | | | | | | - Used for running a single fixed command on a directory of files, with the option of deriving a temporary input file from the test source. llvm-svn: 88844
* Remove duplicate implementation of excludes functionality, and support excludingDaniel Dunbar2009-11-151-14/+6
| | | | | | | | dirnames. Also, add support for the 'unsupported' config property. llvm-svn: 88838
* lit: Add --repeat=N option, for running each test N times.Daniel Dunbar2009-11-153-4/+27
| | | | | | - Currently just useful for timing, although it could be extended as one (bad) way to deal with flaky tests. llvm-svn: 88827
* lit: Add ExampleTests, for testing lit and demonstrating test suite features.Daniel Dunbar2009-11-1026-0/+555
| | | | llvm-svn: 86654
* lit: Fix bug in --show-suites which accidentally override the list of tests.Daniel Dunbar2009-11-101-2/+2
| | | | llvm-svn: 86653
* lit: Hardcode whence seek value, os.SEEK_END isn't always available.Daniel Dunbar2009-11-081-1/+1
| | | | llvm-svn: 86449
* lit: Warn when a test suite contains no tests.Daniel Dunbar2009-11-081-7/+12
| | | | llvm-svn: 86448
* lit: Drop require_and_and support.Daniel Dunbar2009-11-082-21/+6
| | | | llvm-svn: 86447
* lit: Workaround a Win32/subprocess bug when appending.Daniel Dunbar2009-11-081-0/+3
| | | | llvm-svn: 86437
* lit: Preserve the PATHEXT variable when running subcommands, this is ↵Daniel Dunbar2009-11-081-0/+1
| | | | | | important on Win32 llvm-svn: 86436
* Teach lit's SyntaxCheckTest two new tricks:Douglas Gregor2009-11-051-1/+16
| | | | | | | - skip .svn directories - add a set of excluded filenames so we can easily skip tests llvm-svn: 86185
* lit: Add --param NAME=VALUE option, for test suite specific use (to communicateDaniel Dunbar2009-11-052-2/+18
| | | | | | arbitrary command line arguments to the test suite). llvm-svn: 86137
* lit: Update Clang's test style to use XFAIL: and XTARGET: lines that matchDaniel Dunbar2009-11-031-24/+26
| | | | | | LLVM's tests. llvm-svn: 85882
* lit: Add --config-prefix option, to override default config file names.Daniel Dunbar2009-10-251-7/+20
| | | | llvm-svn: 85035
* lit: Allow use of /dev/null in redirects on Windows (replace by a temporaryDaniel Dunbar2009-10-251-1/+8
| | | | | | file). llvm-svn: 85028
* Delete a spurious semicolon.Dan Gohman2009-10-241-1/+1
| | | | llvm-svn: 85018
* lit: Support '>>' redirections when executing scripts internally.Daniel Dunbar2009-10-241-0/+9
| | | | llvm-svn: 85014
* lit: When running Tcl scripts via shell, try harder to find 'bash', but fallDaniel Dunbar2009-10-192-2/+26
| | | | | | back to running them internally if that fails. PR5240. llvm-svn: 84462
* Support GoogleTest's "typed tests"Jeffrey Yasskin2009-10-181-0/+4
| | | | | | | | | | (http://code.google.com/p/googletest/wiki/GoogleTestAdvancedGuide#Typed_Tests) in lit.py. These tests have names like "ValueMapTest/0.Iteration", which broke when lit.py os.path.join()ed them onto the path and then assumed it could os.path.split() them back off. This patch shifts path components from the testPath to the testName until the testPath exists. llvm-svn: 84387
* Don't traverse into .svn directories.Daniel Dunbar2009-09-281-1/+1
| | | | llvm-svn: 82978
* lit: When executing shell scripts internally, don't allow piped stderr on anyDaniel Dunbar2009-09-221-3/+21
| | | | | | | commands except the last one, instead redirect the stderr to a temporary file. This sidesteps a potential deadlocking issue. llvm-svn: 82538
* Add a magic LLVM_DISABLE_CRT_DEBUG environment variable which we check in ↵Daniel Dunbar2009-09-221-0/+1
| | | | | | | | RegisterHandler and use to disable the Win32 crash dialogs. These are a major blocker to any kind of automated testing. Also, tweak the 'lit' test runner to set this variable unconditionally. llvm-svn: 82537
* Actually use the arguments with the resolved executable path.Daniel Dunbar2009-09-221-1/+1
| | | | llvm-svn: 82527
OpenPOWER on IntegriCloud