Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [lit] Ensure test output is converted to strings where possible. | Daniel Dunbar | 2013-08-14 | 7 | -4/+63 | |
| | | | | | | - This cleans up the text output of failing tests when run under PY3. llvm-svn: 188416 | |||||
* | [lit] Support parsing scripts with inconsistent or invalid encodings. | Daniel Dunbar | 2013-08-14 | 2 | -12/+48 | |
| | | | | | | | | | | | | - For whatever reason, we have a lot of test files with bogus unicode characters. This patch allows those scripts to still be parsed on Python3 by changing the parsing logic to work on binary files, and only require the actual script commands to be convertible to ascii. - This patch has been tweaked to now ensure that the command strings are not of unicode type on Python 2.6-7. llvm-svn: 188398 | |||||
* | Revert r188376, "[lit] Support parsing scripts with inconsistent or invalid ↵ | Daniel Dunbar | 2013-08-14 | 2 | -45/+12 | |
| | | | | | | encodings.", this doesn't work yet for bots using the internal shell. llvm-svn: 188379 | |||||
* | [lit] Support parsing scripts with inconsistent or invalid encodings. | Daniel Dunbar | 2013-08-14 | 2 | -12/+45 | |
| | | | | | | | | | - For whatever reason, we have a lot of test files with bogus unicode characters. This patch allows those scripts to still be parsed on Python3 by changing the parsing logic to work on binary files, and only require the actual script commands to be convertible to ascii. llvm-svn: 188376 | |||||
* | [lit] Fix a relative import issue I missed earlier. | Daniel Dunbar | 2013-08-14 | 1 | -2/+4 | |
| | | | | llvm-svn: 188360 | |||||
* | [lit] Avoid StringIO. | Daniel Dunbar | 2013-08-14 | 1 | -19/+25 | |
| | | | | | | | - We barely used it, and it is very hard to use in a 2.5-3 compatible way because of changing expectations for its input types. llvm-svn: 188359 | |||||
* | [lit] Fix tests to execute lit with same python as invoked with. | Daniel Dunbar | 2013-08-14 | 3 | -3/+6 | |
| | | | | llvm-svn: 188358 | |||||
* | [lit] Factor ShTest format script command parsing from other processing. | Daniel Dunbar | 2013-08-14 | 1 | -17/+32 | |
| | | | | llvm-svn: 188357 | |||||
* | [lit] Move executeCommand() into lit.util. | Daniel Dunbar | 2013-08-14 | 4 | -23/+23 | |
| | | | | llvm-svn: 188356 | |||||
* | [lit] Move formats into their own subpackage. | Daniel Dunbar | 2013-08-14 | 4 | -117/+130 | |
| | | | | llvm-svn: 188355 | |||||
* | Lit: Introduce "%/[STpst] into parseIntegratedTestScript(), to normalize ↵ | NAKAMURA Takumi | 2013-08-14 | 1 | -0/+9 | |
| | | | | | | substitutions. llvm-svn: 188348 | |||||
* | [lit] Support use of setup.py from other directories. | Daniel Dunbar | 2013-08-13 | 1 | -1/+8 | |
| | | | | llvm-svn: 188309 | |||||
* | [lit] Remove old ExamplesTests directory. | Daniel Dunbar | 2013-08-09 | 23 | -262/+0 | |
| | | | | | | | - The actual tests have better coverage than those, and they weren't useful anymore. llvm-svn: 188110 | |||||
* | [lit] Move ManyTests examples to lit/examples/many-tests. | Daniel Dunbar | 2013-08-09 | 3 | -1/+18 | |
| | | | | llvm-svn: 188109 | |||||
* | [lit] Drop deprecated aliases for lit and old module names. | Daniel Dunbar | 2013-08-09 | 3 | -14/+0 | |
| | | | | llvm-svn: 188108 | |||||
* | [lit] Update lit's own tests to use lit_config and lit package, as appropriate. | Daniel Dunbar | 2013-08-09 | 11 | -4/+15 | |
| | | | | llvm-svn: 188107 | |||||
* | [lit] Fix typo. | Daniel Dunbar | 2013-08-09 | 1 | -1/+1 | |
| | | | | | | - Noticed by edward-san (IRC). llvm-svn: 188096 | |||||
* | [lit] Rename lit.{TestFormats,Util} to their aliased names {formats,util}. | Daniel Dunbar | 2013-08-09 | 7 | -20/+24 | |
| | | | | | | | - With compatibility hack in lit.__init__, so this hopefully shouldn't break anything. llvm-svn: 188040 | |||||
* | [lit] Inject the lit specific config object as 'lit_config' when loading ↵ | Daniel Dunbar | 2013-08-09 | 1 | -0/+1 | |
| | | | | | | | | | | config files. - Injecting it as 'lit' is gross, since that name should be used to refer to the actual package. For now both are available so it is possibly to cleanup test config files incrementally. llvm-svn: 188039 | |||||
* | [lit] Split TestingConfig.frompath() into separate ctor and load methods. | Daniel Dunbar | 2013-08-09 | 3 | -51/+58 | |
| | | | | llvm-svn: 188038 | |||||
* | [lit] Eliminate mustExist parameter from TestingConfig.frompath(). | Daniel Dunbar | 2013-08-09 | 3 | -37/+34 | |
| | | | | llvm-svn: 188034 | |||||
* | [lit] Only create config copies when a local config file is present. | Daniel Dunbar | 2013-08-09 | 2 | -5/+12 | |
| | | | | llvm-svn: 188033 | |||||
* | [lit] Eliminate parent argument from TestingConfig.frompath(), which is ↵ | Daniel Dunbar | 2013-08-09 | 3 | -6/+12 | |
| | | | | | | effectively unused. llvm-svn: 188032 | |||||
* | [lit] Change --show-{tests,suites} to exit after printing. | Daniel Dunbar | 2013-08-08 | 2 | -11/+9 | |
| | | | | | | - This is a more sensible behavior than printing and also running tests. llvm-svn: 188009 | |||||
* | [lit] Remove --repeat option, which wasn't that useful. | Daniel Dunbar | 2013-08-08 | 3 | -18/+0 | |
| | | | | llvm-svn: 188008 | |||||
* | [lit] Eliminate some nested imports. | Daniel Dunbar | 2013-08-08 | 4 | -13/+8 | |
| | | | | llvm-svn: 188007 | |||||
* | [lit] Remove on_clone member, which is no longer used. | Daniel Dunbar | 2013-08-08 | 1 | -12/+7 | |
| | | | | llvm-svn: 188006 | |||||
* | [lit] Remove unnecessary list copy. | Daniel Dunbar | 2013-08-07 | 1 | -1/+1 | |
| | | | | llvm-svn: 187934 | |||||
* | [lit] Always list individual UNRESOLVED tests. | Daniel Dunbar | 2013-08-07 | 1 | -2/+3 | |
| | | | | llvm-svn: 187933 | |||||
* | [lit] Explicitly convert dict items() result to a list. | Daniel Dunbar | 2013-08-07 | 1 | -1/+1 | |
| | | | | llvm-svn: 187932 | |||||
* | [lit] Make string encoding issues explicit. | Daniel Dunbar | 2013-08-07 | 2 | -1/+6 | |
| | | | | llvm-svn: 187931 | |||||
* | [lit] Report the traceback when config import fails. | Daniel Dunbar | 2013-08-07 | 1 | -0/+5 | |
| | | | | llvm-svn: 187920 | |||||
* | [lit] Avoid comparisons with None. | Daniel Dunbar | 2013-08-07 | 1 | -1/+3 | |
| | | | | llvm-svn: 187919 | |||||
* | [lit] Use list comprehensions instead of map(). | Daniel Dunbar | 2013-08-07 | 3 | -3/+4 | |
| | | | | llvm-svn: 187918 | |||||
* | [lit] Avoid deprecated dict.has_key() method. | Daniel Dunbar | 2013-08-07 | 1 | -2/+2 | |
| | | | | llvm-svn: 187917 | |||||
* | lit/LitConfig.py: Fixup for msys bash. | NAKAMURA Takumi | 2013-08-07 | 1 | -1/+1 | |
| | | | | llvm-svn: 187896 | |||||
* | Lit: Fixup in r187886. | NAKAMURA Takumi | 2013-08-07 | 1 | -1/+1 | |
| | | | | llvm-svn: 187887 | |||||
* | Lit: Resurrect --no-execute dropped in r187852. | NAKAMURA Takumi | 2013-08-07 | 5 | -1/+14 | |
| | | | | | | For now, builders in bb.pgr.jp are using it. llvm-svn: 187886 | |||||
* | [lit] Use py2&3 compatible exec() syntax. | Daniel Dunbar | 2013-08-07 | 1 | -1/+7 | |
| | | | | llvm-svn: 187862 | |||||
* | [lit] Use newer StringIO class. | Daniel Dunbar | 2013-08-07 | 1 | -17/+19 | |
| | | | | llvm-svn: 187861 | |||||
* | [lit] Use modern absolute/relative import style. | Daniel Dunbar | 2013-08-07 | 6 | -76/+84 | |
| | | | | llvm-svn: 187860 | |||||
* | [lit] Avoid __cmp__ and cmp(). | Daniel Dunbar | 2013-08-07 | 1 | -12/+12 | |
| | | | | llvm-svn: 187859 | |||||
* | [lit] Avoid use of iterator .next() method. | Daniel Dunbar | 2013-08-07 | 2 | -12/+10 | |
| | | | | llvm-svn: 187858 | |||||
* | [lit] Use .write() methods instead of print statement. | Daniel Dunbar | 2013-08-07 | 6 | -27/+26 | |
| | | | | llvm-svn: 187857 | |||||
* | [lit] Use dual-compatible print() syntax where possible. | Daniel Dunbar | 2013-08-07 | 2 | -33/+31 | |
| | | | | llvm-svn: 187856 | |||||
* | [lit] Remove use of deprecated parameter tuple unpacking. | Daniel Dunbar | 2013-08-07 | 2 | -3/+3 | |
| | | | | llvm-svn: 187855 | |||||
* | [lit] Remove uses of deprecated except syntax. | Daniel Dunbar | 2013-08-07 | 3 | -4/+7 | |
| | | | | | | | - Since we only have a few of these, use the cumbersome method of getting the exception object from 'sys' to retain the current pre-2.6 compatibility. llvm-svn: 187854 | |||||
* | [lit] Use more modern syntax for constructing exceptions. | Daniel Dunbar | 2013-08-07 | 3 | -10/+13 | |
| | | | | llvm-svn: 187853 | |||||
* | [lit] Drop --no-execute, which isn't generally useful. | Daniel Dunbar | 2013-08-07 | 5 | -14/+1 | |
| | | | | llvm-svn: 187852 | |||||
* | [lit] tests: Change discovery test to use --show-tests. | Daniel Dunbar | 2013-08-07 | 1 | -25/+31 | |
| | | | | llvm-svn: 187851 |