# Client-side JavaScript, DOM Core/HTML/Views, and Form Submission tests. # Currently only available inside netscape firewall. sub QATest { my ($test_name, $build_dir, $binary_dir, $args) = @_; my $binary_log = "$build_dir/$test_name.log"; my $url = "http://geckoqa.mcom.com/ngdriver/cgi-bin/ngdriver.cgi?findsuites=suites&tbox=1"; # Settle OS. system('/bin/sh -c "sync; sleep 5"'); my $rv; $rv = AliveTest("QATest_raw", $build_dir, [@$args, $url], $Settings::QATestTimeout); # XXXX testing. -mcafee $rv = 'success'; # Post-process log of test output. my $mode = "express"; open QATEST, "perl $build_dir/../qatest.pl $build_dir/QATest_raw.log $mode |" or die "Unable to run qatest.pl"; my $qatest_html = ""; while () { chomp; #$_ =~ s/\"/"/g; #### it doesn't like this line # $_ =~ s/\012//g; ### $_ =~ s/\s+\S/ /g; # compress whitespace. $qatest_html .= $_; } close QATEST; Util::print_log("\n"); # This works. #$qatest_html = "
 PassedFailedTotalDied% Passed% Failed
DHTML90901000
DOM VIEWS20201000
Total:1101101000
"; # Testing output open TEST_OUTPUT, ">qatest_out.log"; print TEST_OUTPUT $qatest_html; close TEST_OUTPUT; Util::print_log("TinderboxPrint:QA\n"); return $rv; # Hard-coded for now. } 1;