From 063e3ce2213b8aa74ab01437d05ed4b3fa48ecdb Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Thu, 16 Aug 2001 02:48:40 +0000 Subject: [PATCH] status reporting, turning tests on git-svn-id: svn://10.0.0.236/trunk@101169 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/tools/tinderbox/build-galeon.pl | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/mozilla/tools/tinderbox/build-galeon.pl b/mozilla/tools/tinderbox/build-galeon.pl index 4fb1f153d3b..f548b92a1f5 100644 --- a/mozilla/tools/tinderbox/build-galeon.pl +++ b/mozilla/tools/tinderbox/build-galeon.pl @@ -40,8 +40,8 @@ sub main { my $post_status = 'success'; # Success until we report a failure. my $status = 0; - my $galeon_alive_test = 0; - my $galeon_test8_test = 0; + my $galeon_alive_test = 1; + my $galeon_test8_test = 1; my $galeon_dir = "$mozilla_build_dir/galeon"; # Checkout/update the galeon code. @@ -57,17 +57,22 @@ sub main { chdir $galeon_dir; # Make sure we have a configure - unless (-e "configure") { + unless (-e "configure" and $post_status ne 'busted') { $status = TinderUtils::run_shell_command("./autogen.sh"); + } # Not sure how to only do this when we need to. # Force a configure for now. - $status = TinderUtils::run_shell_command("./configure --sysconfdir=/etc --with-mozilla-libs=$mozilla_build_dir/mozilla/dist/bin --with-mozilla-includes=$mozilla_build_dir/mozilla/dist/include --with-nspr-includes=$mozilla_build_dir/mozilla/dist/include/nspr --with-mozilla-home=$mozilla_build_dir/mozilla/dist/bin"); - - TinderUtils::DeleteBinary("$galeon_dir/src/galeon-bin"); - $status = TinderUtils::run_shell_command("gmake"); - + if ($status != 0) { + $status = TinderUtils::run_shell_command("./configure --sysconfdir=/etc --with-mozilla-libs=$mozilla_build_dir/mozilla/dist/bin --with-mozilla-includes=$mozilla_build_dir/mozilla/dist/include --with-nspr-includes=$mozilla_build_dir/mozilla/dist/include/nspr --with-mozilla-home=$mozilla_build_dir/mozilla/dist/bin"); + } + + if ($status != 0) { + TinderUtils::DeleteBinary("$galeon_dir/src/galeon-bin"); + $status = TinderUtils::run_shell_command("gmake"); + } + if ($status != 0) { $post_status = 'busted'; } elsif (not TinderUtils::BinaryExists("$galeon_dir/src/galeon-bin")) {