diff options
author | Eli Bendersky <eli.bendersky@intel.com> | 2012-03-25 09:02:19 +0000 |
---|---|---|
committer | Eli Bendersky <eli.bendersky@intel.com> | 2012-03-25 09:02:19 +0000 |
commit | cc85160672e3b2d5ec363cc4e151e5b944a60454 (patch) | |
tree | ebf29a36f6da8574a843a41099843db92420a699 /test/CodeGen/CPP | |
parent | d54f9a4c3bcdb247ea4aa311251c19242b03be63 (diff) | |
download | llvm-cc85160672e3b2d5ec363cc4e151e5b944a60454.tar.gz |
Continue cleanup of LIT, getting rid of the remaining artifacts from dejagnu
* Removed test/lib/llvm.exp - it is no longer needed
* Deleted the dg.exp reading code from test/lit.cfg. There are no dg.exp files
left in the test suite so this code is no longer required. test/lit.cfg is
now much shorter and clearer
* Removed a lot of duplicate code in lit.local.cfg files that need access to
the root configuration, by adding a "root" attribute to the TestingConfig
object. This attribute is dynamically computed to provide the same
information as was previously provided by the custom getRoot functions.
* Documented the config.root attribute in docs/CommandGuide/lit.pod
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/CPP')
-rw-r--r-- | test/CodeGen/CPP/lit.local.cfg | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/test/CodeGen/CPP/lit.local.cfg b/test/CodeGen/CPP/lit.local.cfg index 96596d85f6e4..4d4b4a4a7e21 100644 --- a/test/CodeGen/CPP/lit.local.cfg +++ b/test/CodeGen/CPP/lit.local.cfg @@ -1,13 +1,6 @@ config.suffixes = ['.ll', '.c', '.cpp'] -def getRoot(config): - if not config.parent: - return config - return getRoot(config.parent) - -root = getRoot(config) - -targets = set(root.targets_to_build.split()) +targets = set(config.root.targets_to_build.split()) if not 'CppBackend' in targets: config.unsupported = True |