Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix a ton of comment typos found by codespell. Patch by | Chris Lattner | 2011-04-15 | 1 | -1/+1 |
| | | | | | | Luis Felipe Strano Moraes! llvm-svn: 129558 | ||||
* | raw_ostream: [PR6745] Tweak formatting (double)%e for Windows hosts. | NAKAMURA Takumi | 2011-03-18 | 1 | -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 Takumi | 2011-03-15 | 1 | -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 Takumi | 2011-03-05 | 1 | -5/+10 |
| | | | | | | we can execute "bash tests". llvm-svn: 127074 | ||||
* | On Windows hosts, Python scripts in test/Scripts did not accept binary files ↵ | NAKAMURA Takumi | 2011-03-05 | 1 | -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 Takumi | 2011-02-17 | 1 | -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 Takumi | 2011-02-10 | 1 | -2/+2 |
| | | | | llvm-svn: 125273 | ||||
* | lit/Util.py: On Cygwin, 'PATHEXT' may exist but it should not be used. | NAKAMURA Takumi | 2011-02-10 | 1 | -1/+5 |
| | | | | llvm-svn: 125272 | ||||
* | lit/LitConfig.py: Add the new method getToolsPath(dir,paths,tools). | NAKAMURA Takumi | 2011-02-09 | 1 | -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 Takumi | 2011-02-09 | 1 | -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 Pichet | 2011-01-08 | 1 | -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 Pichet | 2011-01-04 | 1 | -1/+5 |
| | | | | llvm-svn: 122808 | ||||
* | Reapply 122341 to fix PR8199 now that clang changes are in. | David Greene | 2011-01-03 | 1 | -2/+6 |
| | | | | llvm-svn: 122754 | ||||
* | Revert 122341. It breaks some darwin tests. | David Greene | 2010-12-21 | 1 | -6/+2 |
| | | | | llvm-svn: 122346 | ||||
* | Fix PR 8199. This patch prepends the build tool dir to LLVM programs | David Greene | 2010-12-21 | 1 | -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 Takumi | 2010-12-07 | 1 | -2/+3 |
| | | | | | | BUILD_MODE/*Tests) under whole unittests/ if BUILD_MODE == '.' llvm-svn: 121118 | ||||
* | lit.GoogleTest: On case-insensitive filesystem, matching should be ↵ | NAKAMURA Takumi | 2010-11-19 | 1 | -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 internal | Daniel Dunbar | 2010-09-29 | 1 | -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. Spencer | 2010-09-24 | 1 | -3/+9 |
| | | | | llvm-svn: 114726 | ||||
* | Fix whitespace. | Michael J. Spencer | 2010-09-24 | 1 | -2/+2 |
| | | | | llvm-svn: 114724 | ||||
* | lit: Bump version to 0.2.0dev, for no apparent reason. | Daniel Dunbar | 2010-09-18 | 1 | -2/+2 |
| | | | | llvm-svn: 114262 | ||||
* | lit: Tweak setup.py. | Daniel Dunbar | 2010-09-18 | 1 | -11/+12 |
| | | | | llvm-svn: 114261 | ||||
* | lit: These TODOs are done(ish). | Daniel Dunbar | 2010-09-18 | 1 | -10/+0 |
| | | | | llvm-svn: 114260 | ||||
* | Some of the tests build an executable with llvm-gcc. For this to work, llvm-gcc | Duncan Sands | 2010-09-17 | 1 | -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 gets | Daniel Dunbar | 2010-09-15 | 2 | -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 Dunbar | 2010-09-15 | 2 | -1/+1 |
| | | | | | | alliterate. llvm-svn: 113922 | ||||
* | lit/GoogleTest: Add .exe to the suffix when looking for tests. | Daniel Dunbar | 2010-08-19 | 1 | -0/+7 |
| | | | | llvm-svn: 111487 | ||||
* | Expand uses of python 2.6's "A if B else C" syntax into regular | Dan Gohman | 2010-08-10 | 1 | -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 output | Dan Gohman | 2010-08-04 | 1 | -6/+17 |
| | | | | | | alone, rather than just an exit code. llvm-svn: 110208 | ||||
* | Change the logic which interprets output on stderr as an error so that | Dan Gohman | 2010-08-04 | 1 | -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 Gohman | 2010-08-04 | 1 | -8/+10 |
| | | | | | | and same for stderr, to avoid clutter in the output. llvm-svn: 110169 | ||||
* | Use the regular conditional operator syntax instead of a clever hack. | Dan Gohman | 2010-08-04 | 1 | -4/+4 |
| | | | | llvm-svn: 110168 | ||||
* | lit: Allow clients to define predefined parameters. | Daniel Dunbar | 2010-08-02 | 1 | -3/+2 |
| | | | | llvm-svn: 109999 | ||||
* | lit: Add some example tests for previous commit. | Daniel Dunbar | 2010-07-22 | 2 | -0/+6 |
| | | | | llvm-svn: 109071 | ||||
* | lit: Add support for 'REQUIRES: feature-one, feature-two, ...' in the | Daniel Dunbar | 2010-07-21 | 3 | -3/+22 |
| | | | | | | | integrated-test formats (sh and tcl style). The particular features which get recognized are up to the test suite itself to define. llvm-svn: 109062 | ||||
* | lit: Replace /dev/null in scripts with temporary files on Windows. | Daniel Dunbar | 2010-06-12 | 1 | -0/+17 |
| | | | | llvm-svn: 105888 | ||||
* | lit: Add a forgotten default argument. | Daniel Dunbar | 2010-06-11 | 1 | -1/+1 |
| | | | | llvm-svn: 105858 | ||||
* | lit: When running Tcl style tests on Windows, substitute slashes to avoid Tcl | Daniel Dunbar | 2010-06-11 | 1 | -6/+17 |
| | | | | | | | quoting problems. Not particularly ideal, but should work ok. Based on a patch by Michael Spencer! llvm-svn: 105855 | ||||
* | lit: Add another place to look for bash. | Daniel Dunbar | 2010-05-19 | 1 | -1/+1 |
| | | | | llvm-svn: 104189 | ||||
* | lit: Fix a sh lexing bug which caused annotate-token.m to fail when run with the | Daniel Dunbar | 2010-05-12 | 1 | -0/+7 |
| | | | | | | | | | | internal shell parser; we weren't lexing the quotes in a command like:: clang -DFOO='hello' correctly. llvm-svn: 103652 | ||||
* | lit: Fix OneCommandPerFileTest format when tests are specified directly. | Daniel Dunbar | 2010-05-12 | 1 | -1/+3 |
| | | | | llvm-svn: 103626 | ||||
* | lit: Add support for 'lit ... @foo', which reads a list of tests to run from | Daniel Dunbar | 2010-05-12 | 1 | -1/+17 |
| | | | | | | foo. llvm-svn: 103625 | ||||
* | lit: Allow test_format to be None. | Daniel Dunbar | 2010-05-05 | 1 | -3/+4 |
| | | | | llvm-svn: 103091 | ||||
* | lit: Add support to OneCommandPerFileTest format to take input directory ↵ | Daniel Dunbar | 2010-04-09 | 1 | -3/+9 |
| | | | | | | from input path. llvm-svn: 100846 | ||||
* | add newlines at end of files. | Chris Lattner | 2010-04-07 | 1 | -1/+1 |
| | | | | llvm-svn: 100706 | ||||
* | Add a FIXME. | Daniel Dunbar | 2010-03-31 | 1 | -0/+2 |
| | | | | llvm-svn: 100034 | ||||
* | lit: Make sure to close any files we open as part of redirection. | Daniel Dunbar | 2010-03-31 | 1 | -1/+7 |
| | | | | | | PR6753. llvm-svn: 100032 | ||||
* | lit: Add LitTestCase and lit.load_test_suite, for adapting lit based suites for | Daniel Dunbar | 2010-03-25 | 3 | -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 Yasskin | 2010-03-21 | 1 | -0/+3 |
| | | | | llvm-svn: 99112 | ||||
* | Add support for XFAILing valgrind runs with memory leak checking independently | Jeffrey Yasskin | 2010-03-20 | 4 | -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 |