The Ada f-e produces various auxiliary output files

that cannot be suppressed and cannot be redirected:
they are dumped in the current working directory.
When running the testsuite this means that these
files do not end up in the Output directory.  The
best solution I could find is to change directory
into Output before running tests.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40437 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands 2007-07-23 15:23:35 +00:00
parent 1b4b25696b
commit 6c7ada4c58
6 changed files with 15 additions and 15 deletions

View File

@ -1,12 +1,12 @@
// This is a regression test on debug info to make sure we don't hit a compile
// unit size issue with gdb.
// RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \
// RUN: llc --disable-fp-elim -o Output/NoCompileUnit.s -f
// RUN: as Output/NoCompileUnit.s -o Output/NoCompileUnit.o
// RUN: g++ Output/NoCompileUnit.o -o Output/NoCompileUnit.exe
// RUN: llc --disable-fp-elim -o NoCompileUnit.s -f
// RUN: as NoCompileUnit.s -o NoCompileUnit.o
// RUN: g++ NoCompileUnit.o -o NoCompileUnit.exe
// RUN: echo {break main\nrun\np NoCompileUnit::pubname} > %t2
// RUN: gdb -q -batch -n -x %t2 Output/NoCompileUnit.exe | \
// RUN: tee Output/NoCompileUnit.out | not grep {"low == high"}
// RUN: gdb -q -batch -n -x %t2 NoCompileUnit.exe | \
// RUN: tee NoCompileUnit.out | not grep {"low == high"}
// XFAIL: alpha|ia64|arm

View File

@ -1,7 +1,7 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=c > %t1.cbe.c
; RUN: gcc -B/usr/bin/ %t1.cbe.c -o %t1.cbe
; RUN: %t1.cbe
; RUN: ./%t1.cbe
bool %doTest(ubyte %x) {
%dec.0 = add ubyte %x, 255

View File

@ -1,6 +1,6 @@
; RUN: llvm-upgrade < %s | llvm-as | llvm-dis > Output/t1.ll
; RUN: llvm-as Output/t1.ll -o - | llvm-dis > Output/t2.ll
; RUN: diff Output/t1.ll Output/t2.ll
; RUN: llvm-upgrade < %s | llvm-as | llvm-dis > t1.ll
; RUN: llvm-as t1.ll -o - | llvm-dis > t2.ll
; RUN: diff t1.ll t2.ll
%F1 = global float 0x4010000000000000
%D1 = global double 0x4010000000000000

View File

@ -1,7 +1,7 @@
; RUN: llvm-upgrade %s -o - | llvm-as -o /dev/null -f
; RUN: llvm-upgrade < %s | llvm-as | llvm-dis > Output/t1.ll
; RUN: llvm-as Output/t1.ll -o - | llvm-dis > Output/t2.ll
; RUN: diff Output/t1.ll Output/t2.ll
; RUN: llvm-upgrade < %s | llvm-as | llvm-dis > t1.ll
; RUN: llvm-as t1.ll -o - | llvm-dis > t2.ll
; RUN: diff t1.ll t2.ll
module asm "this is an inline asm block"

View File

@ -1,7 +1,7 @@
; RUN: llvm-as < %s | llvm-dis > %t1.ll
; RUN: llvm-as < %s | llvm2cpp -gen-program -o %t2.cpp - -f
; RUN: %link -o %t2.exe %t2.cpp -lLLVMCore -lLLVMSupport -lLLVMSystem -lstdc++
; RUN: %t2.exe > %t2.ll
; RUN: ./%t2.exe > %t2.ll
; RUN: diff %t1.ll %t2.ll
@X = global i32 4, align 16 ; <i32*> [#uses=0]

View File

@ -46,7 +46,6 @@ proc substitute { line test tmpFile } {
global llvmgcc llvmgxx llvmgcc_version llvmgccmajvers
global gccpath gxxpath compile_c compile_cxx link shlibext llvmlibsdir
set path [file join $srcdir $subdir]
set tmp [file join Output $tmpFile]
# Substitute all Tcl variables.
set new_line [subst $line ]
@ -72,7 +71,7 @@ proc substitute { line test tmpFile } {
#replace %s with filename
regsub -all {%s} $new_line $test new_line
#replace %t with temp filenames
regsub -all {%t} $new_line [file join Output $tmpFile] new_line
regsub -all {%t} $new_line $tmpFile new_line
#replace %% with %
regsub -all {%%} $new_line % new_line
return $new_line
@ -94,6 +93,7 @@ proc RunLLVMTests { test_source_files } {
}
file mkdir Output
cd Output
foreach test $test_source_files {
#Should figure out best way to set the timeout