From b6c811c77f4e1f92a8937beb13bdb3151fdfbeec Mon Sep 17 00:00:00 2001 From: "slamm%netscape.com" Date: Sat, 18 Dec 1999 03:51:43 +0000 Subject: [PATCH] Initial support for HDML (sprint phones). --- webtools/tinderbox/showbuilds.cgi | 42 ++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/webtools/tinderbox/showbuilds.cgi b/webtools/tinderbox/showbuilds.cgi index a52bbba2c6c..a24e79b6d7e 100755 --- a/webtools/tinderbox/showbuilds.cgi +++ b/webtools/tinderbox/showbuilds.cgi @@ -71,6 +71,7 @@ $rel_path = ''; &do_static, exit if $form{static}; &do_flash, exit if $form{flash}; &do_panel, exit if $form{panel}; +&do_hdml, exit if $form{hdml}; &do_tinderbox, exit; # end of main @@ -123,7 +124,8 @@ sub do_static { my @pages = ( ['index.html', 'do_tinderbox'], ['flash.rdf', 'do_flash'], - ['panel.html', 'do_panel'] ); + ['panel.html', 'do_panel'], + ['stats.hdml', 'do_hdml'] ); $rel_path = '../'; while (($key, $value) = each %images) { @@ -828,3 +830,41 @@ sub do_rdf { print "\n"; } +# This is for Sprint phones +sub do_hdml { + print "Content-type: text/hdml\n\n" unless $form{static}; + + print q{ + + + }; + %state_symbols = (success=>'+',busted=>'!',testfailed=>'~'); + + my @treelist = split /,/, $tree; + foreach my $t (@treelist) { + $bonsai_tree = ""; + require "$t/treedata.pl"; + if ($bonsai_tree ne "") { + my $state = tree_open() ? "Open" : "Close"; + print "$t is $state"; + } + my (%build, %times); + tb_loadquickparseinfo($t, \%build, \%times); + + foreach my $buildname (sort keys %build) { + print "$state_symbols{$build{$buildname}} $buildname\n"; + } + } + + print q{ + + + Legend:
+ + : Good Build
+ ! : Broken Build
+ ~ : Tests Failed +
+
+ }; + +}