Author: baldrick Date: Mon Jul 23 10:23:35 2007 New Revision: 40437 URL: http://llvm.org/viewvc/llvm-project?rev=40437&view=rev Log: 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.
Modified: llvm/trunk/test/C++Frontend/2006-11-30-NoCompileUnit.cpp llvm/trunk/test/CodeGen/CBackend/2003-06-23-PromotedExprs.llx llvm/trunk/test/Feature/float.ll llvm/trunk/test/Feature/inlineasm.ll llvm/trunk/test/Feature/llvm2cpp.ll llvm/trunk/test/lib/llvm.exp Modified: llvm/trunk/test/C++Frontend/2006-11-30-NoCompileUnit.cpp URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/C%2B%2BFrontend/2006-11-30-NoCompileUnit.cpp?rev=40437&r1=40436&r2=40437&view=diff ============================================================================== --- llvm/trunk/test/C++Frontend/2006-11-30-NoCompileUnit.cpp (original) +++ llvm/trunk/test/C++Frontend/2006-11-30-NoCompileUnit.cpp Mon Jul 23 10:23:35 2007 @@ -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 Modified: llvm/trunk/test/CodeGen/CBackend/2003-06-23-PromotedExprs.llx URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/CBackend/2003-06-23-PromotedExprs.llx?rev=40437&r1=40436&r2=40437&view=diff ============================================================================== --- llvm/trunk/test/CodeGen/CBackend/2003-06-23-PromotedExprs.llx (original) +++ llvm/trunk/test/CodeGen/CBackend/2003-06-23-PromotedExprs.llx Mon Jul 23 10:23:35 2007 @@ -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 Modified: llvm/trunk/test/Feature/float.ll URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Feature/float.ll?rev=40437&r1=40436&r2=40437&view=diff ============================================================================== --- llvm/trunk/test/Feature/float.ll (original) +++ llvm/trunk/test/Feature/float.ll Mon Jul 23 10:23:35 2007 @@ -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 Modified: llvm/trunk/test/Feature/inlineasm.ll URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Feature/inlineasm.ll?rev=40437&r1=40436&r2=40437&view=diff ============================================================================== --- llvm/trunk/test/Feature/inlineasm.ll (original) +++ llvm/trunk/test/Feature/inlineasm.ll Mon Jul 23 10:23:35 2007 @@ -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" Modified: llvm/trunk/test/Feature/llvm2cpp.ll URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Feature/llvm2cpp.ll?rev=40437&r1=40436&r2=40437&view=diff ============================================================================== --- llvm/trunk/test/Feature/llvm2cpp.ll (original) +++ llvm/trunk/test/Feature/llvm2cpp.ll Mon Jul 23 10:23:35 2007 @@ -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] Modified: llvm/trunk/test/lib/llvm.exp URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lib/llvm.exp?rev=40437&r1=40436&r2=40437&view=diff ============================================================================== --- llvm/trunk/test/lib/llvm.exp (original) +++ llvm/trunk/test/lib/llvm.exp Mon Jul 23 10:23:35 2007 @@ -46,7 +46,6 @@ 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 @@ #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 @@ } file mkdir Output + cd Output foreach test $test_source_files { #Should figure out best way to set the timeout _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits