From 096a196a7d4eb4077f613587a6c97455ededb8ae Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Thu, 23 Aug 2001 04:59:55 +0000 Subject: [PATCH] Set MOZILLA_FIVE_HOME for each build loop. reduce sleep time to 10sec for performance tests. debug printouts. --- tools/tinderbox/build-seamonkey-util.pl | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/tools/tinderbox/build-seamonkey-util.pl b/tools/tinderbox/build-seamonkey-util.pl index 10e350316933..ccaeaae17eb1 100644 --- a/tools/tinderbox/build-seamonkey-util.pl +++ b/tools/tinderbox/build-seamonkey-util.pl @@ -18,7 +18,7 @@ use POSIX qw(sys_wait_h strftime); use Cwd; use File::Basename; # for basename(); use Config; # for $Config{sig_name} and $Config{sig_num} -$::UtilsVersion = '$Revision: 1.61 $ '; +$::UtilsVersion = '$Revision: 1.62 $ '; package TinderUtils; @@ -573,6 +573,9 @@ sub BuildIt { sleep $sleep_time; } $start_time = time(); + + # Set this each time, since post-mozilla.pl can reset this. + $ENV{MOZILLA_FIVE_HOME} = "$build_dir/${Settings::ObjDir}/mozilla/dist/bin"; my $cvsco = ''; if ($Settings::UseTimeStamp) { @@ -810,7 +813,7 @@ sub run_all_tests { # http://bugzilla.mozilla.org/show_bug.cgi?id=75073 if ($Settings::LayoutPerformanceTest and $test_result eq 'success') { # Settle OS. - run_system_cmd("sync; sleep 30", 35); + run_system_cmd("sync; sleep 10", 35); $test_result = AliveTest("LayoutPerformanceTest", $build_dir, $binary, @@ -820,9 +823,12 @@ sub run_all_tests { # Startup performance test. Time how fast it takes the browser # to start up. Some help from John Morrison to get this going. + # + # Needs user_pref("browser.dom.window.dump.enabled", 1); + # if ($Settings::StartupPerformanceTest and $test_result eq 'success') { # Settle OS. - run_system_cmd("sync; sleep 30", 35); + run_system_cmd("sync; sleep 10", 35); # Generate URL of form file:////startup-test.html?begin=986869495000 # Where begin value is current time. @@ -1152,6 +1158,11 @@ sub AliveTest { # Print out testname print_log "\n\nRunning $test_name test ...\n"; + # Debug + #print_log "\n\nbuild_dir = $build_dir ...\n"; + #print_log "\n\nbinary_dir = $binary_dir ...\n"; + #print_log "\n\nbinary = $binary ...\n"; + # Print out timeout. print_log "Timeout = $timeout_secs seconds.\n";