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 | 0f0c411079cd21bb3a81a1b70bf8c67539a16c22 (patch) | |
tree | c387d12156e467f3fe89e7893e3ec1f330a44b2f /test/CodeGen/CBackend | |
parent | d8d110e08ab3fee8d0a2b758c893b7966fd2d3d8 (diff) | |
download | external_llvm-0f0c411079cd21bb3a81a1b70bf8c67539a16c22.zip external_llvm-0f0c411079cd21bb3a81a1b70bf8c67539a16c22.tar.gz external_llvm-0f0c411079cd21bb3a81a1b70bf8c67539a16c22.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150664 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/CBackend')
-rw-r--r-- | test/CodeGen/CBackend/X86/dg.exp | 5 | ||||
-rw-r--r-- | test/CodeGen/CBackend/X86/lit.local.cfg | 13 | ||||
-rw-r--r-- | test/CodeGen/CBackend/dg.exp | 5 | ||||
-rw-r--r-- | test/CodeGen/CBackend/lit.local.cfg | 13 |
4 files changed, 26 insertions, 10 deletions
diff --git a/test/CodeGen/CBackend/X86/dg.exp b/test/CodeGen/CBackend/X86/dg.exp deleted file mode 100644 index 44e3a5e..0000000 --- a/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/test/CodeGen/CBackend/X86/lit.local.cfg b/test/CodeGen/CBackend/X86/lit.local.cfg new file mode 100644 index 0000000..037d8c3 --- /dev/null +++ b/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/test/CodeGen/CBackend/dg.exp b/test/CodeGen/CBackend/dg.exp deleted file mode 100644 index 9d78940..0000000 --- a/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/test/CodeGen/CBackend/lit.local.cfg b/test/CodeGen/CBackend/lit.local.cfg new file mode 100644 index 0000000..0dce170 --- /dev/null +++ b/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 + |