summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit
Commit message (Collapse)AuthorAgeFilesLines
* [lit] Add a --filter option which is useful when dealing with virtual testDaniel Dunbar2012-01-181-0/+18
| | | | | | paths. llvm-svn: 148362
* Disable the crash reporter when running lit tests.Argyrios Kyrtzidis2012-01-111-1/+1
| | | | llvm-svn: 147965
* lit/lit.TestRunner: Add an extra_substitutions argument for executeShTest --Daniel Dunbar2012-01-061-4/+7
| | | | | | useful for test suites which want to piggyback onto the "shtest" format style. llvm-svn: 147684
* lit/TestRunner.py: Try to catch ERROR_FILE_NOT_FOUND, too.NAKAMURA Takumi2011-11-291-1/+3
| | | | | | Thanks to Francois, to let me know. llvm-svn: 145381
* lit/TestRunner.py: Use RemoveForce().NAKAMURA Takumi2011-11-281-4/+1
| | | | llvm-svn: 145223
* lit/TestRunner.py: [Win32] Introduce WinWaitReleased(f), to wait for file ↵NAKAMURA Takumi2011-11-281-0/+43
| | | | | | | | | handles to be released by children. When wait() has finished, opened handles (especially writing stdout to file) might not be released immediately. To wait for released, poll to attempt renaming. llvm-svn: 145222
* Remove the Alpha backend.Dan Gohman2011-10-272-2/+2
| | | | llvm-svn: 143164
* lit: Drop some unneeded code from example tests.Daniel Dunbar2011-10-274-66/+2
| | | | | | - Also, cleanup site.exp files in example tests. llvm-svn: 143141
* Remove the Blackfin backend.Dan Gohman2011-10-252-2/+2
| | | | llvm-svn: 142880
* Remove the SystemZ backend.Dan Gohman2011-10-242-2/+2
| | | | llvm-svn: 142878
* lit: Normalize pathsep slashes also on %T.NAKAMURA Takumi2011-08-311-0/+1
| | | | | | On Python-w32 with mingw msys bash, %T was replaced to "x:\foo\bar...". msys bash cannot handle DOSish paths. llvm-svn: 138852
* Lit option for ignoring stderr output.Andrew Trick2011-08-304-4/+11
| | | | | | | | This is useful for testing a build a temporarily hand instrumented build. Patch by arrowdodger! llvm-svn: 138804
* lit: Add %T as a replacement for the output directoryDouglas Gregor2011-08-261-1/+3
| | | | llvm-svn: 138640
* utils/lit/lit/TestingConfig.py: Pass TEMP and TMP to tests on Win32 hosts.NAKAMURA Takumi2011-08-201-0/+2
| | | | | | Win32 GetTempPath() tends to pick up %WINDIR% when neither TEMP nor TMP was found. %WINDIR% should not be treated writable on recent Windows OS. llvm-svn: 138192
* utils/lit/lit/TestingConfig.py: Split out environment vars for Win32.NAKAMURA Takumi2011-08-201-3/+8
| | | | llvm-svn: 138191
* lit/LitConfig.py: Demote Win32 message "Unable to find 'bash.exe'" from ↵NAKAMURA Takumi2011-07-091-1/+1
| | | | | | Warning to Note. llvm-svn: 134809
* Use subprocess.Popen instead of popen2 to stop a deprecation warning when ↵Jordy Rose2011-07-021-1/+1
| | | | | | running lit on OS X llvm-svn: 134324
* lit support for REQUIRES: asserts.Andrew Trick2011-06-222-11/+2
| | | | | | | | | | 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
* Add support to lit for build mode requirements. e.g.Andrew Trick2011-06-162-2/+11
| | | | | | | | | | REQUIRES: Asserts REQUIRES: Debug This required chaining test configuration properties. It seems like a generally good thing to do. llvm-svn: 133131
* Fix a ton of comment typos found by codespell. Patch byChris Lattner2011-04-151-1/+1
| | | | | | Luis Felipe Strano Moraes! llvm-svn: 129558
* raw_ostream: [PR6745] Tweak formatting (double)%e for Windows hosts.NAKAMURA Takumi2011-03-181-1/+0
| | | | | | | On MSVCRT and compatible, output of %e is incompatible to Posix by default. Number of exponent digits should be at least 2. "%+03d" FIXME: Implement our formatter in future! llvm-svn: 127872
* lit/ProgressBar.py: [PR7919] Improve line wrap for XN-incapable terminals.NAKAMURA Takumi2011-03-151-4/+17
| | | | | | On Win32 console, emitting char to col#79 causes linefeed, and the cursor will not return to col#79 upper line with backspace. llvm-svn: 127696
* utils/lit/lit/TestRunner.py: bash is available with MSYS on Python/W32. Then ↵NAKAMURA Takumi2011-03-051-5/+10
| | | | | | we can execute "bash tests". llvm-svn: 127074
* On Windows hosts, Python scripts in test/Scripts did not accept binary files ↵NAKAMURA Takumi2011-03-051-0/+1
| | | | | | from stdin. The environment variable "PYTHONUNBUFFERED" makes stdin as binary. Thanks to Danil Malyshev! llvm-svn: 127072
* lit/TestingConfig.py: Add the environment variable PRINTF_EXPONENT_DIGITS as ↵NAKAMURA Takumi2011-02-171-0/+1
| | | | | | | | | | workaround [PR6745] for mingw's tests. Danil Malyshev suggested this. FIXME: It does not improve MSVC's issue. [Danil Malyshev] Defining PRINTF_EXPONENT_DIGITS env is the suggested way to make MinGW ANSI/POSIX compatible. This is not only about the case we are discussing, but in general, I'd like to have explicitly defined compatibility mode for all the tests running on MinGW. llvm-svn: 125725
* lit/TestFormats.py: Unittests may be found with suffix .exe also on Cygwin.NAKAMURA Takumi2011-02-101-2/+2
| | | | llvm-svn: 125273
* lit/Util.py: On Cygwin, 'PATHEXT' may exist but it should not be used.NAKAMURA Takumi2011-02-101-1/+5
| | | | llvm-svn: 125272
* lit/LitConfig.py: Add the new method getToolsPath(dir,paths,tools).NAKAMURA Takumi2011-02-091-0/+16
| | | | | | | | It seeks tools(eg. [cmp, grep, sed]) in same directory, to be sane. It seeks "bash" only in the directory found at last time. Or bash would be insane (against other tools). llvm-svn: 125175
* lit/Util.py: Add two functions, checkToolsPath(dir,tools) and ↵NAKAMURA Takumi2011-02-091-0/+12
| | | | | | | | | | | | | whichTools(tools,paths). checkToolsPath(dir,tools): return True if "dir" contains all "tools". whichTools(tools,paths): return a directory that contains all "tools" in "paths". Or return None when all "tools" were not met. llvm-svn: 125174
* On Windows, replace each occurrence of '\' by '\\' on the replacement ↵Francois Pichet2011-01-081-4/+2
| | | | | | | | | | | | string. This is necessary to prevent re.sub from replacing escape sequences occurring in path. For example: llvm\tools\clang\test was replaced by llvm <tab> ools\clang <tab> est llvm-svn: 123070
* Disable r122754 on Windows: was causing all lit tests to fail.Francois Pichet2011-01-041-1/+5
| | | | llvm-svn: 122808
* Reapply 122341 to fix PR8199 now that clang changes are in.David Greene2011-01-031-2/+6
| | | | llvm-svn: 122754
* Revert 122341. It breaks some darwin tests.David Greene2010-12-211-6/+2
| | | | llvm-svn: 122346
* Fix PR 8199. This patch prepends the build tool dir to LLVM programsDavid Greene2010-12-211-2/+6
| | | | | | | | 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
* utils/lit/lit/TestFormats.py: [PR8438] unittests: Seek *Tests (not ↵NAKAMURA Takumi2010-12-071-2/+3
| | | | | | BUILD_MODE/*Tests) under whole unittests/ if BUILD_MODE == '.' llvm-svn: 121118
* lit.GoogleTest: On case-insensitive filesystem, matching should be ↵NAKAMURA Takumi2010-11-191-2/+2
| | | | | | | | case-insensitive when directory name is checked with test_sub_dir. On MSVS8, ${CMAKE_CFG_INTDIR}, aka $(OutDir), has capitalized name(eg. Debug), although $(OutDir) is made with lower case(eg. debug). llvm-svn: 119781
* lit: Fix a subtle resource usage bug when executing tests using the internalDaniel Dunbar2010-09-291-4/+7
| | | | | | | | | | | | | shell runner. We would inadvertently end up holding on to handles to the temporary files longer than we should have been. On Win32, where open handles lock some file operations, this caused problems in tests which would try to move temporary files around (as Clang does by default now). Many thanks to Francois Pichet for the excellent detective work on this. llvm-svn: 115040
* Test unittests built with CMake.Michael J. Spencer2010-09-241-3/+9
| | | | llvm-svn: 114726
* Fix whitespace.Michael J. Spencer2010-09-241-2/+2
| | | | llvm-svn: 114724
* lit: Bump version to 0.2.0dev, for no apparent reason.Daniel Dunbar2010-09-181-2/+2
| | | | llvm-svn: 114262
* lit: Tweak setup.py.Daniel Dunbar2010-09-181-11/+12
| | | | llvm-svn: 114261
* lit: These TODOs are done(ish).Daniel Dunbar2010-09-181-10/+0
| | | | llvm-svn: 114260
* Some of the tests build an executable with llvm-gcc. For this to work, llvm-gccDuncan Sands2010-09-171-0/+1
| | | | | | | needs to find some libraries, which may require searching the directories given by LIBRARY_PATH on curiously configured systems. So pass on LIBRARY_PATH. llvm-svn: 114186
* lit: Expose FileBasedTest object and Test module via 'lit' object that getsDaniel Dunbar2010-09-152-0/+4
| | | | | | exposed to config files. llvm-svn: 113923
* lit: Rename main lit module to main.py, lit/lit/lit.py was a bit too, err,Daniel Dunbar2010-09-152-1/+1
| | | | | | alliterate. llvm-svn: 113922
* lit/GoogleTest: Add .exe to the suffix when looking for tests.Daniel Dunbar2010-08-191-0/+7
| | | | llvm-svn: 111487
* Expand uses of python 2.6's "A if B else C" syntax into regularDan Gohman2010-08-101-4/+16
| | | | | | if-else statements, to hopefully support older pythons (PR7850). llvm-svn: 110638
* Print a message when a test failure is due to stderr outputDan Gohman2010-08-041-6/+17
| | | | | | alone, rather than just an exit code. llvm-svn: 110208
* Change the logic which interprets output on stderr as an error so thatDan Gohman2010-08-041-12/+4
| | | | | | | it doesn't modify the exit code or the stdout contents, and so that it doesn't clutter the output with "Command has output on stderr!". llvm-svn: 110171
* Don't print "Command output (stdout):" when the command has no output,Dan Gohman2010-08-041-8/+10
| | | | | | and same for stderr, to avoid clutter in the output. llvm-svn: 110169
OpenPOWER on IntegriCloud