[PATCH] llvm-lit: Allow compiler-rt tests to run from the source tree

Duncan P. N. Exon Smith dexonsmith at apple.com
Fri Mar 28 14:31:40 PDT 2014


This is a pair of patches that allow compiler-rt tests to be run
from the source tree.

The initial test for InstrProf (under review "[PATCH] InstrProf:
Add initial compiler-rt test" [1]) cannot be run from the source
tree.  For example, with cmake+ninja, a user must:

    $ path/to/build/bin/llvm-lit path/to/build/projects/compiler-rt/test/profile

or:

    $ cd path/to/build
    $ ninja check-profile

Both are inconvenient when maintaining tests.

With this pair of patches, users can also call, e.g.:

    $ cd path/to/src/projects/compiler-rt
    $ path/to/build/bin/llvm-lit test/profile

The other compiler-rt lit.cfg files can be easily updated to use
the same mechanism.

[1]: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140324/210812.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-instrprof-tests-lit-magic.patch
Type: application/octet-stream
Size: 1391 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140328/5c4d6e6b/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compiler-rt-instrprof-tests-lit-magic.patch
Type: application/octet-stream
Size: 3270 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140328/5c4d6e6b/attachment-0001.obj>
-------------- next part --------------





More information about the llvm-commits mailing list