summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Thumb2
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/Thumb2
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/Thumb2')
-rw-r--r--llvm/test/CodeGen/Thumb2/dg.exp5
-rw-r--r--llvm/test/CodeGen/Thumb2/lit.local.cfg13
2 files changed, 13 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/Thumb2/dg.exp b/llvm/test/CodeGen/Thumb2/dg.exp
deleted file mode 100644
index 3ff359aab39..00000000000
--- a/llvm/test/CodeGen/Thumb2/dg.exp
+++ /dev/null
@@ -1,5 +0,0 @@
-load_lib llvm.exp
-
-if { [llvm_supports_target ARM] } {
- RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
-}
diff --git a/llvm/test/CodeGen/Thumb2/lit.local.cfg b/llvm/test/CodeGen/Thumb2/lit.local.cfg
new file mode 100644
index 00000000000..dd6c50d4fe4
--- /dev/null
+++ b/llvm/test/CodeGen/Thumb2/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 'ARM' in targets:
+ config.unsupported = True
+
OpenPOWER on IntegriCloud