summaryrefslogtreecommitdiff
path: root/utils/lit
Commit message (Collapse)AuthorAge
* Fixed bug when tests in executable partially used absolute paths.Galina Kistanova2013-05-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182910 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r182715 and r182758Alexey Samsonov2013-05-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182761 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixup for r182715: provide correct arg to --gtest-filterAlexey Samsonov2013-05-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182758 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed bug when tests in executable partially used absolute paths.Galina Kistanova2013-05-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182715 91177308-0d34-0410-b5e6-96231b3b80d8
* lit: Fix infinite recursion when an out-of-tree test root is located inside ↵Daniel Dunbar2013-04-12
| | | | | | the source test root. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179402 91177308-0d34-0410-b5e6-96231b3b80d8
* lit: Add a test for discovery w/ test_exec_root (out-of-tree test root).Daniel Dunbar2013-04-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179401 91177308-0d34-0410-b5e6-96231b3b80d8
* lit: Don't descend into .git directories during test discovery.Daniel Dunbar2013-04-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179249 91177308-0d34-0410-b5e6-96231b3b80d8
* lit: Shorten a metavar to make --help look nicer.Daniel Dunbar2013-04-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179248 91177308-0d34-0410-b5e6-96231b3b80d8
* lit: Add a test for discovery when exact test names are given.Daniel Dunbar2013-04-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179247 91177308-0d34-0410-b5e6-96231b3b80d8
* lit: Add a trivial test of the basic progress bar.Daniel Dunbar2013-04-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179243 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Avoid CRLFs in bash scripts on WindowsReid Kleckner2013-03-20
| | | | | | | | Native Windows Python will do line ending translation by default, which we don't want in bash scripts. If we're not native Windows Python, then 'b' is ignored. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177602 91177308-0d34-0410-b5e6-96231b3b80d8
* lit.TestFormats.GoogleTest: Honor LitConfig.noExecute, or --no-execute were ↵NAKAMURA Takumi2013-03-13
| | | | | | ignored. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176930 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Add a display function for lit.Test.TestResult.Daniel Dunbar2013-02-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174667 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Add a test for internal shell execution behaviors.Daniel Dunbar2013-01-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174102 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Change to raise InternalShellError for all command execution issues.Daniel Dunbar2013-01-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174101 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Fix bug where InternalShellError messages were discarded.Daniel Dunbar2013-01-31
| | | | | | - Also, change the exit code to match 'sh'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174089 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Fix a shell parsing bug with ';' not separated by whitespace.Daniel Dunbar2013-01-31
| | | | | | - Testing finds bugs, who knew. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174087 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Add a test for the various ShTest format features.Daniel Dunbar2013-01-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174072 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] TestRunner: Eliminate failDueToStderr argument, which is now unused.Daniel Dunbar2013-01-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174071 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Delete the now-unused SyntaxCheckTest format.Daniel Dunbar2013-01-31
| | | | | | - Also, kill the pointless LitFormats module. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174070 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Move unittest adaptor code into discovery module.Daniel Dunbar2013-01-31
| | | | | | - Also, add a test for it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174019 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Run the ShUtil tests as part of the test suite.Daniel Dunbar2013-01-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174018 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Set parallel mode for coverage tests.Daniel Dunbar2013-01-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174017 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Move discovery code into its own module.Daniel Dunbar2013-01-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174014 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Add a MANIFEST file and a script for sanity checking the source dist.Daniel Dunbar2013-01-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174002 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Add a basic discovery test.Daniel Dunbar2013-01-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174001 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Add a script for checking test coverage.Daniel Dunbar2013-01-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174000 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Add a test suite for lit itself.Daniel Dunbar2013-01-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173999 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Make GoogleTest test runner correctly discover tests in the source rootAlexey Samsonov2013-01-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173907 91177308-0d34-0410-b5e6-96231b3b80d8
* [lit] Add some TODO notes to myself.Daniel Dunbar2013-01-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173857 91177308-0d34-0410-b5e6-96231b3b80d8
* lit/ShUtil.py: Deprecate '!' in shell expression. It is not sh-compatible.NAKAMURA Takumi2013-01-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173421 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove support for Tcl test format since nobody uses itDmitri Gribenko2013-01-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172794 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix comment typoEli Bendersky2012-12-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171113 91177308-0d34-0410-b5e6-96231b3b80d8
* PR10867: Analogue of r169441 for when using external 'sh'. And actually run ↵Richard Smith2012-12-05
| | | | | | the test! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169446 91177308-0d34-0410-b5e6-96231b3b80d8
* PR10867. lit would interpretRichard Smith2012-12-05
| | | | | | | | | | | | RUN: a RUN: b || true as "a && (b || true)" in Tcl mode, and as "(a && b) || true" in sh mode. Everyone seems to (quite reasonably) write tests assuming the Tcl behavior, so use that in sh mode too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169441 91177308-0d34-0410-b5e6-96231b3b80d8
* lit: Add a simple test suite for checking test runner parallelism.Daniel Dunbar2012-11-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169038 91177308-0d34-0410-b5e6-96231b3b80d8
* lit: Bump the version to .3.Daniel Dunbar2012-11-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168750 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove the CellSPU port.Eric Christopher2012-11-14
| | | | | | | Approved by Chris Lattner. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167984 91177308-0d34-0410-b5e6-96231b3b80d8
* Added %(line), %(line+<number>), %(line-<number>) substitutions to litAlexander Kornienko2012-11-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167971 91177308-0d34-0410-b5e6-96231b3b80d8
* lit: Rename the valgrind leaks feature to match what is currently usedDaniel Dunbar2012-10-19
| | | | | | (vg_leak). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166306 91177308-0d34-0410-b5e6-96231b3b80d8
* lit: Remove support for XTARGET.Daniel Dunbar2012-10-19
| | | | | | | | - The XTARGET feature (inherited from old DG tests) was just confusing (and barely ever used). The same effect can now be achieved with a combination of the more useful REQUIRES and XFAIL. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166305 91177308-0d34-0410-b5e6-96231b3b80d8
* lit: Add 'valgrind' and 'valgrind-leaks' features when valgrind is used.Daniel Dunbar2012-10-19
| | | | | | - These can be used with the XFAIL options. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166303 91177308-0d34-0410-b5e6-96231b3b80d8
* lit: Propagate TERM variable in environment, some tools can do really obscureDaniel Dunbar2012-10-19
| | | | | | odd things if this is missing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166289 91177308-0d34-0410-b5e6-96231b3b80d8
* lit: Allow XFAIL: lines to also refer to "features".Daniel Dunbar2012-10-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166224 91177308-0d34-0410-b5e6-96231b3b80d8
* lit: Util.which(): Use os.path.isfile() instead of os.path.exists(), or it ↵NAKAMURA Takumi2012-09-08
| | | | | | | | hits to the directory. For example, which('loop-convert') returns 'loop-convert' when the directory 'loop-convert' exists. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163469 91177308-0d34-0410-b5e6-96231b3b80d8
* lit: Show actually created count of threads. The incorrect threads count is ↵NAKAMURA Takumi2012-08-17
| | | | | | | | printed if the number of tests are less than the number of default threads. Thanks to Vinson Lee, reported in PR13620. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162078 91177308-0d34-0410-b5e6-96231b3b80d8
* lit: Use close_fds=True on UNIX, to avoid file descriptor pollution ofDaniel Dunbar2012-07-20
| | | | | | subprocesses. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160556 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r159528 which taught lit's builtin shell test runner about theChandler Carruth2012-07-02
| | | | | | | | | | '|&' bash syntax. We have lots of users with a bash on their system which doesn't support this syntax, and as bash is still significantly faster, we should support them. The test suite has already been updated to cope with this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159580 91177308-0d34-0410-b5e6-96231b3b80d8
* Teach the built-in shell test runner in lit to handle '|&'-style pipes.Chandler Carruth2012-07-02
| | | | | | | This is directly cloned from the logic in the TCL test bits of lit. Hopefully will fix most of the windows build bot fallout. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159528 91177308-0d34-0410-b5e6-96231b3b80d8
* Lit: rewind WinWaitReleased() stuff in TestRunner.NAKAMURA Takumi2012-05-08
| | | | | | | | | | r145222 "lit/TestRunner.py: [Win32] Introduce WinWaitReleased(f), to wait for file handles to be released by children." r145223 "lit/TestRunner.py: Use RemoveForce()." r145381 "lit/TestRunner.py: Try to catch ERROR_FILE_NOT_FOUND, too." r152916 "lit/TestRunner.py: [Win32] Check all opened_files[] released, rather than (obsoleted) written_files[]." r153172 "lit/TestRunner.py: [Win32] Rework WinWaitReleased() again! "win32file" from Python Win32 Extensions." git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156381 91177308-0d34-0410-b5e6-96231b3b80d8