llvm.org GIT mirror llvm / 0f0c411
Replace all instances of dg.exp file with lit.local.cfg, since all tests are run with LIT now and now Dejagnu. dg.exp is no longer needed. Patch reviewed by Daniel Dunbar. It will be followed by additional cleanup patches. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150664 91177308-0d34-0410-b5e6-96231b3b80d8 Eli Bendersky 7 years ago
235 changed file(s) with 549 addition(s) and 695 deletion(s). Raw diff Collapse all Expand all
+0
-3
test/Analysis/BasicAA/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Analysis/BlockFrequencyInfo/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Analysis/BranchProbabilityInfo/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Analysis/CallGraph/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Analysis/Dominators/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Analysis/GlobalsModRef/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Analysis/LoopDependenceAnalysis/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Analysis/LoopInfo/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Analysis/PostDominators/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-4
test/Analysis/Profiling/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
3
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Analysis/RegionInfo/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Analysis/ScalarEvolution/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.ll]]
+0
-3
test/Analysis/TypeBasedAliasAnalysis/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Archive/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Assembler/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-5
test/Bindings/Ocaml/dg.exp less more
None load_lib llvm.exp
1
2 if [ llvm_supports_binding ocaml ] then {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp,ml}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp', '.ml']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 bindings = set([s.strip() for s in root.llvm_bindings.split(',')])
10 if not 'ocaml' in bindings:
11 config.unsupported = True
12
+0
-3
test/Bitcode/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/BugPoint/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.ll]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-5
test/CodeGen/ARM/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target ARM] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'ARM' in targets:
11 config.unsupported = True
12
+0
-5
test/CodeGen/CBackend/X86/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target X86] && [llvm_supports_target CBackend] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp,s}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'CBackend' in targets or not 'X86' in targets:
11 config.unsupported = True
12
+0
-5
test/CodeGen/CBackend/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target CBackend] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'CBackend' in targets:
11 config.unsupported = True
12
+0
-5
test/CodeGen/CPP/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target CppBackend] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'CppBackend' in targets:
11 config.unsupported = True
12
+0
-5
test/CodeGen/CellSPU/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target CellSPU] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'CellSPU' in targets:
11 config.unsupported = True
12
+0
-3
test/CodeGen/Generic/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-5
test/CodeGen/Hexagon/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target Hexagon] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'Hexagon' in targets:
11 config.unsupported = True
12
+0
-5
test/CodeGen/MBlaze/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target MBlaze] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'MBlaze' in targets:
11 config.unsupported = True
12
+0
-5
test/CodeGen/MSP430/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target MSP430] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'MSP430' in targets:
11 config.unsupported = True
12
+0
-5
test/CodeGen/Mips/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target Mips] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'Mips' in targets:
11 config.unsupported = True
12
+0
-5
test/CodeGen/PTX/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target PTX] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'PTX' in targets:
11 config.unsupported = True
12
+0
-5
test/CodeGen/PowerPC/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target PowerPC] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'PowerPC' in targets:
11 config.unsupported = True
12
+0
-5
test/CodeGen/SPARC/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target Sparc] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'Sparc' in targets:
11 config.unsupported = True
12
+0
-5
test/CodeGen/Thumb/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target ARM] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'ARM' in targets:
11 config.unsupported = True
12
+0
-5
test/CodeGen/Thumb2/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target ARM] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'ARM' in targets:
11 config.unsupported = True
12
+0
-5
test/CodeGen/X86/GC/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target X86] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'X86' in targets:
11 config.unsupported = True
12
+0
-5
test/CodeGen/X86/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target X86] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'X86' in targets:
11 config.unsupported = True
12
+0
-5
test/CodeGen/XCore/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target XCore] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'XCore' in targets:
11 config.unsupported = True
12
+0
-5
test/DebugInfo/X86/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target X86] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll}]]
4 }
0 config.suffixes = ['.ll']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'X86' in targets:
11 config.unsupported = True
+0
-3
test/DebugInfo/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/ExecutionEngine/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Feature/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Instrumentation/AddressSanitizer/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Instrumentation/ThreadSanitizer/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
+0
-3
test/Integer/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Linker/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-5
test/MC/ARM/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target ARM] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp,s}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp', '.s']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'ARM' in targets:
11 config.unsupported = True
12
+0
-5
test/MC/AsmParser/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target X86] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{s}]]
4 }
0 config.suffixes = ['.s']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'X86' in targets:
11 config.unsupported = True
12
+0
-5
test/MC/COFF/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target X86] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,s}]]
4 }
0 config.suffixes = ['.s', '.ll']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'X86' in targets:
11 config.unsupported = True
12
+0
-6
test/MC/Disassembler/ARM/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target ARM] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{txt}]]
4 }
5
0 config.suffixes = ['.txt']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'ARM' in targets:
11 config.unsupported = True
12
+0
-6
test/MC/Disassembler/MBlaze/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target MBlaze] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{txt}]]
4 }
5
0 config.suffixes = ['.txt']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'MBlaze' in targets:
11 config.unsupported = True
12
+0
-6
test/MC/Disassembler/X86/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target X86] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{txt}]]
4 }
5
0 config.suffixes = ['.txt']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'X86' in targets:
11 config.unsupported = True
12
+0
-5
test/MC/ELF/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target X86] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,s}]]
4 }
0 config.suffixes = ['.ll', '.s']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'X86' in targets:
11 config.unsupported = True
12
+0
-5
test/MC/MBlaze/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target MBlaze] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp,s}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp', '.s']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'MBlaze' in targets:
11 config.unsupported = True
12
+0
-5
test/MC/MachO/ARM/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target ARM] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp,s}]]
4 }
0 config.suffixes = ['.s']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'ARM' in targets:
11 config.unsupported = True
12
+0
-6
test/MC/MachO/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target X86] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{s}]]
4 }
5
0 config.suffixes = ['.s']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'X86' in targets:
11 config.unsupported = True
12
+0
-5
test/MC/Mips/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target Mips] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp,s}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp', '.s']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'Mips' in targets:
11 config.unsupported = True
12
+0
-5
test/MC/X86/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target X86] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp,s}]]
4 }
0 config.suffixes = ['.ll', '.c', '.cpp', '.s']
168168 @$(ECHOPATH) s=@PYTHON_EXECUTABLE@=python=g >> lit.tmp
169169 @$(ECHOPATH) s=@ENABLE_SHARED@=$(ENABLE_SHARED)=g >> lit.tmp
170170 @$(ECHOPATH) s=@ENABLE_ASSERTIONS@=$(ENABLE_ASSERTIONS)=g >> lit.tmp
171 @$(ECHOPATH) s=@TARGETS_TO_BUILD@=$(TARGETS_TO_BUILD)=g >> lit.tmp
172 @$(ECHOPATH) s=@LLVM_BINDINGS@=$(BINDINGS_TO_BUILD)=g >> lit.tmp
171173 @sed -f lit.tmp $(PROJ_SRC_DIR)/lit.site.cfg.in > $@
172174 @-rm -f lit.tmp
173175
+0
-5
test/Object/X86/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target X86] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{test}]]
4 }
0 config.suffixes = ['.test']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'X86' in targets:
11 config.unsupported = True
12
+0
-3
test/Object/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{test}]]
0 config.suffixes = ['.test']
+0
-5
test/Other/X86/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target X86] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll}]]
4 }
0 config.suffixes = ['.ll']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'X86' in targets:
11 config.unsupported = True
12
+0
-3
test/Other/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/TableGen/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{td}]]
0 config.suffixes = ['.td']
+0
-3
test/Transforms/ADCE/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/ArgumentPromotion/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/BBVectorize/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/BlockPlacement/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/CodeExtractor/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/CodeGenPrepare/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.ll]]
+0
-3
test/Transforms/ConstProp/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/ConstantMerge/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/CorrelatedValuePropagation/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.ll]]
+0
-3
test/Transforms/DeadArgElim/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/DeadStoreElimination/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/EarlyCSE/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.ll]]
0 config.suffixes = ['.ll']
+0
-3
test/Transforms/FunctionAttrs/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/GVN/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/GlobalDCE/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/GlobalOpt/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/IPConstantProp/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/IndVarSimplify/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/Inline/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/InstCombine/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/InstSimplify/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/Internalize/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/JumpThreading/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.ll]]
+0
-3
test/Transforms/LCSSA/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/LICM/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/LoopDeletion/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/LoopIdiom/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/LoopRotate/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/LoopSimplify/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-5
test/Transforms/LoopStrengthReduce/ARM/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target ARM] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll}]]
4 }
0 config.suffixes = ['.ll']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'ARM' in targets:
11 config.unsupported = True
12
+0
-5
test/Transforms/LoopStrengthReduce/X86/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target X86] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll}]]
4 }
0 config.suffixes = ['.ll']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'X86' in targets:
11 config.unsupported = True
12
+0
-3
test/Transforms/LoopStrengthReduce/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/LoopUnroll/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/LoopUnswitch/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/LowerAtomic/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/LowerExpectIntrinsic/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
+0
-3
test/Transforms/LowerInvoke/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/LowerSwitch/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/Mem2Reg/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/MemCpyOpt/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/MergeFunc/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/ObjCARC/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/PhaseOrdering/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/PruneEH/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/Reassociate/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/SCCP/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/ScalarRepl/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll}]]
0 config.suffixes = ['.ll']
+0
-3
test/Transforms/SimplifyCFG/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/SimplifyLibCalls/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/Sink/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/StripSymbols/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-3
test/Transforms/TailCallElim/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
+0
-5
test/Transforms/TailDup/X86/dg.exp less more
None load_lib llvm.exp
1
2 if { [llvm_supports_target X86] } {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll}]]
4 }
0 config.suffixes = ['.ll']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'X86' in targets:
11 config.unsupported = True
12
+0
-3
test/Transforms/TailDup/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
1
2 def getRoot(config):
3 if not config.parent:
4 return config
5 return getRoot(config.parent)
6
7 root = getRoot(config)
8
9 targets = set(root.targets_to_build.split())
10 if not 'X86' in targets:
11 config.unsupported = True
+0
-3
test/Verifier/dg.exp less more
None load_lib llvm.exp
1
2 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
0 config.suffixes = ['.ll', '.c', '.cpp']
None # This procedure executes one line of a test case's execution script.
1 proc execOneLine { test PRS outcome lineno line } {
2 set status 0
3 set resultmsg ""
4 set retval [ catch { eval exec -keepnewline -- $line } errmsg ]
5 if { $retval != 0 } {
6 set code [lindex $::errorCode 0]
7 set lineno [expr $lineno + 1]
8 if { $PRS != ""} {
9 set PRS " for $PRS"
10 }
11 set errmsg " at line $lineno\nwhile running: $line\n$errmsg"
12 switch "$code" {
13 CHILDSTATUS {
14 set status [lindex $::errorCode 2]
15 if { $status != 0 } {
16 set resultmsg "$test$PRS\nFailed with exit($status)$errmsg"
17 }
18 }
19 CHILDKILLED {
20 set signal [lindex $::errorCode 2]
21 set resultmsg "$test$PRS\nFailed with signal($signal)$errmsg"
22 }
23 CHILDSUSP {
24 set signal [lindex $::errorCode 2]
25 set resultmsg "$test$PRS\nFailed with suspend($signal)$errmsg"
26 }
27 POSIX {
28 set posixNum [lindex $::errorCode 1]
29 set posixMsg [lindex $::errorCode 2]
30 set resultmsg "$test$PRS\nFailed with posix($posixNum,$posixMsg)$errmsg"
31 }
32 NONE {
33 # Any other error such as stderr output of a program, or syntax error in
34 # the RUN line.
35 set resultmsg "$test$PRS\nFailed with unknown error (or has stderr output)$errmsg"
36 }
37 default {
38 set resultmsg "$test$PRS\nFailed with unknown error$errmsg"
39 }
40 }
41 }
42 return $resultmsg
43 }
44
45 # This procedure performs variable substitutions on the RUN: lines of a test
46 # cases.
47 proc substitute { line test tmpFile } {
48 global srcroot objroot srcdir objdir subdir target_triplet
49 global ocamlopt
50 global link shlibext
51 global valgrind grep gas
52 set path [file join $srcdir $subdir]
53
54 # Substitute all Tcl variables.
55 set new_line [subst $line ]
56
57 #replace %% with _#MARKER#_ to make the replacement of %% more predictable
58 regsub -all {%%} $new_line {_#MARKER#_} new_line
59 #replace %link with C++ link command
60 regsub -all {%link} $new_line "$link" new_line
61 #replace %shlibext with shared library extension
62 regsub -all {%shlibext} $new_line "$shlibext" new_line
63 #replace %ocamlopt with ocaml compiler command
64 regsub -all {%ocamlopt} $new_line "$ocamlopt" new_line
65 #replace %p with path to source,
66 regsub -all {%p} $new_line [file join $srcdir $subdir] new_line
67 #replace %s with filename
68 regsub -all {%s} $new_line $test new_line
69 #replace %t with temp filenames
70 regsub -all {%t} $new_line $tmpFile new_line
71 #replace %abs_tmp with absolute temp filenames
72 regsub -all {%abs_tmp} $new_line [file join [pwd] $tmpFile] new_line
73 #replace _#MARKER#_ with %
74 regsub -all {_#MARKER#_} $new_line % new_line
75
76 #replace grep with GNU grep
77 regsub -all { grep } $new_line " $grep " new_line
78 #replace as with GNU as
79 regsub -all {\| as } $new_line "| $gas " new_line
80
81 #valgind related stuff
82 # regsub -all {bugpoint } $new_line "$valgrind bugpoint " new_line
83 regsub -all {llc } $new_line "$valgrind llc " new_line
84 regsub -all {lli } $new_line "$valgrind lli " new_line
85 regsub -all {llvm-ar } $new_line "$valgrind llvm-ar " new_line
86 regsub -all {llvm-as } $new_line "$valgrind llvm-as " new_line
87 regsub -all {llvm-bcanalyzer } $new_line "$valgrind llvm-bcanalyzer " new_line
88 regsub -all {llvm-dis } $new_line "$valgrind llvm-dis " new_line
89 regsub -all {llvm-extract } $new_line "$valgrind llvm-extract " new_line
90 regsub -all {llvm-ld } $new_line "$valgrind llvm-ld " new_line
91 regsub -all {llvm-link } $new_line "$valgrind llvm-link " new_line
92 regsub -all {llvm-nm } $new_line "$valgrind llvm-nm " new_line
93 regsub -all {llvm-prof } $new_line "$valgrind llvm-prof " new_line
94 regsub -all {llvm-ranlib } $new_line "$valgrind llvm-ranlib " new_line
95 regsub -all {([^a-zA-Z_-])opt } $new_line "\\1$valgrind opt " new_line
96 regsub -all {^opt } $new_line "$valgrind opt " new_line
97 regsub -all {llvm-tblgen } $new_line "$valgrind llvm-tblgen " new_line
98 regsub -all "not $valgrind " $new_line "$valgrind not " new_line
99
100 return $new_line
101 }
102
103 # This procedure runs the set of tests for the test_source_files array.
104 proc RunLLVMTests { test_source_files } {
105 global srcroot objroot srcdir objdir subdir target_triplet
106 set timeout 60
107
108 set path [file join $objdir $subdir]
109
110 #Make Output Directory if it does not exist already
111 if { [file exists path] } {
112 cd $path
113 } else {
114 file mkdir $path
115 cd $path
116 }
117
118 file mkdir Output
119 cd Output
120
121 foreach test $test_source_files {
122 #Should figure out best way to set the timeout
123 #set timeout 40
124
125 set filename [file tail $test]
126 verbose "ABOUT TO RUN: $filename" 2
127 set outcome PASS
128 set tmpFile "$filename.tmp"
129
130 # Mark that it should not be XFAIL for this target.
131 set targetPASS 0
132
133 #set hasRunline bool to check if testcase has a runline
134 set numLines 0
135
136 # Open the test file and start reading lines
137 set testFileId [ open $test r]
138 set runline ""
139 set PRNUMS ""
140 foreach line [split [read $testFileId] \n] {
141
142 # if its the END. line then stop parsing (optimization for big files)
143 if {[regexp {END.[[:space:]]*$} $line match endofscript]} {
144 break
145
146 # if the line is continued, concatenate and continue the loop
147 } elseif {[regexp {RUN: *(.+)(\\)$} $line match oneline suffix]} {
148 set runline "$runline$oneline "
149
150 # if its a terminating RUN: line then do substitution on the whole line
151 # and then save the line.
152 } elseif {[regexp {RUN: *(.+)$} $line match oneline suffix]} {
153 set runline "$runline$oneline"
154 set runline [ substitute $runline $test $tmpFile ]
155 set lines($numLines) $runline
156 set numLines [expr $numLines + 1]
157 set runline ""
158
159 # if its an PR line, save the problem report number
160 } elseif {[regexp {PR([0-9]+)} $line match prnum]} {
161 if {$PRNUMS == ""} {
162 set PRNUMS "PR$prnum"
163 } else {
164 set PRNUMS "$PRNUMS,$prnum"
165 }
166 # if its an XFAIL line, see if we should be XFAILing or not.
167 } elseif {[regexp {XFAIL:[ *](.+)} $line match targets]} {
168 set targets
169
170 #split up target if more then 1 specified
171 foreach target [split $targets ,] {
172 if { $target == "*" } {
173 if {$targetPASS != 1} {
174 set outcome XFAIL
175 }
176 } elseif { [regexp $target $target_triplet match] } {
177 if {$targetPASS != 1} {
178 set outcome XFAIL
179 }
180 }
181 }
182 } elseif {[regexp {XTARGET:[ *](.+)} $line match targets]} {
183 set targets
184
185 #split up target if more then 1 specified
186 foreach target [split $targets ,] {
187 if { [regexp {\*} $target match] } {
188 set targetPASS 1
189 set outcome PASS
190 } elseif { [regexp $target $target_triplet match] } {
191 set targetPASS 1
192 set outcome PASS
193 }
194 }
195 }
196 }
197
198 # Done reading the script
199 close $testFileId
200
201
202 if { $numLines == 0 } {
203 fail "$test: \nDoes not have a RUN line\n"
204 } else {
205 set failed 0
206 for { set i 0 } { $i < $numLines } { set i [ expr $i + 1 ] } {
207 regsub ^.*RUN:(.*) $lines($i) \1 theLine
208 set resultmsg [execOneLine $test $PRNUMS $outcome $i $theLine ]
209 if { $resultmsg != "" } {
210 if { $outcome == "XFAIL" } {
211 xfail "$resultmsg"
212 } else {
213 fail "$resultmsg"
214 }
215 set failed 1
216 break
217 }
218 }
219 if { $failed } {
220 continue
221 } else {
222 if { $PRNUMS != "" } {
223 set PRNUMS " for $PRNUMS"
224 }
225 if { $outcome == "XFAIL" } {
226 xpass "$test$PRNUMS"
227 } else {
228 pass "$test$PRNUMS"
229 }
230 }
231 }
232 }
233 }
234
235 # This procedure provides an interface to check the TARGETS_TO_BUILD makefile
236 # variable to see if a particular target has been configured to build. This
237 # helps avoid running tests for targets that aren't available.
238 proc llvm_supports_target { tgtName } {
239 global TARGETS_TO_BUILD
240 foreach target [split $TARGETS_TO_BUILD] {
241 if { [regexp $tgtName $target match] } {
242 return 1
243 }
244 }
245 return 0
246 }
247
248 proc llvm_supports_darwin_and_target { tgtName } {
249 global target_triplet
250 if { [ llvm_supports_target $tgtName ] } {
251 if { [regexp darwin $target_triplet match] } {
252 return 1
253 }
254 }
255 return 0
256 }
257
258 # This procedure provides an interface to check the BINDINGS_TO_BUILD makefile
259 # variable to see if a particular binding has been configured to build.
260 proc llvm_supports_binding { name } {
261 global llvm_bindings
262 foreach item [split $llvm_bindings] {
263 if { [regexp $name $item match] } {
264 return 1
265 }
266 }
267 return 0
268 }
252252 libPath = os.path.join(os.path.dirname(for_path),
253253 'dg.exp')
254254 if not os.path.exists(libPath):
255 cfg.unsupported = True
256255 return
257256
258257 # Reset unsupported, in case we inherited it.
66 config.python_executable = "@PYTHON_EXECUTABLE@"
77 config.enable_shared = @ENABLE_SHARED@
88 config.enable_assertions = @ENABLE_ASSERTIONS@
9 config.targets_to_build = "@TARGETS_TO_BUILD@"
10 config.llvm_bindings = "@LLVM_BINDINGS@"
911
1012 # Support substitution of the tools_dir with user parameters. This is
1113 # used when we can't determine the tool dir at configuration time.