From 0f0c411079cd21bb3a81a1b70bf8c67539a16c22 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Thu, 16 Feb 2012 06:28:33 +0000 Subject: 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 --- test/Transforms/LoopStrengthReduce/ARM/dg.exp | 5 ----- test/Transforms/LoopStrengthReduce/ARM/lit.local.cfg | 13 +++++++++++++ test/Transforms/LoopStrengthReduce/X86/dg.exp | 5 ----- test/Transforms/LoopStrengthReduce/X86/lit.local.cfg | 13 +++++++++++++ test/Transforms/LoopStrengthReduce/dg.exp | 3 --- test/Transforms/LoopStrengthReduce/lit.local.cfg | 1 + 6 files changed, 27 insertions(+), 13 deletions(-) delete mode 100644 test/Transforms/LoopStrengthReduce/ARM/dg.exp create mode 100644 test/Transforms/LoopStrengthReduce/ARM/lit.local.cfg delete mode 100644 test/Transforms/LoopStrengthReduce/X86/dg.exp create mode 100644 test/Transforms/LoopStrengthReduce/X86/lit.local.cfg delete mode 100644 test/Transforms/LoopStrengthReduce/dg.exp create mode 100644 test/Transforms/LoopStrengthReduce/lit.local.cfg (limited to 'test/Transforms/LoopStrengthReduce') diff --git a/test/Transforms/LoopStrengthReduce/ARM/dg.exp b/test/Transforms/LoopStrengthReduce/ARM/dg.exp deleted file mode 100644 index a0009b86e5..0000000000 --- a/test/Transforms/LoopStrengthReduce/ARM/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target ARM] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll}]] -} diff --git a/test/Transforms/LoopStrengthReduce/ARM/lit.local.cfg b/test/Transforms/LoopStrengthReduce/ARM/lit.local.cfg new file mode 100644 index 0000000000..d622529cad --- /dev/null +++ b/test/Transforms/LoopStrengthReduce/ARM/lit.local.cfg @@ -0,0 +1,13 @@ +config.suffixes = ['.ll'] + +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 + diff --git a/test/Transforms/LoopStrengthReduce/X86/dg.exp b/test/Transforms/LoopStrengthReduce/X86/dg.exp deleted file mode 100644 index 7b7bd4e738..0000000000 --- a/test/Transforms/LoopStrengthReduce/X86/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target X86] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll}]] -} diff --git a/test/Transforms/LoopStrengthReduce/X86/lit.local.cfg b/test/Transforms/LoopStrengthReduce/X86/lit.local.cfg new file mode 100644 index 0000000000..84bd88ca33 --- /dev/null +++ b/test/Transforms/LoopStrengthReduce/X86/lit.local.cfg @@ -0,0 +1,13 @@ +config.suffixes = ['.ll'] + +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 'X86' in targets: + config.unsupported = True + diff --git a/test/Transforms/LoopStrengthReduce/dg.exp b/test/Transforms/LoopStrengthReduce/dg.exp deleted file mode 100644 index f2005891a5..0000000000 --- a/test/Transforms/LoopStrengthReduce/dg.exp +++ /dev/null @@ -1,3 +0,0 @@ -load_lib llvm.exp - -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]] diff --git a/test/Transforms/LoopStrengthReduce/lit.local.cfg b/test/Transforms/LoopStrengthReduce/lit.local.cfg new file mode 100644 index 0000000000..19eebc0ac7 --- /dev/null +++ b/test/Transforms/LoopStrengthReduce/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] -- cgit v1.2.3