summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/CBackend/lit.local.cfg
diff options
context:
space:
mode:
authorEli Bendersky <eli.bendersky@intel.com>2012-02-16 06:28:33 +0000
committerEli Bendersky <eli.bendersky@intel.com>2012-02-16 06:28:33 +0000
commit924f9a671d8a9e6156ea4519ad9f1ce36c708978 (patch)
treed74002b58dcf1c7130846e04c6b9cd0240d7d56b /llvm/test/CodeGen/CBackend/lit.local.cfg
parent59e41d046e85b54dc7d15233a235d85004c28514 (diff)
downloadbcm5719-llvm-924f9a671d8a9e6156ea4519ad9f1ce36c708978.tar.gz
bcm5719-llvm-924f9a671d8a9e6156ea4519ad9f1ce36c708978.zip
Replace all instances of dg.exp file with lit.local.cfg, since all tests are run with LIT now and now Dejagnu. dg.exp is no longer needed.
Patch reviewed by Daniel Dunbar. It will be followed by additional cleanup patches. llvm-svn: 150664
Diffstat (limited to 'llvm/test/CodeGen/CBackend/lit.local.cfg')
-rw-r--r--llvm/test/CodeGen/CBackend/lit.local.cfg13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/CBackend/lit.local.cfg b/llvm/test/CodeGen/CBackend/lit.local.cfg
new file mode 100644
index 00000000000..0dce1702a79
--- /dev/null
+++ b/llvm/test/CodeGen/CBackend/lit.local.cfg
@@ -0,0 +1,13 @@
+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())
+if not 'CBackend' in targets:
+ config.unsupported = True
+
OpenPOWER on IntegriCloud