diff options
author | Daniel Dunbar <daniel@zuster.org> | 2013-09-03 23:32:55 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2013-09-03 23:32:55 +0000 |
commit | dac381a323325e2e81907b5fa3eacfaeee2b6928 (patch) | |
tree | a8ed24f3aea26a4b142b60845e72b6a530c06385 /llvm/utils/lit/tests | |
parent | b8e430d695d63702e0d33eaa1c89dfc2f7b63ddc (diff) | |
download | bcm5719-llvm-dac381a323325e2e81907b5fa3eacfaeee2b6928.tar.gz bcm5719-llvm-dac381a323325e2e81907b5fa3eacfaeee2b6928.zip |
[lit] Allow config files to pass arbitrary values to child configs.
- This aligns with how existing test suites end up wanting to use the local
config files, conceptually it makes sense to consider them to be inherited.
llvm-svn: 189885
Diffstat (limited to 'llvm/utils/lit/tests')
-rw-r--r-- | llvm/utils/lit/tests/Inputs/discovery/lit.cfg | 3 | ||||
-rw-r--r-- | llvm/utils/lit/tests/Inputs/discovery/subdir/lit.local.cfg | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/llvm/utils/lit/tests/Inputs/discovery/lit.cfg b/llvm/utils/lit/tests/Inputs/discovery/lit.cfg index 1c5436be534..c48ca0bc036 100644 --- a/llvm/utils/lit/tests/Inputs/discovery/lit.cfg +++ b/llvm/utils/lit/tests/Inputs/discovery/lit.cfg @@ -9,3 +9,6 @@ config.test_format = lit.formats.ShTest() # #config.test_source_root = None #config.test_exec_root = None + +# Check that arbitrary config values are copied (tested by subdir/lit.local.cfg). +config.an_extra_variable = False diff --git a/llvm/utils/lit/tests/Inputs/discovery/subdir/lit.local.cfg b/llvm/utils/lit/tests/Inputs/discovery/subdir/lit.local.cfg index 5ae6b3cd017..631cb602b0d 100644 --- a/llvm/utils/lit/tests/Inputs/discovery/subdir/lit.local.cfg +++ b/llvm/utils/lit/tests/Inputs/discovery/subdir/lit.local.cfg @@ -1 +1,4 @@ config.suffixes = ['.py'] + +# Check that the arbitrary config values in our parent was inherited. +assert hasattr(config, 'an_extra_variable') |