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