summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorPatrick Jenkins <pjenkins@apple.com>2006-08-04 17:53:27 +0000
committerPatrick Jenkins <pjenkins@apple.com>2006-08-04 17:53:27 +0000
commitea103a86fac27cfa47d386049c8f562bf6e89185 (patch)
treede7a6b947a3ee2b31e5265bf2b2884f79eaa64d4 /utils
parent190a418bf6b49a4ef1c1980229a2f0d516e8a2cd (diff)
downloadllvm-ea103a86fac27cfa47d386049c8f562bf6e89185.tar.gz
llvm-ea103a86fac27cfa47d386049c8f562bf6e89185.tar.bz2
llvm-ea103a86fac27cfa47d386049c8f562bf6e89185.tar.xz
Encapsulated all of the print statements in "if( $VERBOSE) { }". The testing script will be absoutely silent now except for errors, which will still be printed to the annoyance of the user.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29525 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-xutils/NewNightlyTest.pl12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/NewNightlyTest.pl b/utils/NewNightlyTest.pl
index 13e966d7af..9fb8ff44dc 100755
--- a/utils/NewNightlyTest.pl
+++ b/utils/NewNightlyTest.pl
@@ -185,7 +185,7 @@ if ($CONFIGUREARGS !~ /--disable-jit/) {
}
-if (@ARGV != 0 and @ARGV != 3){
+if (@ARGV != 0 and @ARGV != 3 and $VERBOSE){
foreach $x (@ARGV){
print "$x\n";
}
@@ -376,7 +376,7 @@ sub GetDejagnuTestResults { # (filename, log)
my $firstline;
$/ = "\n"; #Make sure we're going line at a time.
- print "DEJAGNU TEST RESULTS:\n";
+ if( $VERBOSE) { print "DEJAGNU TEST RESULTS:\n"; }
if (open SRCHFILE, $filename) {
# Process test results
@@ -394,10 +394,10 @@ sub GetDejagnuTestResults { # (filename, log)
$first_list = 0;
$should_break = 1;
push(@lines, "$_\n");
- print " $_\n";
+ if( $VERBOSE) { print " $_\n"; }
} else {
push(@lines, "$_\n");
- print " $_\n";
+ if( $VERBOSE) { print " $_\n"; }
}
} #elsif ( m/Summary/ ) {
# if ( $first_list ) {
@@ -414,7 +414,7 @@ sub GetDejagnuTestResults { # (filename, log)
#}
elsif ( $readingsum ) {
push(@lines,"$_\n");
- print " $_\n";
+ if( $VERBOSE) { print " $_\n"; }
}
}
@@ -460,7 +460,7 @@ sub SendData{
$send.= "Content-length: $length\n\n";
$send.= "$content";
- print SOCK $send;
+ #print SOCK $send;
my $result;
while(<SOCK>){
$result .= $_;