• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Here are some CGI scripts I was using to view and compare RTS style output.
2It will probably need a little more tweaking to be useful to LTP.
3
4Expectations:
5
6  A directory that contains all output.  It expects file names in the format
7
8  <host>.<ISO Date>.<suite>.<type>
9
10 	<host>		The hostname the tests were run on
11	<ISO Date>	ISO standard format date. i.e. YYYYmmDDHHMM
12	<suite>		The name of the pan file that was used
13	<type>		One of driver, scanner, or summary
14
15			driver - the raw output from pan with <<<test_end>>>
16			scanner - the output from scanner
17            summary - a very brief table listing how many tests passed,
18                      failed, didn't run, etc.  This wasn't released.
19
20Scripts:
21
22    results.cgi
23
24        This lists out all of the results that are the results directory.  It
25        provides links to the driver output, scanned results, and summary for
26        each suite.  The sort order is host, date, suite.  On the results
27        page, which looks at the .scanner files, there are links that extract
28        the test tag output from the .driver file.
29
30    browse.cgi
31
32        This is a more complex form that I started working on.  It allows you
33        to compare as many results as you want, side by side.  Also, I started
34        working on sorting the results different ways, but didn't get too far.
35        The side by side comparison is done with in reconsile.cgi
36
37    reconsile.cgi
38
39        This script compares multiple scanner files and shows the differences
40        side by side in a table.  It expects to find .scanner files for the
41        results it is comparing.
42
43Notes:
44
45    The driver I was using with these scripts collects some system information
46    before running the tests.  I use this information to display the `uname
47    -a` output in browse.cgi and reconsile.cgi.  You will be missing this
48    information, but the scripts should still run.
49
50    I apologize in advance for the use of Perl.  I've managed to steer clear
51    of Perl for five years until I started writing these scripts.  IMHO, the
52    people who learn programming with Perl write the ugliest code.  Luckily, I
53    learned programming mostly with Pascal.  Hopefully the code makes sense.
54
55
56--
57Nate Straz                                              nstraz@sgi.com
58sgi, inc                                           http://www.sgi.com/
59Linux Test Project                                  http://ltp.sf.net/
60