diff options
author | Daniel Dunbar <daniel@zuster.org> | 2013-04-12 19:08:57 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2013-04-12 19:08:57 +0000 |
commit | b5e9727ee53d702f70b0cf7ccd36eed8436d2802 (patch) | |
tree | 94ebdea976bbeb4944d2845061f65c9648365a0e /llvm/utils/lit/tests/Inputs | |
parent | 4a3b160d4f2a244179e4edff3061c1b7fc127d34 (diff) | |
download | bcm5719-llvm-b5e9727ee53d702f70b0cf7ccd36eed8436d2802.tar.gz bcm5719-llvm-b5e9727ee53d702f70b0cf7ccd36eed8436d2802.zip |
lit: Add a test for discovery w/ test_exec_root (out-of-tree test root).
llvm-svn: 179401
Diffstat (limited to 'llvm/utils/lit/tests/Inputs')
-rw-r--r-- | llvm/utils/lit/tests/Inputs/discovery/lit.cfg | 9 | ||||
-rw-r--r-- | llvm/utils/lit/tests/Inputs/exec-discovery/lit.site.cfg | 5 |
2 files changed, 12 insertions, 2 deletions
diff --git a/llvm/utils/lit/tests/Inputs/discovery/lit.cfg b/llvm/utils/lit/tests/Inputs/discovery/lit.cfg index 3513bfffd17..4049ab16f9c 100644 --- a/llvm/utils/lit/tests/Inputs/discovery/lit.cfg +++ b/llvm/utils/lit/tests/Inputs/discovery/lit.cfg @@ -1,5 +1,10 @@ config.name = 'top-level-suite' config.suffixes = ['.txt'] config.test_format = lit.formats.ShTest() -config.test_source_root = None -config.test_exec_root = None + +# We intentionally don't set the source root or exec root directories here, +# because this suite gets reused for testing the exec root behavior (in +# ../exec-discovery). +# +#config.test_source_root = None +#config.test_exec_root = None diff --git a/llvm/utils/lit/tests/Inputs/exec-discovery/lit.site.cfg b/llvm/utils/lit/tests/Inputs/exec-discovery/lit.site.cfg new file mode 100644 index 00000000000..796569a301b --- /dev/null +++ b/llvm/utils/lit/tests/Inputs/exec-discovery/lit.site.cfg @@ -0,0 +1,5 @@ +# Load the discovery suite, but with a separate exec root. +import os +config.test_exec_root = os.path.dirname(__file__) +config.test_source_root = os.path.join(os.path.dirname(config.test_exec_root), "discovery") +lit.load_config(config, os.path.join(config.test_source_root, "lit.cfg")) |