mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-06 07:11:42 +00:00
Removed some dead code and hopefully fixed the issue where the total list of tests was not being sent
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29476 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eb577ba3b8
commit
d7210f9dba
@ -877,50 +877,6 @@ if(!$NODEJAGNU) {
|
||||
}
|
||||
}
|
||||
|
||||
# my ($TestsAdded, $TestsRemoved, $TestsFixed, $TestsBroken) = ("","","","");
|
||||
#
|
||||
# if ($TestError) {
|
||||
# $TestsAdded = "<b>error testing</b><br>";
|
||||
# $TestsRemoved = "<b>error testing</b><br>";
|
||||
# $TestsFixed = "<b>error testing</b><br>";
|
||||
# $TestsBroken = "<b>error testing</b><br>";
|
||||
# } else {
|
||||
# my ($RTestsAdded, $RTestsRemoved) = DiffFiles "-Tests.txt";
|
||||
#
|
||||
# my @RawTestsAddedArray = split '\n', $RTestsAdded;
|
||||
# my @RawTestsRemovedArray = split '\n', $RTestsRemoved;
|
||||
#
|
||||
# my %OldTests = map {GetRegex('TEST-....: (.+)', $_)=>$_}
|
||||
# @RawTestsRemovedArray;
|
||||
# my %NewTests = map {GetRegex('TEST-....: (.+)', $_)=>$_}
|
||||
# @RawTestsAddedArray;
|
||||
#
|
||||
# foreach $Test (keys %NewTests) {
|
||||
# if (!exists $OldTests{$Test}) { # TestAdded if in New but not old
|
||||
# $TestsAdded = "$TestsAdded$Test\n";
|
||||
# } else {
|
||||
# if ($OldTests{$Test} =~ /TEST-PASS/) { # Was the old one a pass?
|
||||
# $TestsBroken = "$TestsBroken$Test\n"; # New one must be a failure
|
||||
# } else {
|
||||
# $TestsFixed = "$TestsFixed$Test\n"; # No, new one is a pass.
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# foreach $Test (keys %OldTests) { # TestRemoved if in Old but not New
|
||||
# $TestsRemoved = "$TestsRemoved$Test\n" if (!exists $NewTests{$Test});
|
||||
# }
|
||||
#
|
||||
# #print "\nTESTS ADDED: \n\n$TestsAdded\n\n" if (length $TestsAdded);
|
||||
# #print "\nTESTS REMOVED:\n\n$TestsRemoved\n\n" if (length $TestsRemoved);
|
||||
# #print "\nTESTS FIXED: \n\n$TestsFixed\n\n" if (length $TestsFixed);
|
||||
# #print "\nTESTS BROKEN: \n\n$TestsBroken\n\n" if (length $TestsBroken);
|
||||
#
|
||||
# #$TestsAdded = AddPreTag $TestsAdded;
|
||||
# #$TestsRemoved = AddPreTag $TestsRemoved;
|
||||
# #$TestsFixed = AddPreTag $TestsFixed;
|
||||
# #$TestsBroken = AddPreTag $TestsBroken;
|
||||
# }
|
||||
|
||||
##############################################################
|
||||
#
|
||||
# If we built the tree successfully, runs of the Olden suite with
|
||||
@ -945,42 +901,7 @@ if (!$BuildError) {
|
||||
system "$MAKECMD -k $MAKEOPTS $PROGTESTOPTS report.nightly.csv.out TEST=nightly " .
|
||||
" LARGE_PROBLEM_SIZE=1 GET_STABLE_NUMBERS=1 > /dev/null 2>&1";
|
||||
system "cp report.nightly.csv $OldenTestsLog";
|
||||
} #else {
|
||||
#system "gunzip ${OldenTestsLog}.gz";
|
||||
#}
|
||||
|
||||
# Now we know we have $OldenTestsLog as the raw output file. Split
|
||||
# it up into records and read the useful information.
|
||||
#my @Records = split />>> ========= /, ReadFile "$OldenTestsLog";
|
||||
#shift @Records; # Delete the first (garbage) record
|
||||
|
||||
# Loop over all of the records, summarizing them into rows for the running
|
||||
# totals file.
|
||||
#my $WallTimeRE = "Time: ([0-9.]+) seconds \\([0-9.]+ wall clock";
|
||||
#foreach $Rec (@Records) {
|
||||
#my $rNATTime = GetRegex 'TEST-RESULT-nat-time: program\s*([.0-9m]+)', $Rec;
|
||||
#my $rCBETime = GetRegex 'TEST-RESULT-cbe-time: program\s*([.0-9m]+)', $Rec;
|
||||
#my $rLLCTime = GetRegex 'TEST-RESULT-llc-time: program\s*([.0-9m]+)', $Rec;
|
||||
#my $rJITTime = GetRegex 'TEST-RESULT-jit-time: program\s*([.0-9m]+)', $Rec;
|
||||
#my $rOptTime = GetRegex "TEST-RESULT-compile: .*$WallTimeRE", $Rec;
|
||||
#my $rBytecodeSize = GetRegex 'TEST-RESULT-compile: *([0-9]+)', $Rec;
|
||||
|
||||
#$NATTime .= " " . FormatTime($rNATTime);
|
||||
#$CBETime .= " " . FormatTime($rCBETime);
|
||||
#$LLCTime .= " " . FormatTime($rLLCTime);
|
||||
#$JITTime .= " " . FormatTime($rJITTime);
|
||||
#$OptTime .= " $rOptTime";
|
||||
#$BytecodeSize .= " $rBytecodeSize";
|
||||
#}
|
||||
#
|
||||
# Now that we have all of the numbers we want, add them to the running totals
|
||||
# files.
|
||||
#AddRecord($NATTime, "running_Olden_nat_time.txt", $WebDir);
|
||||
#AddRecord($CBETime, "running_Olden_cbe_time.txt", $WebDir);
|
||||
#AddRecord($LLCTime, "running_Olden_llc_time.txt", $WebDir);
|
||||
#AddRecord($JITTime, "running_Olden_jit_time.txt", $WebDir);
|
||||
#AddRecord($OptTime, "running_Olden_opt_time.txt", $WebDir);
|
||||
#AddRecord($BytecodeSize, "running_Olden_bytecode.txt", $WebDir);
|
||||
}
|
||||
}
|
||||
|
||||
##############################################################
|
||||
@ -1041,7 +962,7 @@ else{
|
||||
@GCC_VERSION = split '\n', $gcc_version_long;
|
||||
my $gcc_version = $GCC_VERSION[0];
|
||||
|
||||
$all_tests = ReadFile, "$Prefix-Tests.txt";
|
||||
my $all_tests = ReadFile, "$Prefix-Tests.txt";
|
||||
|
||||
##############################################################
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user