From 4afdeeb682e26690803834fd7f4ce691af8d87da Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Thu, 16 Feb 2012 06:28:33 +0000 Subject: [PATCH] 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 --- test/Analysis/BasicAA/dg.exp | 3 - test/Analysis/BasicAA/lit.local.cfg | 1 + test/Analysis/BlockFrequencyInfo/dg.exp | 3 - .../Analysis/BlockFrequencyInfo/lit.local.cfg | 1 + test/Analysis/BranchProbabilityInfo/dg.exp | 3 - .../BranchProbabilityInfo/lit.local.cfg | 1 + test/Analysis/CallGraph/dg.exp | 3 - test/Analysis/CallGraph/lit.local.cfg | 1 + test/Analysis/Dominators/dg.exp | 3 - test/Analysis/Dominators/lit.local.cfg | 1 + test/Analysis/GlobalsModRef/dg.exp | 3 - test/Analysis/GlobalsModRef/lit.local.cfg | 1 + test/Analysis/LoopDependenceAnalysis/dg.exp | 3 - .../LoopDependenceAnalysis/lit.local.cfg | 1 + test/Analysis/LoopInfo/dg.exp | 3 - test/Analysis/LoopInfo/lit.local.cfg | 1 + test/Analysis/PostDominators/dg.exp | 3 - test/Analysis/PostDominators/lit.local.cfg | 1 + test/Analysis/Profiling/dg.exp | 4 - test/Analysis/Profiling/lit.local.cfg | 1 + test/Analysis/RegionInfo/dg.exp | 3 - test/Analysis/RegionInfo/lit.local.cfg | 1 + test/Analysis/ScalarEvolution/dg.exp | 3 - test/Analysis/ScalarEvolution/lit.local.cfg | 1 + test/Analysis/TypeBasedAliasAnalysis/dg.exp | 3 - .../TypeBasedAliasAnalysis/lit.local.cfg | 1 + test/Archive/dg.exp | 3 - test/Archive/lit.local.cfg | 1 + test/Assembler/dg.exp | 3 - test/Assembler/lit.local.cfg | 1 + test/Bindings/Ocaml/dg.exp | 5 - test/Bindings/Ocaml/lit.local.cfg | 13 + test/Bitcode/dg.exp | 3 - test/Bitcode/lit.local.cfg | 1 + test/BugPoint/dg.exp | 3 - test/BugPoint/lit.local.cfg | 1 + test/CodeGen/ARM/dg.exp | 5 - test/CodeGen/ARM/lit.local.cfg | 13 + test/CodeGen/CBackend/X86/dg.exp | 5 - test/CodeGen/CBackend/X86/lit.local.cfg | 13 + test/CodeGen/CBackend/dg.exp | 5 - test/CodeGen/CBackend/lit.local.cfg | 13 + test/CodeGen/CPP/dg.exp | 5 - test/CodeGen/CPP/lit.local.cfg | 13 + test/CodeGen/CellSPU/dg.exp | 5 - test/CodeGen/CellSPU/lit.local.cfg | 13 + test/CodeGen/Generic/dg.exp | 3 - test/CodeGen/Generic/lit.local.cfg | 1 + test/CodeGen/Hexagon/dg.exp | 5 - test/CodeGen/Hexagon/lit.local.cfg | 13 + test/CodeGen/MBlaze/dg.exp | 5 - test/CodeGen/MBlaze/lit.local.cfg | 13 + test/CodeGen/MSP430/dg.exp | 5 - test/CodeGen/MSP430/lit.local.cfg | 13 + test/CodeGen/Mips/dg.exp | 5 - test/CodeGen/Mips/lit.local.cfg | 13 + test/CodeGen/PTX/dg.exp | 5 - test/CodeGen/PTX/lit.local.cfg | 13 + test/CodeGen/PowerPC/dg.exp | 5 - test/CodeGen/PowerPC/lit.local.cfg | 13 + test/CodeGen/SPARC/dg.exp | 5 - test/CodeGen/SPARC/lit.local.cfg | 13 + test/CodeGen/Thumb/dg.exp | 5 - test/CodeGen/Thumb/lit.local.cfg | 13 + test/CodeGen/Thumb2/dg.exp | 5 - test/CodeGen/Thumb2/lit.local.cfg | 13 + test/CodeGen/X86/GC/dg.exp | 5 - test/CodeGen/X86/GC/lit.local.cfg | 13 + test/CodeGen/X86/dg.exp | 5 - test/CodeGen/X86/lit.local.cfg | 13 + test/CodeGen/XCore/dg.exp | 5 - test/CodeGen/XCore/lit.local.cfg | 13 + test/DebugInfo/X86/dg.exp | 5 - test/DebugInfo/X86/lit.local.cfg | 12 + test/DebugInfo/dg.exp | 3 - test/DebugInfo/lit.local.cfg | 1 + test/ExecutionEngine/dg.exp | 3 - test/ExecutionEngine/lit.local.cfg | 1 + test/Feature/dg.exp | 3 - test/Feature/lit.local.cfg | 1 + test/Instrumentation/AddressSanitizer/dg.exp | 3 - .../AddressSanitizer/lit.local.cfg | 1 + test/Instrumentation/ThreadSanitizer/dg.exp | 3 - test/Integer/dg.exp | 3 - test/Integer/lit.local.cfg | 1 + test/Linker/dg.exp | 3 - test/Linker/lit.local.cfg | 1 + test/MC/ARM/dg.exp | 5 - test/MC/ARM/lit.local.cfg | 13 + test/MC/AsmParser/dg.exp | 5 - test/MC/AsmParser/lit.local.cfg | 13 + test/MC/COFF/dg.exp | 5 - test/MC/COFF/lit.local.cfg | 13 + test/MC/Disassembler/ARM/dg.exp | 6 - test/MC/Disassembler/ARM/lit.local.cfg | 13 + test/MC/Disassembler/MBlaze/dg.exp | 6 - test/MC/Disassembler/MBlaze/lit.local.cfg | 13 + test/MC/Disassembler/X86/dg.exp | 6 - test/MC/Disassembler/X86/lit.local.cfg | 13 + test/MC/ELF/dg.exp | 5 - test/MC/ELF/lit.local.cfg | 13 + test/MC/MBlaze/dg.exp | 5 - test/MC/MBlaze/lit.local.cfg | 13 + test/MC/MachO/ARM/dg.exp | 5 - test/MC/MachO/ARM/lit.local.cfg | 13 + test/MC/MachO/dg.exp | 6 - test/MC/MachO/lit.local.cfg | 13 + test/MC/Mips/dg.exp | 5 - test/MC/Mips/lit.local.cfg | 13 + test/MC/X86/dg.exp | 5 - test/MC/X86/lit.local.cfg | 1 + test/Makefile | 2 + test/Object/X86/dg.exp | 5 - test/Object/X86/lit.local.cfg | 13 + test/Object/dg.exp | 3 - test/Object/lit.local.cfg | 1 + test/Other/X86/dg.exp | 5 - test/Other/X86/lit.local.cfg | 13 + test/Other/dg.exp | 3 - test/Other/lit.local.cfg | 1 + test/TableGen/dg.exp | 3 - test/TableGen/lit.local.cfg | 1 + test/Transforms/ADCE/dg.exp | 3 - test/Transforms/ADCE/lit.local.cfg | 1 + test/Transforms/ArgumentPromotion/dg.exp | 3 - .../ArgumentPromotion/lit.local.cfg | 1 + test/Transforms/BBVectorize/dg.exp | 3 - test/Transforms/BBVectorize/lit.local.cfg | 1 + test/Transforms/BlockPlacement/dg.exp | 3 - test/Transforms/BlockPlacement/lit.local.cfg | 1 + test/Transforms/CodeExtractor/dg.exp | 3 - test/Transforms/CodeExtractor/lit.local.cfg | 1 + test/Transforms/CodeGenPrepare/dg.exp | 3 - test/Transforms/CodeGenPrepare/lit.local.cfg | 1 + test/Transforms/ConstProp/dg.exp | 3 - test/Transforms/ConstProp/lit.local.cfg | 1 + test/Transforms/ConstantMerge/dg.exp | 3 - test/Transforms/ConstantMerge/lit.local.cfg | 1 + .../CorrelatedValuePropagation/dg.exp | 3 - .../CorrelatedValuePropagation/lit.local.cfg | 1 + test/Transforms/DeadArgElim/dg.exp | 3 - test/Transforms/DeadArgElim/lit.local.cfg | 1 + test/Transforms/DeadStoreElimination/dg.exp | 3 - .../DeadStoreElimination/lit.local.cfg | 1 + test/Transforms/EarlyCSE/dg.exp | 3 - test/Transforms/EarlyCSE/lit.local.cfg | 1 + test/Transforms/FunctionAttrs/dg.exp | 3 - test/Transforms/FunctionAttrs/lit.local.cfg | 1 + test/Transforms/GVN/dg.exp | 3 - test/Transforms/GVN/lit.local.cfg | 1 + test/Transforms/GlobalDCE/dg.exp | 3 - test/Transforms/GlobalDCE/lit.local.cfg | 1 + test/Transforms/GlobalOpt/dg.exp | 3 - test/Transforms/GlobalOpt/lit.local.cfg | 1 + test/Transforms/IPConstantProp/dg.exp | 3 - test/Transforms/IPConstantProp/lit.local.cfg | 1 + test/Transforms/IndVarSimplify/dg.exp | 3 - test/Transforms/IndVarSimplify/lit.local.cfg | 1 + test/Transforms/Inline/dg.exp | 3 - test/Transforms/Inline/lit.local.cfg | 1 + test/Transforms/InstCombine/dg.exp | 3 - test/Transforms/InstCombine/lit.local.cfg | 1 + test/Transforms/InstSimplify/dg.exp | 3 - test/Transforms/InstSimplify/lit.local.cfg | 1 + test/Transforms/Internalize/dg.exp | 3 - test/Transforms/Internalize/lit.local.cfg | 1 + test/Transforms/JumpThreading/dg.exp | 3 - test/Transforms/JumpThreading/lit.local.cfg | 1 + test/Transforms/LCSSA/dg.exp | 3 - test/Transforms/LCSSA/lit.local.cfg | 1 + test/Transforms/LICM/dg.exp | 3 - test/Transforms/LICM/lit.local.cfg | 1 + test/Transforms/LoopDeletion/dg.exp | 3 - test/Transforms/LoopDeletion/lit.local.cfg | 1 + test/Transforms/LoopIdiom/dg.exp | 3 - test/Transforms/LoopIdiom/lit.local.cfg | 1 + test/Transforms/LoopRotate/dg.exp | 3 - test/Transforms/LoopRotate/lit.local.cfg | 1 + test/Transforms/LoopSimplify/dg.exp | 3 - test/Transforms/LoopSimplify/lit.local.cfg | 1 + test/Transforms/LoopStrengthReduce/ARM/dg.exp | 5 - .../LoopStrengthReduce/ARM/lit.local.cfg | 13 + test/Transforms/LoopStrengthReduce/X86/dg.exp | 5 - .../LoopStrengthReduce/X86/lit.local.cfg | 13 + test/Transforms/LoopStrengthReduce/dg.exp | 3 - .../LoopStrengthReduce/lit.local.cfg | 1 + test/Transforms/LoopUnroll/dg.exp | 3 - test/Transforms/LoopUnroll/lit.local.cfg | 1 + test/Transforms/LoopUnswitch/dg.exp | 3 - test/Transforms/LoopUnswitch/lit.local.cfg | 1 + test/Transforms/LowerAtomic/dg.exp | 3 - test/Transforms/LowerAtomic/lit.local.cfg | 1 + test/Transforms/LowerExpectIntrinsic/dg.exp | 3 - .../LowerExpectIntrinsic/lit.local.cfg | 1 + test/Transforms/LowerInvoke/dg.exp | 3 - test/Transforms/LowerInvoke/lit.local.cfg | 1 + test/Transforms/LowerSwitch/dg.exp | 3 - test/Transforms/LowerSwitch/lit.local.cfg | 1 + test/Transforms/Mem2Reg/dg.exp | 3 - test/Transforms/Mem2Reg/lit.local.cfg | 1 + test/Transforms/MemCpyOpt/dg.exp | 3 - test/Transforms/MemCpyOpt/lit.local.cfg | 1 + test/Transforms/MergeFunc/dg.exp | 3 - test/Transforms/MergeFunc/lit.local.cfg | 1 + test/Transforms/ObjCARC/dg.exp | 3 - test/Transforms/ObjCARC/lit.local.cfg | 1 + test/Transforms/PhaseOrdering/dg.exp | 3 - test/Transforms/PhaseOrdering/lit.local.cfg | 1 + test/Transforms/PruneEH/dg.exp | 3 - test/Transforms/PruneEH/lit.local.cfg | 1 + test/Transforms/Reassociate/dg.exp | 3 - test/Transforms/Reassociate/lit.local.cfg | 1 + test/Transforms/SCCP/dg.exp | 3 - test/Transforms/SCCP/lit.local.cfg | 1 + test/Transforms/ScalarRepl/dg.exp | 3 - test/Transforms/ScalarRepl/lit.local.cfg | 1 + test/Transforms/SimplifyCFG/dg.exp | 3 - test/Transforms/SimplifyCFG/lit.local.cfg | 1 + test/Transforms/SimplifyLibCalls/dg.exp | 3 - .../Transforms/SimplifyLibCalls/lit.local.cfg | 1 + test/Transforms/Sink/dg.exp | 3 - test/Transforms/Sink/lit.local.cfg | 1 + test/Transforms/StripSymbols/dg.exp | 3 - test/Transforms/StripSymbols/lit.local.cfg | 1 + test/Transforms/TailCallElim/dg.exp | 3 - test/Transforms/TailCallElim/lit.local.cfg | 1 + test/Transforms/TailDup/X86/dg.exp | 5 - test/Transforms/TailDup/X86/lit.local.cfg | 13 + test/Transforms/TailDup/dg.exp | 3 - test/Transforms/TailDup/lit.local.cfg | 12 + test/Verifier/dg.exp | 3 - test/Verifier/lit.local.cfg | 1 + test/lib/llvm.exp | 269 ------------------ test/lit.cfg | 1 - test/lit.site.cfg.in | 2 + 235 files changed, 549 insertions(+), 695 deletions(-) delete mode 100644 test/Analysis/BasicAA/dg.exp create mode 100644 test/Analysis/BasicAA/lit.local.cfg delete mode 100644 test/Analysis/BlockFrequencyInfo/dg.exp create mode 100644 test/Analysis/BlockFrequencyInfo/lit.local.cfg delete mode 100644 test/Analysis/BranchProbabilityInfo/dg.exp create mode 100644 test/Analysis/BranchProbabilityInfo/lit.local.cfg delete mode 100644 test/Analysis/CallGraph/dg.exp create mode 100644 test/Analysis/CallGraph/lit.local.cfg delete mode 100644 test/Analysis/Dominators/dg.exp create mode 100644 test/Analysis/Dominators/lit.local.cfg delete mode 100644 test/Analysis/GlobalsModRef/dg.exp create mode 100644 test/Analysis/GlobalsModRef/lit.local.cfg delete mode 100644 test/Analysis/LoopDependenceAnalysis/dg.exp create mode 100644 test/Analysis/LoopDependenceAnalysis/lit.local.cfg delete mode 100644 test/Analysis/LoopInfo/dg.exp create mode 100644 test/Analysis/LoopInfo/lit.local.cfg delete mode 100644 test/Analysis/PostDominators/dg.exp create mode 100644 test/Analysis/PostDominators/lit.local.cfg delete mode 100644 test/Analysis/Profiling/dg.exp create mode 100644 test/Analysis/Profiling/lit.local.cfg delete mode 100644 test/Analysis/RegionInfo/dg.exp create mode 100644 test/Analysis/RegionInfo/lit.local.cfg delete mode 100644 test/Analysis/ScalarEvolution/dg.exp create mode 100644 test/Analysis/ScalarEvolution/lit.local.cfg delete mode 100644 test/Analysis/TypeBasedAliasAnalysis/dg.exp create mode 100644 test/Analysis/TypeBasedAliasAnalysis/lit.local.cfg delete mode 100644 test/Archive/dg.exp create mode 100644 test/Archive/lit.local.cfg delete mode 100644 test/Assembler/dg.exp create mode 100644 test/Assembler/lit.local.cfg delete mode 100644 test/Bindings/Ocaml/dg.exp create mode 100644 test/Bindings/Ocaml/lit.local.cfg delete mode 100644 test/Bitcode/dg.exp create mode 100644 test/Bitcode/lit.local.cfg delete mode 100644 test/BugPoint/dg.exp create mode 100644 test/BugPoint/lit.local.cfg delete mode 100644 test/CodeGen/ARM/dg.exp create mode 100644 test/CodeGen/ARM/lit.local.cfg delete mode 100644 test/CodeGen/CBackend/X86/dg.exp create mode 100644 test/CodeGen/CBackend/X86/lit.local.cfg delete mode 100644 test/CodeGen/CBackend/dg.exp create mode 100644 test/CodeGen/CBackend/lit.local.cfg delete mode 100644 test/CodeGen/CPP/dg.exp create mode 100644 test/CodeGen/CPP/lit.local.cfg delete mode 100644 test/CodeGen/CellSPU/dg.exp create mode 100644 test/CodeGen/CellSPU/lit.local.cfg delete mode 100644 test/CodeGen/Generic/dg.exp create mode 100644 test/CodeGen/Generic/lit.local.cfg delete mode 100644 test/CodeGen/Hexagon/dg.exp create mode 100644 test/CodeGen/Hexagon/lit.local.cfg delete mode 100644 test/CodeGen/MBlaze/dg.exp create mode 100644 test/CodeGen/MBlaze/lit.local.cfg delete mode 100644 test/CodeGen/MSP430/dg.exp create mode 100644 test/CodeGen/MSP430/lit.local.cfg delete mode 100644 test/CodeGen/Mips/dg.exp create mode 100644 test/CodeGen/Mips/lit.local.cfg delete mode 100644 test/CodeGen/PTX/dg.exp create mode 100644 test/CodeGen/PTX/lit.local.cfg delete mode 100644 test/CodeGen/PowerPC/dg.exp create mode 100644 test/CodeGen/PowerPC/lit.local.cfg delete mode 100644 test/CodeGen/SPARC/dg.exp create mode 100644 test/CodeGen/SPARC/lit.local.cfg delete mode 100644 test/CodeGen/Thumb/dg.exp create mode 100644 test/CodeGen/Thumb/lit.local.cfg delete mode 100644 test/CodeGen/Thumb2/dg.exp create mode 100644 test/CodeGen/Thumb2/lit.local.cfg delete mode 100644 test/CodeGen/X86/GC/dg.exp create mode 100644 test/CodeGen/X86/GC/lit.local.cfg delete mode 100644 test/CodeGen/X86/dg.exp create mode 100644 test/CodeGen/X86/lit.local.cfg delete mode 100644 test/CodeGen/XCore/dg.exp create mode 100644 test/CodeGen/XCore/lit.local.cfg delete mode 100644 test/DebugInfo/X86/dg.exp create mode 100644 test/DebugInfo/X86/lit.local.cfg delete mode 100644 test/DebugInfo/dg.exp create mode 100644 test/DebugInfo/lit.local.cfg delete mode 100644 test/ExecutionEngine/dg.exp create mode 100644 test/ExecutionEngine/lit.local.cfg delete mode 100644 test/Feature/dg.exp create mode 100644 test/Feature/lit.local.cfg delete mode 100644 test/Instrumentation/AddressSanitizer/dg.exp create mode 100644 test/Instrumentation/AddressSanitizer/lit.local.cfg delete mode 100644 test/Instrumentation/ThreadSanitizer/dg.exp delete mode 100644 test/Integer/dg.exp create mode 100644 test/Integer/lit.local.cfg delete mode 100644 test/Linker/dg.exp create mode 100644 test/Linker/lit.local.cfg delete mode 100644 test/MC/ARM/dg.exp create mode 100644 test/MC/ARM/lit.local.cfg delete mode 100644 test/MC/AsmParser/dg.exp create mode 100644 test/MC/AsmParser/lit.local.cfg delete mode 100644 test/MC/COFF/dg.exp create mode 100644 test/MC/COFF/lit.local.cfg delete mode 100644 test/MC/Disassembler/ARM/dg.exp create mode 100644 test/MC/Disassembler/ARM/lit.local.cfg delete mode 100644 test/MC/Disassembler/MBlaze/dg.exp create mode 100644 test/MC/Disassembler/MBlaze/lit.local.cfg delete mode 100644 test/MC/Disassembler/X86/dg.exp create mode 100644 test/MC/Disassembler/X86/lit.local.cfg delete mode 100644 test/MC/ELF/dg.exp create mode 100644 test/MC/ELF/lit.local.cfg delete mode 100644 test/MC/MBlaze/dg.exp create mode 100644 test/MC/MBlaze/lit.local.cfg delete mode 100644 test/MC/MachO/ARM/dg.exp create mode 100644 test/MC/MachO/ARM/lit.local.cfg delete mode 100644 test/MC/MachO/dg.exp create mode 100644 test/MC/MachO/lit.local.cfg delete mode 100644 test/MC/Mips/dg.exp create mode 100644 test/MC/Mips/lit.local.cfg delete mode 100644 test/MC/X86/dg.exp create mode 100644 test/MC/X86/lit.local.cfg delete mode 100644 test/Object/X86/dg.exp create mode 100644 test/Object/X86/lit.local.cfg delete mode 100644 test/Object/dg.exp create mode 100644 test/Object/lit.local.cfg delete mode 100644 test/Other/X86/dg.exp create mode 100644 test/Other/X86/lit.local.cfg delete mode 100644 test/Other/dg.exp create mode 100644 test/Other/lit.local.cfg delete mode 100644 test/TableGen/dg.exp create mode 100644 test/TableGen/lit.local.cfg delete mode 100644 test/Transforms/ADCE/dg.exp create mode 100644 test/Transforms/ADCE/lit.local.cfg delete mode 100644 test/Transforms/ArgumentPromotion/dg.exp create mode 100644 test/Transforms/ArgumentPromotion/lit.local.cfg delete mode 100644 test/Transforms/BBVectorize/dg.exp create mode 100644 test/Transforms/BBVectorize/lit.local.cfg delete mode 100644 test/Transforms/BlockPlacement/dg.exp create mode 100644 test/Transforms/BlockPlacement/lit.local.cfg delete mode 100644 test/Transforms/CodeExtractor/dg.exp create mode 100644 test/Transforms/CodeExtractor/lit.local.cfg delete mode 100644 test/Transforms/CodeGenPrepare/dg.exp create mode 100644 test/Transforms/CodeGenPrepare/lit.local.cfg delete mode 100644 test/Transforms/ConstProp/dg.exp create mode 100644 test/Transforms/ConstProp/lit.local.cfg delete mode 100644 test/Transforms/ConstantMerge/dg.exp create mode 100644 test/Transforms/ConstantMerge/lit.local.cfg delete mode 100644 test/Transforms/CorrelatedValuePropagation/dg.exp create mode 100644 test/Transforms/CorrelatedValuePropagation/lit.local.cfg delete mode 100644 test/Transforms/DeadArgElim/dg.exp create mode 100644 test/Transforms/DeadArgElim/lit.local.cfg delete mode 100644 test/Transforms/DeadStoreElimination/dg.exp create mode 100644 test/Transforms/DeadStoreElimination/lit.local.cfg delete mode 100644 test/Transforms/EarlyCSE/dg.exp create mode 100644 test/Transforms/EarlyCSE/lit.local.cfg delete mode 100644 test/Transforms/FunctionAttrs/dg.exp create mode 100644 test/Transforms/FunctionAttrs/lit.local.cfg delete mode 100644 test/Transforms/GVN/dg.exp create mode 100644 test/Transforms/GVN/lit.local.cfg delete mode 100644 test/Transforms/GlobalDCE/dg.exp create mode 100644 test/Transforms/GlobalDCE/lit.local.cfg delete mode 100644 test/Transforms/GlobalOpt/dg.exp create mode 100644 test/Transforms/GlobalOpt/lit.local.cfg delete mode 100644 test/Transforms/IPConstantProp/dg.exp create mode 100644 test/Transforms/IPConstantProp/lit.local.cfg delete mode 100644 test/Transforms/IndVarSimplify/dg.exp create mode 100644 test/Transforms/IndVarSimplify/lit.local.cfg delete mode 100644 test/Transforms/Inline/dg.exp create mode 100644 test/Transforms/Inline/lit.local.cfg delete mode 100644 test/Transforms/InstCombine/dg.exp create mode 100644 test/Transforms/InstCombine/lit.local.cfg delete mode 100644 test/Transforms/InstSimplify/dg.exp create mode 100644 test/Transforms/InstSimplify/lit.local.cfg delete mode 100644 test/Transforms/Internalize/dg.exp create mode 100644 test/Transforms/Internalize/lit.local.cfg delete mode 100644 test/Transforms/JumpThreading/dg.exp create mode 100644 test/Transforms/JumpThreading/lit.local.cfg delete mode 100644 test/Transforms/LCSSA/dg.exp create mode 100644 test/Transforms/LCSSA/lit.local.cfg delete mode 100644 test/Transforms/LICM/dg.exp create mode 100644 test/Transforms/LICM/lit.local.cfg delete mode 100644 test/Transforms/LoopDeletion/dg.exp create mode 100644 test/Transforms/LoopDeletion/lit.local.cfg delete mode 100644 test/Transforms/LoopIdiom/dg.exp create mode 100644 test/Transforms/LoopIdiom/lit.local.cfg delete mode 100644 test/Transforms/LoopRotate/dg.exp create mode 100644 test/Transforms/LoopRotate/lit.local.cfg delete mode 100644 test/Transforms/LoopSimplify/dg.exp create mode 100644 test/Transforms/LoopSimplify/lit.local.cfg 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 delete mode 100644 test/Transforms/LoopUnroll/dg.exp create mode 100644 test/Transforms/LoopUnroll/lit.local.cfg delete mode 100644 test/Transforms/LoopUnswitch/dg.exp create mode 100644 test/Transforms/LoopUnswitch/lit.local.cfg delete mode 100644 test/Transforms/LowerAtomic/dg.exp create mode 100644 test/Transforms/LowerAtomic/lit.local.cfg delete mode 100644 test/Transforms/LowerExpectIntrinsic/dg.exp create mode 100644 test/Transforms/LowerExpectIntrinsic/lit.local.cfg delete mode 100644 test/Transforms/LowerInvoke/dg.exp create mode 100644 test/Transforms/LowerInvoke/lit.local.cfg delete mode 100644 test/Transforms/LowerSwitch/dg.exp create mode 100644 test/Transforms/LowerSwitch/lit.local.cfg delete mode 100644 test/Transforms/Mem2Reg/dg.exp create mode 100644 test/Transforms/Mem2Reg/lit.local.cfg delete mode 100644 test/Transforms/MemCpyOpt/dg.exp create mode 100644 test/Transforms/MemCpyOpt/lit.local.cfg delete mode 100644 test/Transforms/MergeFunc/dg.exp create mode 100644 test/Transforms/MergeFunc/lit.local.cfg delete mode 100644 test/Transforms/ObjCARC/dg.exp create mode 100644 test/Transforms/ObjCARC/lit.local.cfg delete mode 100644 test/Transforms/PhaseOrdering/dg.exp create mode 100644 test/Transforms/PhaseOrdering/lit.local.cfg delete mode 100644 test/Transforms/PruneEH/dg.exp create mode 100644 test/Transforms/PruneEH/lit.local.cfg delete mode 100644 test/Transforms/Reassociate/dg.exp create mode 100644 test/Transforms/Reassociate/lit.local.cfg delete mode 100644 test/Transforms/SCCP/dg.exp create mode 100644 test/Transforms/SCCP/lit.local.cfg delete mode 100644 test/Transforms/ScalarRepl/dg.exp create mode 100644 test/Transforms/ScalarRepl/lit.local.cfg delete mode 100644 test/Transforms/SimplifyCFG/dg.exp create mode 100644 test/Transforms/SimplifyCFG/lit.local.cfg delete mode 100644 test/Transforms/SimplifyLibCalls/dg.exp create mode 100644 test/Transforms/SimplifyLibCalls/lit.local.cfg delete mode 100644 test/Transforms/Sink/dg.exp create mode 100644 test/Transforms/Sink/lit.local.cfg delete mode 100644 test/Transforms/StripSymbols/dg.exp create mode 100644 test/Transforms/StripSymbols/lit.local.cfg delete mode 100644 test/Transforms/TailCallElim/dg.exp create mode 100644 test/Transforms/TailCallElim/lit.local.cfg delete mode 100644 test/Transforms/TailDup/X86/dg.exp create mode 100644 test/Transforms/TailDup/X86/lit.local.cfg delete mode 100644 test/Transforms/TailDup/dg.exp create mode 100644 test/Transforms/TailDup/lit.local.cfg delete mode 100644 test/Verifier/dg.exp create mode 100644 test/Verifier/lit.local.cfg diff --git a/test/Analysis/BasicAA/dg.exp b/test/Analysis/BasicAA/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Analysis/BasicAA/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/Analysis/BasicAA/lit.local.cfg b/test/Analysis/BasicAA/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Analysis/BasicAA/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Analysis/BlockFrequencyInfo/dg.exp b/test/Analysis/BlockFrequencyInfo/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Analysis/BlockFrequencyInfo/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/Analysis/BlockFrequencyInfo/lit.local.cfg b/test/Analysis/BlockFrequencyInfo/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Analysis/BlockFrequencyInfo/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Analysis/BranchProbabilityInfo/dg.exp b/test/Analysis/BranchProbabilityInfo/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Analysis/BranchProbabilityInfo/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/Analysis/BranchProbabilityInfo/lit.local.cfg b/test/Analysis/BranchProbabilityInfo/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Analysis/BranchProbabilityInfo/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Analysis/CallGraph/dg.exp b/test/Analysis/CallGraph/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Analysis/CallGraph/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/Analysis/CallGraph/lit.local.cfg b/test/Analysis/CallGraph/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Analysis/CallGraph/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Analysis/Dominators/dg.exp b/test/Analysis/Dominators/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Analysis/Dominators/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/Analysis/Dominators/lit.local.cfg b/test/Analysis/Dominators/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Analysis/Dominators/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Analysis/GlobalsModRef/dg.exp b/test/Analysis/GlobalsModRef/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Analysis/GlobalsModRef/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/Analysis/GlobalsModRef/lit.local.cfg b/test/Analysis/GlobalsModRef/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Analysis/GlobalsModRef/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Analysis/LoopDependenceAnalysis/dg.exp b/test/Analysis/LoopDependenceAnalysis/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Analysis/LoopDependenceAnalysis/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/Analysis/LoopDependenceAnalysis/lit.local.cfg b/test/Analysis/LoopDependenceAnalysis/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Analysis/LoopDependenceAnalysis/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Analysis/LoopInfo/dg.exp b/test/Analysis/LoopInfo/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Analysis/LoopInfo/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/Analysis/LoopInfo/lit.local.cfg b/test/Analysis/LoopInfo/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Analysis/LoopInfo/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Analysis/PostDominators/dg.exp b/test/Analysis/PostDominators/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Analysis/PostDominators/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/Analysis/PostDominators/lit.local.cfg b/test/Analysis/PostDominators/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Analysis/PostDominators/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Analysis/Profiling/dg.exp b/test/Analysis/Profiling/dg.exp deleted file mode 100644 index 1eb4755c410..00000000000 --- a/test/Analysis/Profiling/dg.exp +++ /dev/null @@ -1,4 +0,0 @@ -load_lib llvm.exp - -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]] - diff --git a/test/Analysis/Profiling/lit.local.cfg b/test/Analysis/Profiling/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Analysis/Profiling/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Analysis/RegionInfo/dg.exp b/test/Analysis/RegionInfo/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Analysis/RegionInfo/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/Analysis/RegionInfo/lit.local.cfg b/test/Analysis/RegionInfo/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Analysis/RegionInfo/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Analysis/ScalarEvolution/dg.exp b/test/Analysis/ScalarEvolution/dg.exp deleted file mode 100644 index b65a2503ac6..00000000000 --- a/test/Analysis/ScalarEvolution/dg.exp +++ /dev/null @@ -1,3 +0,0 @@ -load_lib llvm.exp - -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.ll]] diff --git a/test/Analysis/ScalarEvolution/lit.local.cfg b/test/Analysis/ScalarEvolution/lit.local.cfg new file mode 100644 index 00000000000..c6106e4746f --- /dev/null +++ b/test/Analysis/ScalarEvolution/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll'] diff --git a/test/Analysis/TypeBasedAliasAnalysis/dg.exp b/test/Analysis/TypeBasedAliasAnalysis/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Analysis/TypeBasedAliasAnalysis/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/Analysis/TypeBasedAliasAnalysis/lit.local.cfg b/test/Analysis/TypeBasedAliasAnalysis/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Analysis/TypeBasedAliasAnalysis/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Archive/dg.exp b/test/Archive/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Archive/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/Archive/lit.local.cfg b/test/Archive/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Archive/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Assembler/dg.exp b/test/Assembler/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Assembler/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/Assembler/lit.local.cfg b/test/Assembler/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Assembler/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Bindings/Ocaml/dg.exp b/test/Bindings/Ocaml/dg.exp deleted file mode 100644 index fb4bd078e37..00000000000 --- a/test/Bindings/Ocaml/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if [ llvm_supports_binding ocaml ] then { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp,ml}]] -} diff --git a/test/Bindings/Ocaml/lit.local.cfg b/test/Bindings/Ocaml/lit.local.cfg new file mode 100644 index 00000000000..127c3d56305 --- /dev/null +++ b/test/Bindings/Ocaml/lit.local.cfg @@ -0,0 +1,13 @@ +config.suffixes = ['.ll', '.c', '.cpp', '.ml'] + +def getRoot(config): + if not config.parent: + return config + return getRoot(config.parent) + +root = getRoot(config) + +bindings = set([s.strip() for s in root.llvm_bindings.split(',')]) +if not 'ocaml' in bindings: + config.unsupported = True + diff --git a/test/Bitcode/dg.exp b/test/Bitcode/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Bitcode/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/Bitcode/lit.local.cfg b/test/Bitcode/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Bitcode/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/BugPoint/dg.exp b/test/BugPoint/dg.exp deleted file mode 100644 index de42dad163f..00000000000 --- a/test/BugPoint/dg.exp +++ /dev/null @@ -1,3 +0,0 @@ -load_lib llvm.exp - -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.ll]] diff --git a/test/BugPoint/lit.local.cfg b/test/BugPoint/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/BugPoint/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/CodeGen/ARM/dg.exp b/test/CodeGen/ARM/dg.exp deleted file mode 100644 index 3ff359aab39..00000000000 --- a/test/CodeGen/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,c,cpp}]] -} diff --git a/test/CodeGen/ARM/lit.local.cfg b/test/CodeGen/ARM/lit.local.cfg new file mode 100644 index 00000000000..dd6c50d4fe4 --- /dev/null +++ b/test/CodeGen/ARM/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 + diff --git a/test/CodeGen/CBackend/X86/dg.exp b/test/CodeGen/CBackend/X86/dg.exp deleted file mode 100644 index 44e3a5eff4a..00000000000 --- 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 00000000000..037d8c3910d --- /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 9d789409d4a..00000000000 --- 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 00000000000..0dce1702a79 --- /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 + diff --git a/test/CodeGen/CPP/dg.exp b/test/CodeGen/CPP/dg.exp deleted file mode 100644 index 3276dcc3275..00000000000 --- a/test/CodeGen/CPP/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target CppBackend] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]] -} diff --git a/test/CodeGen/CPP/lit.local.cfg b/test/CodeGen/CPP/lit.local.cfg new file mode 100644 index 00000000000..96596d85f6e --- /dev/null +++ b/test/CodeGen/CPP/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 'CppBackend' in targets: + config.unsupported = True + diff --git a/test/CodeGen/CellSPU/dg.exp b/test/CodeGen/CellSPU/dg.exp deleted file mode 100644 index d41647991a0..00000000000 --- a/test/CodeGen/CellSPU/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target CellSPU] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]] -} diff --git a/test/CodeGen/CellSPU/lit.local.cfg b/test/CodeGen/CellSPU/lit.local.cfg new file mode 100644 index 00000000000..6ae0972b66c --- /dev/null +++ b/test/CodeGen/CellSPU/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 'CellSPU' in targets: + config.unsupported = True + diff --git a/test/CodeGen/Generic/dg.exp b/test/CodeGen/Generic/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/CodeGen/Generic/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/CodeGen/Generic/lit.local.cfg b/test/CodeGen/Generic/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/CodeGen/Generic/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/CodeGen/Hexagon/dg.exp b/test/CodeGen/Hexagon/dg.exp deleted file mode 100644 index 89f45e6723c..00000000000 --- a/test/CodeGen/Hexagon/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target Hexagon] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]] -} diff --git a/test/CodeGen/Hexagon/lit.local.cfg b/test/CodeGen/Hexagon/lit.local.cfg new file mode 100644 index 00000000000..ea12f68870e --- /dev/null +++ b/test/CodeGen/Hexagon/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 'Hexagon' in targets: + config.unsupported = True + diff --git a/test/CodeGen/MBlaze/dg.exp b/test/CodeGen/MBlaze/dg.exp deleted file mode 100644 index bfd5e471574..00000000000 --- a/test/CodeGen/MBlaze/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target MBlaze] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]] -} diff --git a/test/CodeGen/MBlaze/lit.local.cfg b/test/CodeGen/MBlaze/lit.local.cfg new file mode 100644 index 00000000000..e43df89e196 --- /dev/null +++ b/test/CodeGen/MBlaze/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 'MBlaze' in targets: + config.unsupported = True + diff --git a/test/CodeGen/MSP430/dg.exp b/test/CodeGen/MSP430/dg.exp deleted file mode 100644 index e4ea13a4064..00000000000 --- a/test/CodeGen/MSP430/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target MSP430] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]] -} diff --git a/test/CodeGen/MSP430/lit.local.cfg b/test/CodeGen/MSP430/lit.local.cfg new file mode 100644 index 00000000000..b9b654deba5 --- /dev/null +++ b/test/CodeGen/MSP430/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 'MSP430' in targets: + config.unsupported = True + diff --git a/test/CodeGen/Mips/dg.exp b/test/CodeGen/Mips/dg.exp deleted file mode 100644 index adb2cac9a6b..00000000000 --- a/test/CodeGen/Mips/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target Mips] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]] -} diff --git a/test/CodeGen/Mips/lit.local.cfg b/test/CodeGen/Mips/lit.local.cfg new file mode 100644 index 00000000000..e1cd73a3786 --- /dev/null +++ b/test/CodeGen/Mips/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 'Mips' in targets: + config.unsupported = True + diff --git a/test/CodeGen/PTX/dg.exp b/test/CodeGen/PTX/dg.exp deleted file mode 100644 index 2c304b57741..00000000000 --- a/test/CodeGen/PTX/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target PTX] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]] -} diff --git a/test/CodeGen/PTX/lit.local.cfg b/test/CodeGen/PTX/lit.local.cfg new file mode 100644 index 00000000000..73990890766 --- /dev/null +++ b/test/CodeGen/PTX/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 'PTX' in targets: + config.unsupported = True + diff --git a/test/CodeGen/PowerPC/dg.exp b/test/CodeGen/PowerPC/dg.exp deleted file mode 100644 index 9e50b558aa3..00000000000 --- a/test/CodeGen/PowerPC/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target PowerPC] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]] -} diff --git a/test/CodeGen/PowerPC/lit.local.cfg b/test/CodeGen/PowerPC/lit.local.cfg new file mode 100644 index 00000000000..5c7f2677f35 --- /dev/null +++ b/test/CodeGen/PowerPC/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 'PowerPC' in targets: + config.unsupported = True + diff --git a/test/CodeGen/SPARC/dg.exp b/test/CodeGen/SPARC/dg.exp deleted file mode 100644 index 6c0a9975fe4..00000000000 --- a/test/CodeGen/SPARC/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target Sparc] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]] -} diff --git a/test/CodeGen/SPARC/lit.local.cfg b/test/CodeGen/SPARC/lit.local.cfg new file mode 100644 index 00000000000..ba81a16057c --- /dev/null +++ b/test/CodeGen/SPARC/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 'Sparc' in targets: + config.unsupported = True + diff --git a/test/CodeGen/Thumb/dg.exp b/test/CodeGen/Thumb/dg.exp deleted file mode 100644 index 3ff359aab39..00000000000 --- a/test/CodeGen/Thumb/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/test/CodeGen/Thumb/lit.local.cfg b/test/CodeGen/Thumb/lit.local.cfg new file mode 100644 index 00000000000..dd6c50d4fe4 --- /dev/null +++ b/test/CodeGen/Thumb/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 + diff --git a/test/CodeGen/Thumb2/dg.exp b/test/CodeGen/Thumb2/dg.exp deleted file mode 100644 index 3ff359aab39..00000000000 --- a/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/test/CodeGen/Thumb2/lit.local.cfg b/test/CodeGen/Thumb2/lit.local.cfg new file mode 100644 index 00000000000..dd6c50d4fe4 --- /dev/null +++ b/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 + diff --git a/test/CodeGen/X86/GC/dg.exp b/test/CodeGen/X86/GC/dg.exp deleted file mode 100644 index 629a1477361..00000000000 --- a/test/CodeGen/X86/GC/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target X86] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]] -} diff --git a/test/CodeGen/X86/GC/lit.local.cfg b/test/CodeGen/X86/GC/lit.local.cfg new file mode 100644 index 00000000000..b05ed3c77c1 --- /dev/null +++ b/test/CodeGen/X86/GC/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 'X86' in targets: + config.unsupported = True + diff --git a/test/CodeGen/X86/dg.exp b/test/CodeGen/X86/dg.exp deleted file mode 100644 index 629a1477361..00000000000 --- a/test/CodeGen/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,c,cpp}]] -} diff --git a/test/CodeGen/X86/lit.local.cfg b/test/CodeGen/X86/lit.local.cfg new file mode 100644 index 00000000000..b05ed3c77c1 --- /dev/null +++ b/test/CodeGen/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 'X86' in targets: + config.unsupported = True + diff --git a/test/CodeGen/XCore/dg.exp b/test/CodeGen/XCore/dg.exp deleted file mode 100644 index 7110eabb3a5..00000000000 --- a/test/CodeGen/XCore/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target XCore] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]] -} diff --git a/test/CodeGen/XCore/lit.local.cfg b/test/CodeGen/XCore/lit.local.cfg new file mode 100644 index 00000000000..c697912418e --- /dev/null +++ b/test/CodeGen/XCore/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 'XCore' in targets: + config.unsupported = True + diff --git a/test/DebugInfo/X86/dg.exp b/test/DebugInfo/X86/dg.exp deleted file mode 100644 index 7b7bd4e7380..00000000000 --- a/test/DebugInfo/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/DebugInfo/X86/lit.local.cfg b/test/DebugInfo/X86/lit.local.cfg new file mode 100644 index 00000000000..2092c29db37 --- /dev/null +++ b/test/DebugInfo/X86/lit.local.cfg @@ -0,0 +1,12 @@ +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/DebugInfo/dg.exp b/test/DebugInfo/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/DebugInfo/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/DebugInfo/lit.local.cfg b/test/DebugInfo/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/DebugInfo/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/ExecutionEngine/dg.exp b/test/ExecutionEngine/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/ExecutionEngine/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/ExecutionEngine/lit.local.cfg b/test/ExecutionEngine/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/ExecutionEngine/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Feature/dg.exp b/test/Feature/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Feature/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/Feature/lit.local.cfg b/test/Feature/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Feature/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Instrumentation/AddressSanitizer/dg.exp b/test/Instrumentation/AddressSanitizer/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Instrumentation/AddressSanitizer/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/Instrumentation/AddressSanitizer/lit.local.cfg b/test/Instrumentation/AddressSanitizer/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Instrumentation/AddressSanitizer/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Instrumentation/ThreadSanitizer/dg.exp b/test/Instrumentation/ThreadSanitizer/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Instrumentation/ThreadSanitizer/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/Integer/dg.exp b/test/Integer/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Integer/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/Integer/lit.local.cfg b/test/Integer/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Integer/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Linker/dg.exp b/test/Linker/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Linker/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/Linker/lit.local.cfg b/test/Linker/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Linker/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/MC/ARM/dg.exp b/test/MC/ARM/dg.exp deleted file mode 100644 index 055fa2507d3..00000000000 --- a/test/MC/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,c,cpp,s}]] -} diff --git a/test/MC/ARM/lit.local.cfg b/test/MC/ARM/lit.local.cfg new file mode 100644 index 00000000000..92d3ff35930 --- /dev/null +++ b/test/MC/ARM/lit.local.cfg @@ -0,0 +1,13 @@ +config.suffixes = ['.ll', '.c', '.cpp', '.s'] + +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/MC/AsmParser/dg.exp b/test/MC/AsmParser/dg.exp deleted file mode 100644 index a6d81da5b71..00000000000 --- a/test/MC/AsmParser/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target X86] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{s}]] -} diff --git a/test/MC/AsmParser/lit.local.cfg b/test/MC/AsmParser/lit.local.cfg new file mode 100644 index 00000000000..1f53769b7b9 --- /dev/null +++ b/test/MC/AsmParser/lit.local.cfg @@ -0,0 +1,13 @@ +config.suffixes = ['.s'] + +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/MC/COFF/dg.exp b/test/MC/COFF/dg.exp deleted file mode 100644 index d46d700975e..00000000000 --- a/test/MC/COFF/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target X86] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,s}]] -} diff --git a/test/MC/COFF/lit.local.cfg b/test/MC/COFF/lit.local.cfg new file mode 100644 index 00000000000..ec8d4d33d26 --- /dev/null +++ b/test/MC/COFF/lit.local.cfg @@ -0,0 +1,13 @@ +config.suffixes = ['.s', '.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/MC/Disassembler/ARM/dg.exp b/test/MC/Disassembler/ARM/dg.exp deleted file mode 100644 index fc2f17a6fba..00000000000 --- a/test/MC/Disassembler/ARM/dg.exp +++ /dev/null @@ -1,6 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target ARM] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{txt}]] -} - diff --git a/test/MC/Disassembler/ARM/lit.local.cfg b/test/MC/Disassembler/ARM/lit.local.cfg new file mode 100644 index 00000000000..c5dd3fb51ac --- /dev/null +++ b/test/MC/Disassembler/ARM/lit.local.cfg @@ -0,0 +1,13 @@ +config.suffixes = ['.txt'] + +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/MC/Disassembler/MBlaze/dg.exp b/test/MC/Disassembler/MBlaze/dg.exp deleted file mode 100644 index 0be99a34235..00000000000 --- a/test/MC/Disassembler/MBlaze/dg.exp +++ /dev/null @@ -1,6 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target MBlaze] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{txt}]] -} - diff --git a/test/MC/Disassembler/MBlaze/lit.local.cfg b/test/MC/Disassembler/MBlaze/lit.local.cfg new file mode 100644 index 00000000000..766b9801132 --- /dev/null +++ b/test/MC/Disassembler/MBlaze/lit.local.cfg @@ -0,0 +1,13 @@ +config.suffixes = ['.txt'] + +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 'MBlaze' in targets: + config.unsupported = True + diff --git a/test/MC/Disassembler/X86/dg.exp b/test/MC/Disassembler/X86/dg.exp deleted file mode 100644 index a4d0e7c718c..00000000000 --- a/test/MC/Disassembler/X86/dg.exp +++ /dev/null @@ -1,6 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target X86] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{txt}]] -} - diff --git a/test/MC/Disassembler/X86/lit.local.cfg b/test/MC/Disassembler/X86/lit.local.cfg new file mode 100644 index 00000000000..5f3ae7de9a9 --- /dev/null +++ b/test/MC/Disassembler/X86/lit.local.cfg @@ -0,0 +1,13 @@ +config.suffixes = ['.txt'] + +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/MC/ELF/dg.exp b/test/MC/ELF/dg.exp deleted file mode 100644 index d46d700975e..00000000000 --- a/test/MC/ELF/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target X86] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,s}]] -} diff --git a/test/MC/ELF/lit.local.cfg b/test/MC/ELF/lit.local.cfg new file mode 100644 index 00000000000..461c6f4f2b3 --- /dev/null +++ b/test/MC/ELF/lit.local.cfg @@ -0,0 +1,13 @@ +config.suffixes = ['.ll', '.s'] + +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/MC/MBlaze/dg.exp b/test/MC/MBlaze/dg.exp deleted file mode 100644 index 0c4e78e88dc..00000000000 --- a/test/MC/MBlaze/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target MBlaze] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp,s}]] -} diff --git a/test/MC/MBlaze/lit.local.cfg b/test/MC/MBlaze/lit.local.cfg new file mode 100644 index 00000000000..6f92d8744e0 --- /dev/null +++ b/test/MC/MBlaze/lit.local.cfg @@ -0,0 +1,13 @@ +config.suffixes = ['.ll', '.c', '.cpp', '.s'] + +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 'MBlaze' in targets: + config.unsupported = True + diff --git a/test/MC/MachO/ARM/dg.exp b/test/MC/MachO/ARM/dg.exp deleted file mode 100644 index 055fa2507d3..00000000000 --- a/test/MC/MachO/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,c,cpp,s}]] -} diff --git a/test/MC/MachO/ARM/lit.local.cfg b/test/MC/MachO/ARM/lit.local.cfg new file mode 100644 index 00000000000..871e2b5cc4e --- /dev/null +++ b/test/MC/MachO/ARM/lit.local.cfg @@ -0,0 +1,13 @@ +config.suffixes = ['.s'] + +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/MC/MachO/dg.exp b/test/MC/MachO/dg.exp deleted file mode 100644 index ca6aefe9c53..00000000000 --- a/test/MC/MachO/dg.exp +++ /dev/null @@ -1,6 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target X86] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{s}]] -} - diff --git a/test/MC/MachO/lit.local.cfg b/test/MC/MachO/lit.local.cfg new file mode 100644 index 00000000000..1f53769b7b9 --- /dev/null +++ b/test/MC/MachO/lit.local.cfg @@ -0,0 +1,13 @@ +config.suffixes = ['.s'] + +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/MC/Mips/dg.exp b/test/MC/Mips/dg.exp deleted file mode 100644 index e469402ac0f..00000000000 --- a/test/MC/Mips/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target Mips] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp,s}]] -} diff --git a/test/MC/Mips/lit.local.cfg b/test/MC/Mips/lit.local.cfg new file mode 100644 index 00000000000..ecc61ea595a --- /dev/null +++ b/test/MC/Mips/lit.local.cfg @@ -0,0 +1,13 @@ +config.suffixes = ['.ll', '.c', '.cpp', '.s'] + +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 'Mips' in targets: + config.unsupported = True + diff --git a/test/MC/X86/dg.exp b/test/MC/X86/dg.exp deleted file mode 100644 index ec87b695b7e..00000000000 --- a/test/MC/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,c,cpp,s}]] -} diff --git a/test/MC/X86/lit.local.cfg b/test/MC/X86/lit.local.cfg new file mode 100644 index 00000000000..149a9a3256b --- /dev/null +++ b/test/MC/X86/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp', '.s'] diff --git a/test/Makefile b/test/Makefile index 1bf287401c1..a4e53f8d03f 100644 --- a/test/Makefile +++ b/test/Makefile @@ -169,6 +169,8 @@ lit.site.cfg: site.exp @$(ECHOPATH) s=@PYTHON_EXECUTABLE@=python=g >> lit.tmp @$(ECHOPATH) s=@ENABLE_SHARED@=$(ENABLE_SHARED)=g >> lit.tmp @$(ECHOPATH) s=@ENABLE_ASSERTIONS@=$(ENABLE_ASSERTIONS)=g >> lit.tmp + @$(ECHOPATH) s=@TARGETS_TO_BUILD@=$(TARGETS_TO_BUILD)=g >> lit.tmp + @$(ECHOPATH) s=@LLVM_BINDINGS@=$(BINDINGS_TO_BUILD)=g >> lit.tmp @sed -f lit.tmp $(PROJ_SRC_DIR)/lit.site.cfg.in > $@ @-rm -f lit.tmp diff --git a/test/Object/X86/dg.exp b/test/Object/X86/dg.exp deleted file mode 100644 index 6a91de70cae..00000000000 --- a/test/Object/X86/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if { [llvm_supports_target X86] } { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{test}]] -} diff --git a/test/Object/X86/lit.local.cfg b/test/Object/X86/lit.local.cfg new file mode 100644 index 00000000000..bbffb847bdf --- /dev/null +++ b/test/Object/X86/lit.local.cfg @@ -0,0 +1,13 @@ +config.suffixes = ['.test'] + +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/Object/dg.exp b/test/Object/dg.exp deleted file mode 100644 index be82c513920..00000000000 --- a/test/Object/dg.exp +++ /dev/null @@ -1,3 +0,0 @@ -load_lib llvm.exp - -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{test}]] diff --git a/test/Object/lit.local.cfg b/test/Object/lit.local.cfg new file mode 100644 index 00000000000..df9b335dd13 --- /dev/null +++ b/test/Object/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.test'] diff --git a/test/Other/X86/dg.exp b/test/Other/X86/dg.exp deleted file mode 100644 index 7b7bd4e7380..00000000000 --- a/test/Other/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/Other/X86/lit.local.cfg b/test/Other/X86/lit.local.cfg new file mode 100644 index 00000000000..84bd88ca333 --- /dev/null +++ b/test/Other/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/Other/dg.exp b/test/Other/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Other/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/Other/lit.local.cfg b/test/Other/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Other/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/TableGen/dg.exp b/test/TableGen/dg.exp deleted file mode 100644 index f7d275ad8cb..00000000000 --- a/test/TableGen/dg.exp +++ /dev/null @@ -1,3 +0,0 @@ -load_lib llvm.exp - -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{td}]] diff --git a/test/TableGen/lit.local.cfg b/test/TableGen/lit.local.cfg new file mode 100644 index 00000000000..9a4a0144f72 --- /dev/null +++ b/test/TableGen/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.td'] diff --git a/test/Transforms/ADCE/dg.exp b/test/Transforms/ADCE/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/ADCE/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/ADCE/lit.local.cfg b/test/Transforms/ADCE/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/ADCE/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/ArgumentPromotion/dg.exp b/test/Transforms/ArgumentPromotion/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/ArgumentPromotion/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/ArgumentPromotion/lit.local.cfg b/test/Transforms/ArgumentPromotion/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/ArgumentPromotion/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/BBVectorize/dg.exp b/test/Transforms/BBVectorize/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/BBVectorize/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/BBVectorize/lit.local.cfg b/test/Transforms/BBVectorize/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/BBVectorize/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/BlockPlacement/dg.exp b/test/Transforms/BlockPlacement/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/BlockPlacement/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/BlockPlacement/lit.local.cfg b/test/Transforms/BlockPlacement/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/BlockPlacement/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/CodeExtractor/dg.exp b/test/Transforms/CodeExtractor/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/CodeExtractor/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/CodeExtractor/lit.local.cfg b/test/Transforms/CodeExtractor/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/CodeExtractor/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/CodeGenPrepare/dg.exp b/test/Transforms/CodeGenPrepare/dg.exp deleted file mode 100644 index de42dad163f..00000000000 --- a/test/Transforms/CodeGenPrepare/dg.exp +++ /dev/null @@ -1,3 +0,0 @@ -load_lib llvm.exp - -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.ll]] diff --git a/test/Transforms/CodeGenPrepare/lit.local.cfg b/test/Transforms/CodeGenPrepare/lit.local.cfg new file mode 100644 index 00000000000..c6106e4746f --- /dev/null +++ b/test/Transforms/CodeGenPrepare/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll'] diff --git a/test/Transforms/ConstProp/dg.exp b/test/Transforms/ConstProp/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/ConstProp/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/ConstProp/lit.local.cfg b/test/Transforms/ConstProp/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/ConstProp/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/ConstantMerge/dg.exp b/test/Transforms/ConstantMerge/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/ConstantMerge/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/ConstantMerge/lit.local.cfg b/test/Transforms/ConstantMerge/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/ConstantMerge/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/CorrelatedValuePropagation/dg.exp b/test/Transforms/CorrelatedValuePropagation/dg.exp deleted file mode 100644 index de42dad163f..00000000000 --- a/test/Transforms/CorrelatedValuePropagation/dg.exp +++ /dev/null @@ -1,3 +0,0 @@ -load_lib llvm.exp - -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.ll]] diff --git a/test/Transforms/CorrelatedValuePropagation/lit.local.cfg b/test/Transforms/CorrelatedValuePropagation/lit.local.cfg new file mode 100644 index 00000000000..c6106e4746f --- /dev/null +++ b/test/Transforms/CorrelatedValuePropagation/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll'] diff --git a/test/Transforms/DeadArgElim/dg.exp b/test/Transforms/DeadArgElim/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/DeadArgElim/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/DeadArgElim/lit.local.cfg b/test/Transforms/DeadArgElim/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/DeadArgElim/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/DeadStoreElimination/dg.exp b/test/Transforms/DeadStoreElimination/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/DeadStoreElimination/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/DeadStoreElimination/lit.local.cfg b/test/Transforms/DeadStoreElimination/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/DeadStoreElimination/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/EarlyCSE/dg.exp b/test/Transforms/EarlyCSE/dg.exp deleted file mode 100644 index de42dad163f..00000000000 --- a/test/Transforms/EarlyCSE/dg.exp +++ /dev/null @@ -1,3 +0,0 @@ -load_lib llvm.exp - -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.ll]] diff --git a/test/Transforms/EarlyCSE/lit.local.cfg b/test/Transforms/EarlyCSE/lit.local.cfg new file mode 100644 index 00000000000..c6106e4746f --- /dev/null +++ b/test/Transforms/EarlyCSE/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll'] diff --git a/test/Transforms/FunctionAttrs/dg.exp b/test/Transforms/FunctionAttrs/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/FunctionAttrs/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/FunctionAttrs/lit.local.cfg b/test/Transforms/FunctionAttrs/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/FunctionAttrs/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/GVN/dg.exp b/test/Transforms/GVN/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/GVN/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/GVN/lit.local.cfg b/test/Transforms/GVN/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/GVN/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/GlobalDCE/dg.exp b/test/Transforms/GlobalDCE/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/GlobalDCE/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/GlobalDCE/lit.local.cfg b/test/Transforms/GlobalDCE/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/GlobalDCE/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/GlobalOpt/dg.exp b/test/Transforms/GlobalOpt/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/GlobalOpt/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/GlobalOpt/lit.local.cfg b/test/Transforms/GlobalOpt/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/GlobalOpt/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/IPConstantProp/dg.exp b/test/Transforms/IPConstantProp/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/IPConstantProp/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/IPConstantProp/lit.local.cfg b/test/Transforms/IPConstantProp/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/IPConstantProp/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/IndVarSimplify/dg.exp b/test/Transforms/IndVarSimplify/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/IndVarSimplify/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/IndVarSimplify/lit.local.cfg b/test/Transforms/IndVarSimplify/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/IndVarSimplify/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/Inline/dg.exp b/test/Transforms/Inline/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/Inline/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/Inline/lit.local.cfg b/test/Transforms/Inline/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/Inline/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/InstCombine/dg.exp b/test/Transforms/InstCombine/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/InstCombine/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/InstCombine/lit.local.cfg b/test/Transforms/InstCombine/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/InstCombine/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/InstSimplify/dg.exp b/test/Transforms/InstSimplify/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/InstSimplify/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/InstSimplify/lit.local.cfg b/test/Transforms/InstSimplify/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/InstSimplify/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/Internalize/dg.exp b/test/Transforms/Internalize/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/Internalize/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/Internalize/lit.local.cfg b/test/Transforms/Internalize/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/Internalize/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/JumpThreading/dg.exp b/test/Transforms/JumpThreading/dg.exp deleted file mode 100644 index de42dad163f..00000000000 --- a/test/Transforms/JumpThreading/dg.exp +++ /dev/null @@ -1,3 +0,0 @@ -load_lib llvm.exp - -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.ll]] diff --git a/test/Transforms/JumpThreading/lit.local.cfg b/test/Transforms/JumpThreading/lit.local.cfg new file mode 100644 index 00000000000..c6106e4746f --- /dev/null +++ b/test/Transforms/JumpThreading/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll'] diff --git a/test/Transforms/LCSSA/dg.exp b/test/Transforms/LCSSA/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/LCSSA/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/LCSSA/lit.local.cfg b/test/Transforms/LCSSA/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/LCSSA/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/LICM/dg.exp b/test/Transforms/LICM/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/LICM/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/LICM/lit.local.cfg b/test/Transforms/LICM/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/LICM/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/LoopDeletion/dg.exp b/test/Transforms/LoopDeletion/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/LoopDeletion/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/LoopDeletion/lit.local.cfg b/test/Transforms/LoopDeletion/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/LoopDeletion/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/LoopIdiom/dg.exp b/test/Transforms/LoopIdiom/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/LoopIdiom/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/LoopIdiom/lit.local.cfg b/test/Transforms/LoopIdiom/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/LoopIdiom/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/LoopRotate/dg.exp b/test/Transforms/LoopRotate/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/LoopRotate/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/LoopRotate/lit.local.cfg b/test/Transforms/LoopRotate/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/LoopRotate/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/LoopSimplify/dg.exp b/test/Transforms/LoopSimplify/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/LoopSimplify/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/LoopSimplify/lit.local.cfg b/test/Transforms/LoopSimplify/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/LoopSimplify/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/LoopStrengthReduce/ARM/dg.exp b/test/Transforms/LoopStrengthReduce/ARM/dg.exp deleted file mode 100644 index a0009b86e5b..00000000000 --- 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 00000000000..d622529cad1 --- /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 7b7bd4e7380..00000000000 --- 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 00000000000..84bd88ca333 --- /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 f2005891a59..00000000000 --- 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 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/LoopStrengthReduce/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/LoopUnroll/dg.exp b/test/Transforms/LoopUnroll/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/LoopUnroll/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/LoopUnroll/lit.local.cfg b/test/Transforms/LoopUnroll/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/LoopUnroll/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/LoopUnswitch/dg.exp b/test/Transforms/LoopUnswitch/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/LoopUnswitch/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/LoopUnswitch/lit.local.cfg b/test/Transforms/LoopUnswitch/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/LoopUnswitch/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/LowerAtomic/dg.exp b/test/Transforms/LowerAtomic/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/LowerAtomic/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/LowerAtomic/lit.local.cfg b/test/Transforms/LowerAtomic/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/LowerAtomic/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/LowerExpectIntrinsic/dg.exp b/test/Transforms/LowerExpectIntrinsic/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/LowerExpectIntrinsic/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/LowerExpectIntrinsic/lit.local.cfg b/test/Transforms/LowerExpectIntrinsic/lit.local.cfg new file mode 100644 index 00000000000..c6106e4746f --- /dev/null +++ b/test/Transforms/LowerExpectIntrinsic/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll'] diff --git a/test/Transforms/LowerInvoke/dg.exp b/test/Transforms/LowerInvoke/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/LowerInvoke/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/LowerInvoke/lit.local.cfg b/test/Transforms/LowerInvoke/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/LowerInvoke/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/LowerSwitch/dg.exp b/test/Transforms/LowerSwitch/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/LowerSwitch/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/LowerSwitch/lit.local.cfg b/test/Transforms/LowerSwitch/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/LowerSwitch/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/Mem2Reg/dg.exp b/test/Transforms/Mem2Reg/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/Mem2Reg/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/Mem2Reg/lit.local.cfg b/test/Transforms/Mem2Reg/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/Mem2Reg/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/MemCpyOpt/dg.exp b/test/Transforms/MemCpyOpt/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/MemCpyOpt/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/MemCpyOpt/lit.local.cfg b/test/Transforms/MemCpyOpt/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/MemCpyOpt/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/MergeFunc/dg.exp b/test/Transforms/MergeFunc/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/MergeFunc/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/MergeFunc/lit.local.cfg b/test/Transforms/MergeFunc/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/MergeFunc/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/ObjCARC/dg.exp b/test/Transforms/ObjCARC/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/ObjCARC/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/ObjCARC/lit.local.cfg b/test/Transforms/ObjCARC/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/ObjCARC/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/PhaseOrdering/dg.exp b/test/Transforms/PhaseOrdering/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/PhaseOrdering/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/PhaseOrdering/lit.local.cfg b/test/Transforms/PhaseOrdering/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/PhaseOrdering/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/PruneEH/dg.exp b/test/Transforms/PruneEH/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/PruneEH/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/PruneEH/lit.local.cfg b/test/Transforms/PruneEH/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/PruneEH/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/Reassociate/dg.exp b/test/Transforms/Reassociate/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/Reassociate/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/Reassociate/lit.local.cfg b/test/Transforms/Reassociate/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/Reassociate/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/SCCP/dg.exp b/test/Transforms/SCCP/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/SCCP/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/SCCP/lit.local.cfg b/test/Transforms/SCCP/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/SCCP/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/ScalarRepl/dg.exp b/test/Transforms/ScalarRepl/dg.exp deleted file mode 100644 index 39954d8a498..00000000000 --- a/test/Transforms/ScalarRepl/dg.exp +++ /dev/null @@ -1,3 +0,0 @@ -load_lib llvm.exp - -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll}]] diff --git a/test/Transforms/ScalarRepl/lit.local.cfg b/test/Transforms/ScalarRepl/lit.local.cfg new file mode 100644 index 00000000000..c6106e4746f --- /dev/null +++ b/test/Transforms/ScalarRepl/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll'] diff --git a/test/Transforms/SimplifyCFG/dg.exp b/test/Transforms/SimplifyCFG/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/SimplifyCFG/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/SimplifyCFG/lit.local.cfg b/test/Transforms/SimplifyCFG/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/SimplifyCFG/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/SimplifyLibCalls/dg.exp b/test/Transforms/SimplifyLibCalls/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/SimplifyLibCalls/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/SimplifyLibCalls/lit.local.cfg b/test/Transforms/SimplifyLibCalls/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/SimplifyLibCalls/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/Sink/dg.exp b/test/Transforms/Sink/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/Sink/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/Sink/lit.local.cfg b/test/Transforms/Sink/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/Sink/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/StripSymbols/dg.exp b/test/Transforms/StripSymbols/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/StripSymbols/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/StripSymbols/lit.local.cfg b/test/Transforms/StripSymbols/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/StripSymbols/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/TailCallElim/dg.exp b/test/Transforms/TailCallElim/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/TailCallElim/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/TailCallElim/lit.local.cfg b/test/Transforms/TailCallElim/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Transforms/TailCallElim/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Transforms/TailDup/X86/dg.exp b/test/Transforms/TailDup/X86/dg.exp deleted file mode 100644 index 7b7bd4e7380..00000000000 --- a/test/Transforms/TailDup/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/TailDup/X86/lit.local.cfg b/test/Transforms/TailDup/X86/lit.local.cfg new file mode 100644 index 00000000000..84bd88ca333 --- /dev/null +++ b/test/Transforms/TailDup/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/TailDup/dg.exp b/test/Transforms/TailDup/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Transforms/TailDup/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/TailDup/lit.local.cfg b/test/Transforms/TailDup/lit.local.cfg new file mode 100644 index 00000000000..39c803900e5 --- /dev/null +++ b/test/Transforms/TailDup/lit.local.cfg @@ -0,0 +1,12 @@ +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 'X86' in targets: + config.unsupported = True diff --git a/test/Verifier/dg.exp b/test/Verifier/dg.exp deleted file mode 100644 index f2005891a59..00000000000 --- a/test/Verifier/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/Verifier/lit.local.cfg b/test/Verifier/lit.local.cfg new file mode 100644 index 00000000000..19eebc0ac7a --- /dev/null +++ b/test/Verifier/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/lib/llvm.exp b/test/lib/llvm.exp index a61f934df7a..e69de29bb2d 100644 --- a/test/lib/llvm.exp +++ b/test/lib/llvm.exp @@ -1,269 +0,0 @@ -# This procedure executes one line of a test case's execution script. -proc execOneLine { test PRS outcome lineno line } { - set status 0 - set resultmsg "" - set retval [ catch { eval exec -keepnewline -- $line } errmsg ] - if { $retval != 0 } { - set code [lindex $::errorCode 0] - set lineno [expr $lineno + 1] - if { $PRS != ""} { - set PRS " for $PRS" - } - set errmsg " at line $lineno\nwhile running: $line\n$errmsg" - switch "$code" { - CHILDSTATUS { - set status [lindex $::errorCode 2] - if { $status != 0 } { - set resultmsg "$test$PRS\nFailed with exit($status)$errmsg" - } - } - CHILDKILLED { - set signal [lindex $::errorCode 2] - set resultmsg "$test$PRS\nFailed with signal($signal)$errmsg" - } - CHILDSUSP { - set signal [lindex $::errorCode 2] - set resultmsg "$test$PRS\nFailed with suspend($signal)$errmsg" - } - POSIX { - set posixNum [lindex $::errorCode 1] - set posixMsg [lindex $::errorCode 2] - set resultmsg "$test$PRS\nFailed with posix($posixNum,$posixMsg)$errmsg" - } - NONE { - # Any other error such as stderr output of a program, or syntax error in - # the RUN line. - set resultmsg "$test$PRS\nFailed with unknown error (or has stderr output)$errmsg" - } - default { - set resultmsg "$test$PRS\nFailed with unknown error$errmsg" - } - } - } - return $resultmsg -} - -# This procedure performs variable substitutions on the RUN: lines of a test -# cases. -proc substitute { line test tmpFile } { - global srcroot objroot srcdir objdir subdir target_triplet - global ocamlopt - global link shlibext - global valgrind grep gas - set path [file join $srcdir $subdir] - - # Substitute all Tcl variables. - set new_line [subst $line ] - - #replace %% with _#MARKER#_ to make the replacement of %% more predictable - regsub -all {%%} $new_line {_#MARKER#_} new_line - #replace %link with C++ link command - regsub -all {%link} $new_line "$link" new_line - #replace %shlibext with shared library extension - regsub -all {%shlibext} $new_line "$shlibext" new_line - #replace %ocamlopt with ocaml compiler command - regsub -all {%ocamlopt} $new_line "$ocamlopt" new_line - #replace %p with path to source, - regsub -all {%p} $new_line [file join $srcdir $subdir] new_line - #replace %s with filename - regsub -all {%s} $new_line $test new_line - #replace %t with temp filenames - regsub -all {%t} $new_line $tmpFile new_line - #replace %abs_tmp with absolute temp filenames - regsub -all {%abs_tmp} $new_line [file join [pwd] $tmpFile] new_line - #replace _#MARKER#_ with % - regsub -all {_#MARKER#_} $new_line % new_line - - #replace grep with GNU grep - regsub -all { grep } $new_line " $grep " new_line - #replace as with GNU as - regsub -all {\| as } $new_line "| $gas " new_line - - #valgind related stuff -# regsub -all {bugpoint } $new_line "$valgrind bugpoint " new_line - regsub -all {llc } $new_line "$valgrind llc " new_line - regsub -all {lli } $new_line "$valgrind lli " new_line - regsub -all {llvm-ar } $new_line "$valgrind llvm-ar " new_line - regsub -all {llvm-as } $new_line "$valgrind llvm-as " new_line - regsub -all {llvm-bcanalyzer } $new_line "$valgrind llvm-bcanalyzer " new_line - regsub -all {llvm-dis } $new_line "$valgrind llvm-dis " new_line - regsub -all {llvm-extract } $new_line "$valgrind llvm-extract " new_line - regsub -all {llvm-ld } $new_line "$valgrind llvm-ld " new_line - regsub -all {llvm-link } $new_line "$valgrind llvm-link " new_line - regsub -all {llvm-nm } $new_line "$valgrind llvm-nm " new_line - regsub -all {llvm-prof } $new_line "$valgrind llvm-prof " new_line - regsub -all {llvm-ranlib } $new_line "$valgrind llvm-ranlib " new_line - regsub -all {([^a-zA-Z_-])opt } $new_line "\\1$valgrind opt " new_line - regsub -all {^opt } $new_line "$valgrind opt " new_line - regsub -all {llvm-tblgen } $new_line "$valgrind llvm-tblgen " new_line - regsub -all "not $valgrind " $new_line "$valgrind not " new_line - - return $new_line -} - -# This procedure runs the set of tests for the test_source_files array. -proc RunLLVMTests { test_source_files } { - global srcroot objroot srcdir objdir subdir target_triplet - set timeout 60 - - set path [file join $objdir $subdir] - - #Make Output Directory if it does not exist already - if { [file exists path] } { - cd $path - } else { - file mkdir $path - cd $path - } - - file mkdir Output - cd Output - - foreach test $test_source_files { - #Should figure out best way to set the timeout - #set timeout 40 - - set filename [file tail $test] - verbose "ABOUT TO RUN: $filename" 2 - set outcome PASS - set tmpFile "$filename.tmp" - - # Mark that it should not be XFAIL for this target. - set targetPASS 0 - - #set hasRunline bool to check if testcase has a runline - set numLines 0 - - # Open the test file and start reading lines - set testFileId [ open $test r] - set runline "" - set PRNUMS "" - foreach line [split [read $testFileId] \n] { - - # if its the END. line then stop parsing (optimization for big files) - if {[regexp {END.[[:space:]]*$} $line match endofscript]} { - break - - # if the line is continued, concatenate and continue the loop - } elseif {[regexp {RUN: *(.+)(\\)$} $line match oneline suffix]} { - set runline "$runline$oneline " - - # if its a terminating RUN: line then do substitution on the whole line - # and then save the line. - } elseif {[regexp {RUN: *(.+)$} $line match oneline suffix]} { - set runline "$runline$oneline" - set runline [ substitute $runline $test $tmpFile ] - set lines($numLines) $runline - set numLines [expr $numLines + 1] - set runline "" - - # if its an PR line, save the problem report number - } elseif {[regexp {PR([0-9]+)} $line match prnum]} { - if {$PRNUMS == ""} { - set PRNUMS "PR$prnum" - } else { - set PRNUMS "$PRNUMS,$prnum" - } - # if its an XFAIL line, see if we should be XFAILing or not. - } elseif {[regexp {XFAIL:[ *](.+)} $line match targets]} { - set targets - - #split up target if more then 1 specified - foreach target [split $targets ,] { - if { $target == "*" } { - if {$targetPASS != 1} { - set outcome XFAIL - } - } elseif { [regexp $target $target_triplet match] } { - if {$targetPASS != 1} { - set outcome XFAIL - } - } - } - } elseif {[regexp {XTARGET:[ *](.+)} $line match targets]} { - set targets - - #split up target if more then 1 specified - foreach target [split $targets ,] { - if { [regexp {\*} $target match] } { - set targetPASS 1 - set outcome PASS - } elseif { [regexp $target $target_triplet match] } { - set targetPASS 1 - set outcome PASS - } - } - } - } - - # Done reading the script - close $testFileId - - - if { $numLines == 0 } { - fail "$test: \nDoes not have a RUN line\n" - } else { - set failed 0 - for { set i 0 } { $i < $numLines } { set i [ expr $i + 1 ] } { - regsub ^.*RUN:(.*) $lines($i) \1 theLine - set resultmsg [execOneLine $test $PRNUMS $outcome $i $theLine ] - if { $resultmsg != "" } { - if { $outcome == "XFAIL" } { - xfail "$resultmsg" - } else { - fail "$resultmsg" - } - set failed 1 - break - } - } - if { $failed } { - continue - } else { - if { $PRNUMS != "" } { - set PRNUMS " for $PRNUMS" - } - if { $outcome == "XFAIL" } { - xpass "$test$PRNUMS" - } else { - pass "$test$PRNUMS" - } - } - } - } -} - -# This procedure provides an interface to check the TARGETS_TO_BUILD makefile -# variable to see if a particular target has been configured to build. This -# helps avoid running tests for targets that aren't available. -proc llvm_supports_target { tgtName } { - global TARGETS_TO_BUILD - foreach target [split $TARGETS_TO_BUILD] { - if { [regexp $tgtName $target match] } { - return 1 - } - } - return 0 -} - -proc llvm_supports_darwin_and_target { tgtName } { - global target_triplet - if { [ llvm_supports_target $tgtName ] } { - if { [regexp darwin $target_triplet match] } { - return 1 - } - } - return 0 -} - -# This procedure provides an interface to check the BINDINGS_TO_BUILD makefile -# variable to see if a particular binding has been configured to build. -proc llvm_supports_binding { name } { - global llvm_bindings - foreach item [split $llvm_bindings] { - if { [regexp $name $item match] } { - return 1 - } - } - return 0 -} diff --git a/test/lit.cfg b/test/lit.cfg index f3302a2d6c0..acbe97aa6de 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -253,7 +253,6 @@ def on_clone(parent, cfg, for_path): libPath = os.path.join(os.path.dirname(for_path), 'dg.exp') if not os.path.exists(libPath): - cfg.unsupported = True return # Reset unsupported, in case we inherited it. diff --git a/test/lit.site.cfg.in b/test/lit.site.cfg.in index 5a42e5c33c1..8b81186211a 100644 --- a/test/lit.site.cfg.in +++ b/test/lit.site.cfg.in @@ -7,6 +7,8 @@ config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@" config.python_executable = "@PYTHON_EXECUTABLE@" config.enable_shared = @ENABLE_SHARED@ config.enable_assertions = @ENABLE_ASSERTIONS@ +config.targets_to_build = "@TARGETS_TO_BUILD@" +config.llvm_bindings = "@LLVM_BINDINGS@" # Support substitution of the tools_dir with user parameters. This is # used when we can't determine the tool dir at configuration time.