Skip to content

Commit

Permalink
Parse modify directory in perfom html.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluhm committed Jun 17, 2024
1 parent 290ebab commit 1f69e56
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions perform-html.pl
Original file line number Diff line number Diff line change
Expand Up @@ -241,21 +241,28 @@ sub glob_result_files {
sub parse_result_files {
foreach my $result (@_) {
# parse result file
my ($release, $date, $short, $cvsdate, $repeat) = $result =~
my ($release, $date, $cvsdate, $patch, $modify, $repeat) = $result =~
m,
(?:(\d+\.\d)/)? # release
(([^/]+)T[^/]+Z)/ # date
([^/]+T[^/]+Z|patch-[^/]+\.\d+| # cvsdate or patch
(?:lro|nopf|notso|pfsync)\.\d+)/ # modify mode
([^/]+T[^/]+Z)/ # date
(?:([^/]+T[^/]+Z)/)? # cvsdate
(?:(patch-[^/]+\.\d+)/)? # patch
(?:(modify-[^/]+\.\d+)/)? # modify
(?:(\d+|btrace-[^/]+\.\d+)/)? # repeat or btrace
test.result # result file
,x or next;
next if ! $opts{n} && $cvsdate !~ /^.+T.+Z$/;
next if ! $opts{n} && (!$cvsdate || $patch || $modify);
print "." if $verbose;
my ($cvsshort, $repshort) = ($cvsdate, $repeat);
$cvsdate ||= "";
$cvsdate .= "/$patch" if $patch;
$cvsdate .= "/$modify" if $modify;
$cvsdate =~ s,^/,,;
my ($short, $cvsshort, $repshort) = ($date, $cvsdate, $repeat);
$short =~ s/T.+Z$//;
$cvsshort =~ s/T.+Z$//;
$cvsshort =~ s/^patch-(.*)\.\d+$/$1/;
$cvsshort =~ s/^(\w+)\.\d+$/$1/;
$cvsshort =~ s/patch-(.*)\.\d+$/$1/;
$cvsshort =~ s/modify-(.*)\.\d+$/$1/;
$cvsshort =~ s,/, ,g;
$repshort =~ s/^btrace-(.*)\.\d+$/$1/ if $repeat;
my $reldate = "$date";
$reldate = "$release/$reldate" if $release;
Expand Down Expand Up @@ -1227,7 +1234,7 @@ sub html_cvsdate_test_row {
for (my $i = 0; $i < $maxval; $i++) {
my $rp0 = $dv->{$cvsdates[0]}{repeats};
my $value0 = first { $_ }
map { my $cv = $vt->{$_}; $rp0 ?
map { my $cv = $vt->{$_}; $rp0 ?
map { ref($cv) eq 'HASH' && ref($cv->{$_}) eq 'ARRAY' ?
$cv->{$_}[$i] : () } @$rp0 :
(ref($cv) eq 'ARRAY' ? $cv->[$i] : ()) } @cvsdates;
Expand Down

0 comments on commit 1f69e56

Please sign in to comment.