llvm-project/llvm/utils/lit
Alp Toker 9e628916f6 lit: Provide file location in cfg error messages
Python doesn't do a good job at diagnosing string exec() so use execfile()
where available.

This should be a timesaver when trying to get to the bottom of build bot
failures.

Before:

    File "llvm/utils/lit/lit/TestingConfig.py", line 93, in load_from_path
      exec("exec data in cfg_globals")
    File "<string>", line 1, in <module>
    File "<string>", line 194, in <module>
  NameError: name 'typo' is not defined

After:

    File "llvm/utils/lit/lit/TestingConfig.py", line 95, in load_from_path
    execfile(path, cfg_globals)
    File "clang/test/lit.cfg", line 194, in <module>
      typo
      ^~~~
  NameError: name 'typo' is not defined

llvm-svn: 198766
2014-01-08 14:20:59 +00:00
..
examples [lit] Move ManyTests examples to lit/examples/many-tests. 2013-08-09 21:39:28 +00:00
lit lit: Provide file location in cfg error messages 2014-01-08 14:20:59 +00:00
tests [lit] Add an --output option, for writing results in a machine readable form. 2013-09-14 01:19:17 +00:00
utils [lit] Add a MANIFEST file and a script for sanity checking the source dist. 2013-01-31 00:21:59 +00:00
MANIFEST.in [lit] Add a MANIFEST file and a script for sanity checking the source dist. 2013-01-31 00:21:59 +00:00
TODO [lit] Add support for multiprocessing, under --use-processes for now. 2013-08-29 00:54:23 +00:00
lit.py
setup.py [lit] Support use of setup.py from other directories. 2013-08-13 19:08:48 +00:00