diff options
author | Eli Bendersky <eli.bendersky@intel.com> | 2012-02-16 06:28:33 +0000 |
---|---|---|
committer | Eli Bendersky <eli.bendersky@intel.com> | 2012-02-16 06:28:33 +0000 |
commit | 924f9a671d8a9e6156ea4519ad9f1ce36c708978 (patch) | |
tree | d74002b58dcf1c7130846e04c6b9cd0240d7d56b /llvm/test/CodeGen/CBackend | |
parent | 59e41d046e85b54dc7d15233a235d85004c28514 (diff) | |
download | bcm5719-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')
-rw-r--r-- | llvm/test/CodeGen/CBackend/X86/dg.exp | 5 | ||||
-rw-r--r-- | llvm/test/CodeGen/CBackend/X86/lit.local.cfg | 13 | ||||
-rw-r--r-- | llvm/test/CodeGen/CBackend/dg.exp | 5 | ||||
-rw-r--r-- | llvm/test/CodeGen/CBackend/lit.local.cfg | 13 |
4 files changed, 26 insertions, 10 deletions
diff --git a/llvm/test/CodeGen/CBackend/X86/dg.exp b/llvm/test/CodeGen/CBackend/X86/dg.exp deleted file mode 100644 index 44e3a5eff4a..00000000000 --- a/llvm/test/CodeGen/CBackend/X86/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target X86] && [llvm_supports_target CBackend] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp,s}]] -} diff --git a/llvm/test/CodeGen/CBackend/X86/lit.local.cfg b/llvm/test/CodeGen/CBackend/X86/lit.local.cfg new file mode 100644 index 00000000000..037d8c3910d --- /dev/null +++ b/llvm/test/CodeGen/CBackend/X86/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 or not 'X86' in targets: + config.unsupported = True + diff --git a/llvm/test/CodeGen/CBackend/dg.exp b/llvm/test/CodeGen/CBackend/dg.exp deleted file mode 100644 index 9d789409d4a..00000000000 --- a/llvm/test/CodeGen/CBackend/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target CBackend] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]] -} 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 + |