rhelmer%mozilla.com d2ca8fb8a3 add tinderbox standalone tests, b=343899 r=davel
git-svn-id: svn://10.0.0.236/trunk@201833 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-10 19:24:43 +00:00

20 lines
626 B
Perl

sub Regxpcom {
#
# Before running tests, run regxpcom so that we don't crash when
# people change contractids on us (since we don't autoreg opt builds)
#
unlink("$binary_dir/components/compreg.dat") or warn "$binary_dir/components/compreg.dat not removed\n";
if($Settings::RegxpcomTest) {
my $args;
if ($Settings::BinaryName =~ /^(firefox|thunderbird)/) {
$args = [$binary, "-register"];
} else {
$args = ["$binary_dir/regxpcom"];
}
AliveTest("regxpcom", $binary_dir, $args,
$Settings::RegxpcomTestTimeout);
}
}
1;