The Ada f-e produces various auxiliary output files
authorDuncan Sands <baldrick@free.fr>
Mon, 23 Jul 2007 15:23:35 +0000 (15:23 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 23 Jul 2007 15:23:35 +0000 (15:23 +0000)
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

test/C++Frontend/2006-11-30-NoCompileUnit.cpp
test/CodeGen/CBackend/2003-06-23-PromotedExprs.llx
test/Feature/float.ll
test/Feature/inlineasm.ll
test/Feature/llvm2cpp.ll
test/lib/llvm.exp

index 993ceb484c72cb32cbb380169840575e88b9a794..4203ab1ad1c877040b9285b50b4776e84357b29b 100644 (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
 
 
index d7f8e56213478c21d5576275f7b1490bdcc8eee6..f49b98ca901522bf4cebf7a696cbb17f12b1a987 100644 (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
index 5a53c2c0a3b618932f79ac96b57ee33c37f47878..c1532eb0b330c2bdbcaf71237ad5495f367164de 100644 (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
index c8f59f24cf4d70e5ea14daa101bc41668f74fa36..fdb4657c672c886160c67afbae688c2e3495bebe 100644 (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"
index 4cfb66d2401d4b8004a55469717badc3f59dd8a1..88cfa3438094510bab0235313cf054814c27d172 100644 (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]
index a64692d23188a696a7b8f76ae07fa440b1d0e006..9a85a1c87ae7184a6abf053d83c16059a72e7116 100644 (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