You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
(12) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(66) |
Feb
(7) |
Mar
(9) |
Apr
(14) |
May
|
Jun
(14) |
Jul
(18) |
Aug
(1) |
Sep
|
Oct
|
Nov
(4) |
Dec
|
2006 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Sebastien D. <sde...@us...> - 2006-02-06 15:28:34
|
Update of /cvsroot/tslogparser/tslogparser/admin/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28242/admin/modules Modified Files: opts.mod.php Log Message: fix for OPTS 1.5.1 Index: opts.mod.php =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/admin/modules/opts.mod.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- opts.mod.php 26 Jan 2005 17:48:52 -0000 1.6 +++ opts.mod.php 6 Feb 2006 15:28:25 -0000 1.7 @@ -247,6 +247,8 @@ { $opts_tree[$file][$file2]["assertions"]=$xmlparser->parse_assertions($path."/conformance/".$file."/".$file2."/assertions.xml"); } + if (!$opts_tree[$file][$file2]["assertions"]) + unset($opts_tree[$file][$file2]); } } } |
From: Sebastien D. <sde...@us...> - 2005-11-17 09:54:09
|
Update of /cvsroot/tslogparser/tslogparser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18720 Modified Files: HISTORY run-browse.php Log Message: Hide UNSUPPORTED and UNTESTED by default Index: run-browse.php =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/run-browse.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- run-browse.php 29 Jun 2005 14:39:42 -0000 1.8 +++ run-browse.php 17 Nov 2005 09:53:54 -0000 1.9 @@ -173,9 +173,11 @@ { echo " <form method='POST' action='report.php'>\n"; - /* default to masking PASS and SKIP status */ + /* default to masking PASS, SKIP, UNTESTED and UNSUPPORTED status */ echo " <input type='hidden' name='build_PASS' value='hidden'>\n"; echo " <input type='hidden' name='link_SKIP' value='hidden'>\n"; + echo " <input type='hidden' name='execution_UNTESTED' value='hidden'>\n"; + echo " <input type='hidden' name='execution_UNSUPPORTED' value='hidden'>\n"; echo " <input type='hidden' name='execution_PASS' value='hidden'>\n"; Index: HISTORY =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/HISTORY,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- HISTORY 16 Nov 2005 15:31:02 -0000 1.36 +++ HISTORY 17 Nov 2005 09:53:54 -0000 1.37 @@ -1,3 +1,6 @@ +2005-11-17: +- Changed run-browse.php to defaulting to hide UNSUPPORTED and UNTESTED status results. + 2005-11-14: - Fix in admin/modules/tahi.mod.php: renamed deldir() function. - Fix in admin/index.php: added new mime type (for .tgz files). |
From: Sebastien D. <sde...@us...> - 2005-11-16 15:31:10
|
Update of /cvsroot/tslogparser/tslogparser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4783 Modified Files: HISTORY Log Message: Updated HISTORY file Index: HISTORY =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/HISTORY,v retrieving revision 1.35 retrieving revision 1.36 diff -u -d -r1.35 -r1.36 --- HISTORY 13 Jul 2005 13:42:46 -0000 1.35 +++ HISTORY 16 Nov 2005 15:31:02 -0000 1.36 @@ -1,3 +1,7 @@ +2005-11-14: +- Fix in admin/modules/tahi.mod.php: renamed deldir() function. +- Fix in admin/index.php: added new mime type (for .tgz files). + 2005-07-13: - USAGE file updated. - new folder: contrib/. See contrib/README file for more information. |
From: Sebastien D. <sde...@us...> - 2005-11-14 13:18:19
|
Update of /cvsroot/tslogparser/tslogparser/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24151 Modified Files: index.php Log Message: quick fixes Index: index.php =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/admin/index.php,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- index.php 14 Jun 2005 13:30:31 -0000 1.15 +++ index.php 14 Nov 2005 13:17:46 -0000 1.16 @@ -180,6 +180,7 @@ } if (( $_FILES['tsarchive']['type'] != "application/x-gzip-compressed") && ($_FILES['tsarchive']['type'] != "application/x-tar") + && ($_FILES['tsarchive']['type'] != "application/x-compressed-tar") && ($_FILES['tsarchive']['type'] != "application/x-gzip")) { echo "<b>You have to supply the testsuite in a tar gzip'd format (got '".htmlentities($_FILES['tsarchive']['type'])."').</b>\n"; |
From: Sebastien D. <sde...@us...> - 2005-11-14 13:18:16
|
Update of /cvsroot/tslogparser/tslogparser/admin/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24151/modules Modified Files: tahi.mod.php Log Message: quick fixes Index: tahi.mod.php =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/admin/modules/tahi.mod.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- tahi.mod.php 11 Jul 2005 09:09:59 -0000 1.7 +++ tahi.mod.php 14 Nov 2005 13:17:46 -0000 1.8 @@ -218,7 +218,7 @@ } /* Recursively delete a directory with all its content */ -function deldir($dir) { +function deldir2($dir) { $dh=opendir($dir); while ($file=readdir($dh)) { if($file!="." && $file!="..") { @@ -226,7 +226,7 @@ if(!is_dir($fullpath)) { unlink($fullpath); } else { - deldir($fullpath); + deldir2($fullpath); } } } @@ -882,7 +882,7 @@ echo "$count results were inserted in the database.\n"; /* Delete the extracted tarball */ - deldir($tmpdir); + deldir2($tmpdir); return true; } |
From: Sebastien D. <sde...@us...> - 2005-08-01 13:17:32
|
Update of /cvsroot/tslogparser/tslogparser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31193 Modified Files: TODO Log Message: Updated TODO list Index: TODO =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/TODO,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- TODO 10 Jan 2005 18:09:51 -0000 1.3 +++ TODO 1 Aug 2005 13:17:22 -0000 1.4 @@ -1,19 +1,8 @@ Here is a list of future features: -(*) Runs statistics: -Show on the report.php page a summary of the displayed run(s). -This summary will show the number of PASSED, FAILED, ... tests. -In case there are several runs displayed, it will also show comparison -information (a matrix showing the # of differences for example). - (*) Filtering: On the report.php page, add the ability to filter the displayed content. --> Filter by test status: show/hide PASSED, show/hide INTERRUPTED, ... (done in BROWSE mode) -> Filter by function domain: show only TIMERS routines, show all, ... --> Filter by comparison status: show/hide common results, show/hide differences - -(*) Other testsuites support: -Add the support for LTP testsuite, eventually NFSv4 testsuites also. (*) Domains administration: Create an interface to definition/modification of the routine domains. @@ -22,3 +11,7 @@ -> flag public/private runs displaying. -> user-specific routines domains. +(*) More flexibility for modules writters on file uploads +Handle both plain text files and tar.gz files; and then pass the result to the +module. + |
From: Sebastien D. <sde...@us...> - 2005-07-13 13:42:55
|
Update of /cvsroot/tslogparser/tslogparser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13598 Modified Files: HISTORY USAGE Log Message: USAGE updated + contrib/ added Index: USAGE =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/USAGE,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- USAGE 26 Jan 2005 17:48:51 -0000 1.2 +++ USAGE 13 Jul 2005 13:42:46 -0000 1.3 @@ -26,13 +26,10 @@ The tool requires the test suite to be of a specific format. We will assume that you have a 'posixtestsuite-1.5.0' directory containing the testsuite. -(*) Rename the testsuite directory to 'ts': - mv posixtestsuite-1.5.0 ts (*) tar and gzip the directory. With GNU tar this is done with: - tar zcf ts.tar.gz ts/ + tar zcf ts.tar.gz posixtestsuite-1.5.0/ -Future releases may handle variable directory names -- but yet the 'ts' directory name -is mandatory. +Note: In releases before 0.6, the directory inside the archive had to be named 'ts'. -> Point your browser to the admin interface: @@ -89,6 +86,7 @@ as for example the command line options, kernel patchs, ... Log file : Browse to your log file and select it. The compression is not supported yet, so be sure to provide clear plain-text file. + (Note that some plug-ins can handle archives here) -> Press "Send" when you are done. This will upload your logfile to the server, then the file is parsed, information is displayed on the next page and if successful the @@ -119,14 +117,13 @@ -> Now you can see a list of testsuite releases and runs. -> Click "browse" to enter the detail of a particular run. -> Check the boxes of several runs and then click "Compare selected" at the bottom - to compare several runs. In the current version, only runs from the same TS release - can be compared -- this may change in future releases. + to compare several runs. --------------------- 4 - Browse and filter a logfile ----------------------- - When you click "browse" from the run-browse.pgp page, you enter the + When you click "browse" from the run-browse.php page, you enter the log browser interface. See previous section(s) if you cannot see a "browse" button. The browser interface contains several parts: @@ -135,7 +132,7 @@ Reload: Push this to reload the page, in case something went wrong at load time. (your browser 'Reload' facility may bother with POST data re-posting) Show logs / Hide logs: This will include each test log in the current page display. - When the logs are hidden, the "(log)" indicator is happened to the test case status + When the logs are hidden, the " (log)" indicator is added to the test case status to signal when a log message is available. When the logs are shown, an additionnal column in the table contains the log text when available. @@ -156,6 +153,8 @@ When you open the page, the default is to hide all PASSED and SKIP tests and show everything else. + + (*) The results. The table below shows the tests status list, testcase names, status, optionaly logs and assertions. You can click on a testcase status to get a full summary of this testcase result. @@ -165,11 +164,12 @@ --------------------- 5 - Compare logs ----------------------- From the browser page (http://localhost/tslogparser/) in case you have several runs -in a given TS release (or module in future versions) you are able to check some runs +in a given TS module (e.g. OPTS, TAHI, LTP...) you are able to check several runs and push the "Compare selected" button. There is no limitation on the number of selectable runs, but the machine memory. I would -suggest not to compare more than 3 runs but you just try and see your limitation. +suggest not to compare more than 5 runs but you just try and see the limit. (don't tell me +you're not curious!) Once you push "Compare Selected", you enter in the log comparator module. This module is very similar to the log browser, with small changes: @@ -183,7 +183,8 @@ (*) Statistics: For each test status, the number of testcases returning this status for each run is shown. - In the current version no filtering command is available here. + In the current version no filtering command is available here. (If you have requirements + or ideas, please send it on the mailing list!!) (*) The table. As in log browser mode, the table then shows for each testcase and each runs the status Index: HISTORY =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/HISTORY,v retrieving revision 1.34 retrieving revision 1.35 diff -u -d -r1.34 -r1.35 --- HISTORY 11 Jul 2005 09:09:59 -0000 1.34 +++ HISTORY 13 Jul 2005 13:42:46 -0000 1.35 @@ -1,3 +1,8 @@ +2005-07-13: +- USAGE file updated. +- new folder: contrib/. See contrib/README file for more information. + This folder will receive contributed modules (aka. plug-ins). + 2005-07-11: - Fix in admin/modules/tahi.mod.php for the "Fatal error: Non-static method tahi::deldir() cannot be called statically in |
From: Sebastien D. <sde...@us...> - 2005-07-13 13:42:55
|
Update of /cvsroot/tslogparser/tslogparser/contrib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13598/contrib Added Files: README Log Message: USAGE updated + contrib/ added --- NEW FILE: README --- This directory contains contributed modules (test suite format parsers) which are not maintained by a TSLogParser administrator. This modules may be useful to you, or not. You may direct discussions related to these modules either to the TSLogParser mailing-list, or to the author. Please don't mail the TSLogParser admins directly about these modules. Feel free to post the modules you may write to the mailing-list for inclusion. (And please pay attention to the module documentation, so someone else may be able to use it!!). The more modules there are, the better the tool will become ;) This is the great force of open-source ! (Ok, I need some vacation) |
From: Sebastien D. <sde...@us...> - 2005-07-13 13:35:46
|
Update of /cvsroot/tslogparser/tslogparser/contrib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9568/contrib Log Message: Directory /cvsroot/tslogparser/tslogparser/contrib added to the repository |
From: Sebastien D. <sde...@us...> - 2005-07-13 13:35:27
|
Update of /cvsroot/tslogparser/web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9286 Modified Files: features.php internals.php Log Message: Mise à jour Index: features.php =================================================================== RCS file: /cvsroot/tslogparser/web/features.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- features.php 9 Feb 2005 10:23:52 -0000 1.4 +++ features.php 13 Jul 2005 13:35:16 -0000 1.5 @@ -5,7 +5,7 @@ <table border='0' width='100%'> <tr> <td bgcolor="#90ACC8"> - <h2><font color="#fffffe"> Version 0.5</font></h2> + <h2><font color="#fffffe"> Version 0.7</font></h2> </td> </tr> <tr><td> </td></tr> @@ -16,6 +16,45 @@ <i>here</i></a>.</p> <p>Here is a list of new features from this release. See below for older features.</p> + <h3>New test suite format support: TAHI</h3> + <p>A new plug-in (to be considered in beta state) is available.</p> + <p>This plug-in allows parsing and displaying of TAHI Mobile IPv6 conformance tests + (both MN, CN and HA test suites). See <a href="http://www.tahi.org/mipv6/index.html"> + http://www.tahi.org/mipv6/index.html</a> for more information.</p> + <p> </p> + <h3>Comparison between different releases</h3> + <p>The compare module has been partly rewritten to allow comparison + between different releases of a same test suite.</p> + <p>This feature can introduce errors in analyzis, when a testcase has changed for + example. Anyway, some kind of error detections have been added and therefore, when + it is possible, the results will show that a problem exists.</p> + <p>The tests results of tests which are not available in all the releases involved, are + also displayed.</p> + + </td> + </tr> + <tr><td> </td></tr> + <tr> + <td bgcolor="#90ACC8"> + <h2><font color="#fffffe"> Version 0.6</font></h2> + </td> + </tr> + <tr><td> </td></tr> + <tr> + <td> + <h3>Stabilization release.</h3> + <p>This release contains only fixes, and can be considered as stable.</p> + </td> + </tr> + <tr><td> </td></tr> + <tr> + <td bgcolor="#90ACC8"> + <h2><font color="#fffffe"> Version 0.5</font></h2> + </td> + </tr> + <tr><td> </td></tr> + <tr> + <td> <h3>Testsuite upload facility</h3> <p>It is no more mandatory to have the testsuite files available from the webserver filesystem.</p> Index: internals.php =================================================================== RCS file: /cvsroot/tslogparser/web/internals.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- internals.php 12 Jan 2005 15:49:02 -0000 1.3 +++ internals.php 13 Jul 2005 13:35:16 -0000 1.4 @@ -52,7 +52,8 @@ files. Each plug-in provides the functions to add a new testsuite, delete a testsuite, add a new run and delete a run. See source file modules.inc.php for more - information on this.</p> + information on this. You will also find a lot of useful information + in the admin/modules/new.mod.php.template file.</p> <p> </p> <h3>Database System Specifics Module</h3> <p>This module aims to provide a simple abstraction layer |
From: Sebastien D. <sde...@us...> - 2005-07-11 09:10:08
|
Update of /cvsroot/tslogparser/tslogparser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5890 Modified Files: HISTORY Log Message: Fix in tahi.mod.php Index: HISTORY =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/HISTORY,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- HISTORY 5 Jul 2005 14:08:19 -0000 1.33 +++ HISTORY 11 Jul 2005 09:09:59 -0000 1.34 @@ -1,3 +1,8 @@ +2005-07-11: +- Fix in admin/modules/tahi.mod.php for the + "Fatal error: Non-static method tahi::deldir() cannot be called statically in + .../tslogparser/admin/modules/tahi.mod.php on line 882" error. + 2005-07-05: tag v07 - New file: admin/modules/new.mod.php.template This file is meant to serve as a base for people wanting to contribute |
From: Sebastien D. <sde...@us...> - 2005-07-11 09:10:08
|
Update of /cvsroot/tslogparser/tslogparser/admin/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5890/admin/modules Modified Files: tahi.mod.php Log Message: Fix in tahi.mod.php Index: tahi.mod.php =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/admin/modules/tahi.mod.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- tahi.mod.php 6 Jul 2005 06:46:09 -0000 1.6 +++ tahi.mod.php 11 Jul 2005 09:09:59 -0000 1.7 @@ -217,6 +217,24 @@ return TRUE; } +/* Recursively delete a directory with all its content */ +function deldir($dir) { + $dh=opendir($dir); + while ($file=readdir($dh)) { + if($file!="." && $file!="..") { + $fullpath=$dir."/".$file; + if(!is_dir($fullpath)) { + unlink($fullpath); + } else { + deldir($fullpath); + } + } + } + closedir($dh); + rmdir($dir); +} + + class tahi { /* @@ -864,22 +882,6 @@ echo "$count results were inserted in the database.\n"; /* Delete the extracted tarball */ - function deldir($dir) { - $dh=opendir($dir); - while ($file=readdir($dh)) { - if($file!="." && $file!="..") { - $fullpath=$dir."/".$file; - if(!is_dir($fullpath)) { - unlink($fullpath); - } else { - deldir($fullpath); - } - } - } - closedir($dh); - rmdir($dir); - } - deldir($tmpdir); return true; |
From: Sebastien D. <sde...@us...> - 2005-07-06 11:51:57
|
Update of /cvsroot/tslogparser/tslogparser/package In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23481/package Modified Files: tslogparser.spec Log Message: Index: tslogparser.spec =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/package/tslogparser.spec,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- tslogparser.spec 5 Jul 2005 14:08:20 -0000 1.11 +++ tslogparser.spec 6 Jul 2005 11:51:45 -0000 1.12 @@ -8,7 +8,7 @@ %define name tslogparser %define version 0.7 -%define release 3 +%define release 4 %define filename tslogparser-v07 %define requirements httpd mysql-server php php-mysql |
From: Sebastien D. <sde...@us...> - 2005-07-06 11:51:57
|
Update of /cvsroot/tslogparser/tslogparser/admin/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23481/admin/modules Modified Files: new.mod.php.template Log Message: Index: new.mod.php.template =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/admin/modules/new.mod.php.template,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- new.mod.php.template 6 Jul 2005 09:12:09 -0000 1.2 +++ new.mod.php.template 6 Jul 2005 11:51:44 -0000 1.3 @@ -198,7 +198,7 @@ } if ($parent->debug > 1) - print_r($missing_category); + print_r($missing_routines); /* If any routine is missing, it must be added previously to further processing */ if ($missing_routines) |
From: Sebastien D. <sde...@us...> - 2005-07-06 09:12:20
|
Update of /cvsroot/tslogparser/tslogparser/admin/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7443 Modified Files: new.mod.php.template Log Message: Index: new.mod.php.template =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/admin/modules/new.mod.php.template,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- new.mod.php.template 5 Jul 2005 09:14:40 -0000 1.1 +++ new.mod.php.template 6 Jul 2005 09:12:09 -0000 1.2 @@ -81,6 +81,7 @@ */ function TS_parse(&$parent, $TS_name, $TS_description, $path) { + /* The next variable is set in file admin/modules.inc.php */ if ( $parent->debug ) echo "tahi->TS_parse($TS_name, $TS_description, $path)\n"; @@ -619,4 +620,4 @@ /* Return the class name so it is added to the catalog */ return("newmodule"); -?> \ No newline at end of file +?> |
From: Sebastien D. <sde...@us...> - 2005-07-06 06:46:23
|
Update of /cvsroot/tslogparser/tslogparser/admin/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3455 Modified Files: tahi.mod.php Log Message: Fix Index: tahi.mod.php =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/admin/modules/tahi.mod.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- tahi.mod.php 5 Jul 2005 09:47:51 -0000 1.5 +++ tahi.mod.php 6 Jul 2005 06:46:09 -0000 1.6 @@ -236,7 +236,7 @@ $text.= "<li>One may need to increase the <b>upload_max_filesize</b>"; $text.= " and <b>post_max_size</b> values in /etc/php.ini.\n"; $text.= "<li>For the HA tests, the TS archive cannot be parsed directly, "; - $text.= "one need to build the INDEX file previously to uploading.\n " + $text.= "one need to build the INDEX file previously to uploading.\n "; $text.= "<li>Tested with :<ul>\n"; $text.= "<li>ct-mipv6-cn-3.1.2.tar.gz ct-mipv6-cn-3.1.5.tar.gz\n"; $text.= "<li>ct-mipv6-ha-3.1.2.tar.gz, ct-mipv6-ha-3.1.4.tar.gz\n"; |
From: Sebastien D. <sde...@us...> - 2005-07-05 14:22:50
|
Update of /cvsroot/tslogparser/web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13823 Modified Files: downloads.php Log Message: release 07 Index: downloads.php =================================================================== RCS file: /cvsroot/tslogparser/web/downloads.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- downloads.php 14 Mar 2005 16:56:21 -0000 1.5 +++ downloads.php 5 Jul 2005 14:22:41 -0000 1.6 @@ -11,7 +11,7 @@ <tr><td> </td></tr> <tr> <td> - <p>The latest stable release is <b>0.6</b> (Mar 14, 2005).</p> + <p>The latest stable release is <b>0.7</b> (Jul 05, 2005).</p> <p>It can be downloaded from <a href="http://sourceforge.net/project/showfiles.php?group_id=124567"> this place (SourceForge.net)</a>.</p> |
From: Sebastien D. <sde...@us...> - 2005-07-05 14:08:33
|
Update of /cvsroot/tslogparser/tslogparser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7478 Modified Files: HISTORY Log Message: release v07 Index: HISTORY =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/HISTORY,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- HISTORY 5 Jul 2005 09:47:51 -0000 1.32 +++ HISTORY 5 Jul 2005 14:08:19 -0000 1.33 @@ -1,9 +1,10 @@ -2005-07-05: +2005-07-05: tag v07 - New file: admin/modules/new.mod.php.template This file is meant to serve as a base for people wanting to contribute a new plug-in module. Instructions are inside the file comments. - admin/modules/tahi.mod.php: information added about needed configuration and usage. The module is now version 1.0. +- packages/tslogparser.spec: Added requirements on some modules. 2005-07-04: - Fix in report.php for comparison between different releases. |
From: Sebastien D. <sde...@us...> - 2005-07-05 14:08:33
|
Update of /cvsroot/tslogparser/tslogparser/package In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7478/package Modified Files: tslogparser.spec Log Message: release v07 Index: tslogparser.spec =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/package/tslogparser.spec,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- tslogparser.spec 14 Jun 2005 13:11:34 -0000 1.10 +++ tslogparser.spec 5 Jul 2005 14:08:20 -0000 1.11 @@ -8,9 +8,11 @@ %define name tslogparser %define version 0.7 -%define release 1 +%define release 3 %define filename tslogparser-v07 +%define requirements httpd mysql-server php php-mysql + %define tslp_user tslogparser %define tslp_group tslogparser @@ -18,15 +20,17 @@ %define path_conf /etc %define path_httpd_conf /etc/httpd/conf.d +# General information about this module. Summary: Web interface wrapper for test suites runs logfiles. Name: %{name} Version: %{version} Release: %{release} -Copyright: GPL +License: GPL Group: Development/Tools Source: %{filename}.tar.gz BuildRoot: /tmp/tslp Url: http://tslogparser.sourceforge.net +Requires: %{requirements} %description The %{name} tool is a php/MySQL interface to store and browse some @@ -82,7 +86,7 @@ %files %defattr(-,%{tslp_user},%{tslp_group}) -%doc FAQ HISTORY INSTALL LICENCE README TODO USAGE admin/modules/readme.txt admin/modules/ltp.mod.php.example +%doc FAQ HISTORY INSTALL LICENCE README TODO USAGE admin/modules/readme.txt admin/modules/ltp.mod.php.example admin/modules/new.mod.php.template %attr(0440,root,root) %config %{path_httpd_conf}/tslogparser.conf %config %{path_conf}/tslogparser.conf.php @@ -91,6 +95,10 @@ # The version changes do not appear here %changelog +* Tue Jul 05 2005 Sebastien Decugis <seb...@ex...> +- Added file new.mod.php.template to the doc files list. +- Added dependencies on httpd, mysqld and php modules. + * Mon Feb 07 2005 Sebastien Decugis <seb...@ex...> - Changed 'ts' directory rights to '0777' to allow upload in this directory. |
From: Sebastien D. <sde...@us...> - 2005-07-05 09:48:03
|
Update of /cvsroot/tslogparser/tslogparser/admin/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11531/admin/modules Modified Files: tahi.mod.php Log Message: tahi module released Index: tahi.mod.php =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/admin/modules/tahi.mod.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- tahi.mod.php 14 Jun 2005 13:11:34 -0000 1.4 +++ tahi.mod.php 5 Jul 2005 09:47:51 -0000 1.5 @@ -17,10 +17,7 @@ */ /* This module is for use with the TAHI Conformance Test Suite. - It has been tested against the IPv6 Mobility test suite results: - ct-mipv6-cn-3.1.2.tar.gz - ct-mipv6-ha-3.1.2.tar.gz - ct-mipv6-mn-3.1.1.tar.gz + See the module informations (module_info) for limitations. */ @@ -233,13 +230,17 @@ $title = "<b>TAHI Conformance Test Suite</b> parser module for <b>TSLogParser</b>"; $text = "<p>$title</p>\n"; - $text.= "<p>Release: <b>0.1</b> 2005/06/10</p>\n"; + $text.= "<p>Release: <b>1.0</b> 2005/07/05</p>\n"; $text.= "<p>Limitations and known problems: \n"; - $text.= "<ul>\n<li>Under development\n"; - $text.= "<li>Tested only with :<ul>\n"; - $text.= "<li>ct-mipv6-cn-3.1.2.tar.gz\n"; - $text.= "<li>ct-mipv6-ha-3.1.2.tar.gz\n"; - $text.= "<li>ct-mipv6-mn-3.1.1.tar.gz</ul>\n"; + $text.= "<ul>\n"; + $text.= "<li>One may need to increase the <b>upload_max_filesize</b>"; + $text.= " and <b>post_max_size</b> values in /etc/php.ini.\n"; + $text.= "<li>For the HA tests, the TS archive cannot be parsed directly, "; + $text.= "one need to build the INDEX file previously to uploading.\n " + $text.= "<li>Tested with :<ul>\n"; + $text.= "<li>ct-mipv6-cn-3.1.2.tar.gz ct-mipv6-cn-3.1.5.tar.gz\n"; + $text.= "<li>ct-mipv6-ha-3.1.2.tar.gz, ct-mipv6-ha-3.1.4.tar.gz\n"; + $text.= "<li>ct-mipv6-mn-3.1.1.tar.gz, t-mipv6-mn-3.1.4.tar.gz</ul>\n"; $text.= "</ul></p>\n"; $text.= "<p>See the <a href='http://www.tahi.org/mipv6/index.html'>test suite homepage</a> for more information.</p>\n"; |
From: Sebastien D. <sde...@us...> - 2005-07-05 09:48:00
|
Update of /cvsroot/tslogparser/tslogparser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11531 Modified Files: HISTORY Log Message: tahi module released Index: HISTORY =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/HISTORY,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- HISTORY 5 Jul 2005 09:14:40 -0000 1.31 +++ HISTORY 5 Jul 2005 09:47:51 -0000 1.32 @@ -2,6 +2,8 @@ - New file: admin/modules/new.mod.php.template This file is meant to serve as a base for people wanting to contribute a new plug-in module. Instructions are inside the file comments. +- admin/modules/tahi.mod.php: information added about needed configuration + and usage. The module is now version 1.0. 2005-07-04: - Fix in report.php for comparison between different releases. |
From: Sebastien D. <sde...@us...> - 2005-07-05 09:14:51
|
Update of /cvsroot/tslogparser/tslogparser/admin/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27424/admin/modules Added Files: new.mod.php.template Log Message: New template for plug-ins --- NEW FILE: new.mod.php.template --- <?php /* * Copyright (c) 2005, Bull S.A.. All rights reserved. * Created by: Sebastien Decugis * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it would be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * You should have received a copy of the GNU General Public License along * with this program; if not, write the Free Software Foundation, Inc., 59 * Temple Place - Suite 330, Boston MA 02111-1307, USA. */ /* This module can serve as a base for any new module. * It contains the code which will be common to almost all plug-ins. * * Please read the comments carefully to write a new module. */ /* Class name: (here 'newmodule') should be replaced with the name of your module, which will appear everywhere later. double check that this name is the same as at the end of this file (return 'newmodule'). */ class newmodule { function module_info($what="") { /* This routine only returns information about the module. It can contain the version number, information about the author or link to a website. The information is accessed from the interface through: administration -> (this module) about button */ $title = "<b>New</b> parser module for <b>TSLogParser</b>"; $text = "<p>$title</p>\n"; $text.= "<p>Release: <b>0.0</b> 2004/12/31</p>\n"; $text.= "<p>Limitations and known problems: \n"; $text.= "<ul>\n<li>This module is a template for plug-ins; no function is working yet\n"; $text.= "</li></ul></p>\n"; $text.= "<p>See the <a href='http://tslogparser.sourceforge.net/'>homepage</a> for more information.</p>\n"; if ($what == "title") return $title; return $text; } /* The next function is in charge of saving a test suite description (not a logfile!) into the database. The inputs are: $TS_name and $TS_description: information about the release being added. $path: path on the local filesystem where the tarball has been unzipped. The outputs are: In the database, the following tables should be impacted: opts_routines, opts_assertions, opts_versions, opts_version_descriptions More precisely: opts_version receives 1 entry with the $TS_name and $TS_description information. opts_routines and opts_assertions allows to create a hierarchy of the tests opts_version_description receives as many entries as the number of test cases in the test suite. As an example, you can have: the routine pthread_create (in opts_routines) contains 3 assertions (in opts_assertions). The second assertion ('the function creates a thread') contains 4 testcases (in opts_version_description). A good pratice when adding new releases is to check that the routines or assertions are not already in the database, and add only the new ones. On the other hand, when adding a new release, you'll have always new entries in opts_version_description and opts_versions. */ function TS_parse(&$parent, $TS_name, $TS_description, $path) { if ( $parent->debug ) echo "tahi->TS_parse($TS_name, $TS_description, $path)\n"; /* Check that the uploaded file (already untarred) is readable */ if (!is_dir($path) || !($dh = opendir($path))) { $parent->last_error="Directory '$path' is not readable -- check your archive format.\n"; return FALSE; } /* Check this archive contains a correct testsuite. It can for example check that a particular file exists, or a certain structure on which this parser relies. At the same time, one can parse the files and save the tests information (with hierarchy data depending on how you will fit into the routines / assertions / tests model) This is what we call here $NEW_TS. The recommended format (you're free to follow this or not) is: $NEW_TS = array( "routine1" => array ( "routine_comment" => [comment on this routine, extracted from the Test Suite] "assertions" => array( array ( "text" => [text of first assertion] "number" => [id of this assertion] "tests" => array( 1 => [filename of 1st test], 2 => [filename of 2nd test] ) ) array ( "text" => [text of second assertion] "number" => [id of this assertion] "tests" => array( 1 => [filename of 1st test] ) ) ) "routine2" => array ( "routine_comment" => [comment on this routine, extracted from the Test Suite] ... ) ) */ while (($file = readdir($dh)) !== false) { /* ... (check format and then create $NEW_TS) */ } /* If the format was not correct, return an error. For example: */ if (!$format_is_correct) { $parent->last_error="Directory '$path' does not contain a valid test suite -- unable to parse.\n"; return FALSE; } /* The next one is usefull when debugging this function ;) */ if ($parent->debug > 2) print_r($NEW_TS); /* The database shall be initialized here */ if (!is_db_init()) { $parent->last_error="Database was not initialized\n"; return FALSE; } /* Check no release with the same name already exists */ $releases=query_version($TS_name, 1); if ($releases) { $parent->last_error= "The release '$TS_name' is already in the database \n". "<i>(".stringFromDB($releases[$TS_name]["ver_comment"]).")</i>\n"; return FALSE; } /* Ok, here we have checked everything, we should be able to add the testsuite from now on. */ /* First step is to create the list of entries to be added into opts_routines */ $current_routines=query_routines(); /* We start with looking for missing routines */ $missing_routines=array(); /* browse the new release data and find the missing elements */ foreach ($NEW_TS as $routine => $routine_data) { /* If the routine is missing from opts_routines table, we'll add it */ if (!isset($current_routines[$routine])) $missing_routines[]=$routine; else /* check the routine was not renamed from the previous entered version */ /* Here, $routine_data is what we analyzed during the testsuite parsing, and $current_routines come from the database (parsing of previous releases) */ if ($routine_data["routine_comment"] != $current_routines[$routine]["routine_comment"]) { echo "Inconsistency found for routine <b>$routine</b><br>\n"; echo "Old comment: ".$current_routines[$routine]["routine_comment"]."<br>\n"; echo "New comment: ".$routine_data["routine_comment"]."\n"; $parent->last_error= "Unable to add $routine to the database\n"; return FALSE; } } if ($parent->debug > 1) print_r($missing_category); /* If any routine is missing, it must be added previously to further processing */ if ($missing_routines) { echo "New routines are being added to the database...\n"; $counter=0; foreach ($missing_routines as $routine) { $sql = "INSERT INTO opts_routines ( rou_name, rou_comment ) " ."VALUES ( ".stringToDB($routine)."," .stringToDB($NEW_TS[$routine]["routine_comment"])." )"; if ($parent->debug > 1) echo htmlentities($sql)."<br>\n"; if (db_execute_insert($sql)) $counter++; else echo "Failed to add $routine to the database...\n"; } echo "Done. <b>$counter</b> categories have been added.\n\n"; $current_routines=query_routines(); } /* Same thing about assertions */ $current_assertions=query_all_asserts(); $missing_assertions=array(); /* Check for existing tests */ foreach ($NEW_TS as $routine => $routine_data) { if (!isset($current_assertions[$routine])) { if (!isset($current_routines[$routine])) { $parent->last_error="Internal script error: routine $routine was not added in 1st pass"; return FALSE; } /* We now schedule addition of these assertions for this routine, as none was already defined */ foreach ($routine_data["assertions"] as $assert_data) { $missing_assertions[]=array( "routine"=>$routine, "assertion"=>&$assert_data["text"], "id" => $assert_data["number"]); } } else /* some assertions were already defined in this routine */ { foreach ($routine_data["assertions"] as $assert_data) { /* Check if this assertion content was already in the database */ if(!in_array($assert_data["text"], $current_assertions[$routine])) $missing_assertions[]=array( "routine"=>$routine, "assertion"=>&$assert_data["text"], "id" => $assert_data["number"]); } } } if ($parent->debug > 1) print_r($missing_assertions); /* If any assertion is missing, it must be added previously to further processing */ if ($missing_assertions) { echo "New assertions are being added to the database...\n"; $counter=0; foreach ($missing_assertions as $assert_data) { $sql = "INSERT INTO opts_assertions ( assert_routine, assert_text ) " ."VALUES ( ".$current_routines[$assert_data["routine"]]["routine_id"]."," .stringToDB($assert_data["assertion"])." )"; if ($parent->debug > 1) echo htmlentities($sql)."<br>\n"; if (db_execute_insert($sql)) $counter++; else echo "Failed to add assertion ".$assert_data["id"]." of routine ".$assert_data["routine"]." to the database...\n"; } echo "Done. <b>$counter</b> tests have been added.\n\n"; $current_assertions=query_all_asserts(); } if ($parent->debug > 2) print_r($current_assertions); /* Now we can create the release description in database */ $sql="INSERT INTO opts_versions (ver_name, ver_comment, ver_module) " . "VALUES ( ".stringToDB($TS_name).", " . stringToDB($TS_description).", " . stringToDB("newmodule") ." )"; @/* @@@ Don't forget to change the module name here! */ if ($parent->debug > 1) echo htmlentities($sql)."<br>\n"; if (!db_execute_insert($sql)) { $parent->last_error= "Failed to insert new version in the database\n"; return FALSE; } /* We retrieve the new release uniqueID */ $releases=query_version($TS_name, 1); if (!$releases) { $parent->last_error= "Internal error: the new version was not created\n"; return FALSE; } reset($releases); $rlstmp=current($releases); $release_id=$rlstmp["ver_id"]; /* We can create the full release description */ $release_description = array(); foreach ($NEW_TS as $routine => $rou_data) { if (!isset($current_routines[$routine]) || !isset($current_assertions[$routine])) { $parent->last_error= "Internal script error: routine $routine was not added in 1st pass"; return FALSE; } foreach ($rou_data["assertions"] as $assert_id => $assert_data) { foreach ($assert_data["tests"] as $test_number => $testname) { $release_description[]=array( "descr_assert" => array_search($assert_data["text"], $current_assertions[$routine]), "descr_num_assert" => $assert_data["number"], "descr_num_test" => $test_number, "descr_info" => $testname); } /* free some memory */ unset($rou_data["assertions"][$assert_id]); } } $counter=0; foreach ($release_description as $testcase) { $sql = "INSERT INTO opts_version_descriptions " ." (descr_version, descr_assert, descr_num_assert, descr_num_test, descr_info)" ." VALUES (".$release_id.", " .$testcase["descr_assert"].", " .$testcase["descr_num_assert"].", " .$testcase["descr_num_test"].", " .stringToDB($testcase["descr_info"])." )"; if ($parent->debug > 1) echo htmlentities($sql)."<br>\n"; if (db_execute_insert($sql)) $counter++; else echo "Failed to execute: ".htmlentities($sql)."\n"; } echo "<b><i>$counter testcases have been added</i></b>\n\n"; echo "Process terminated.\n"; return TRUE; } /* The next function is quite generic, but one may need additionnal cleanups. */ function TS_delete(&$parent, $TS_id) { if ( $parent->debug ) echo "newmodule->TS_delete($TS_id)\n"; /* Check there is no run within this testsuite */ $sql = "SELECT * from opts_run_results, opts_version_descriptions" ." WHERE res_testcase=descr_id" ." AND descr_version=".$TS_id; if ($parent->debug > 1) echo htmlentities($sql)."<br>\n"; $tmp = db_execute_select($sql); if ($tmp) { $parent->last_error="The testsuite contains runs -- cannot be deleted.\n Delete the runs first.\n"; return FALSE; } /* Check the testsuite is a newmodule one */ $sql = "SELECT ver_module from opts_versions" ." WHERE ver_id=".$TS_id; if ($parent->debug > 1) echo htmlentities($sql)."<br>\n"; $tmp = db_execute_select($sql); if (!$tmp) { $parent->last_error="The testsuite cannot be found in the database.\n"; return FALSE; } if ($tmp[0]["ver_module"] != "newmodule") @ /* @@@ Don't forget to change the module name here */ { $parent->last_error="The testsuite is not the right format -- cannot be deleted within the current module.\n"; return FALSE; } /* Now, delete the testsuite description */ $sql = "DELETE from opts_version_descriptions" ." WHERE descr_version=".$TS_id; if ($parent->debug > 1) echo htmlentities($sql)."<br>\n"; $tmp = db_execute_insert($sql); echo "$tmp rows deleted from opts_version_descriptions<br>\n"; /* and the testsuite name */ $sql = "DELETE from opts_versions" ." WHERE ver_id=".$TS_id; if ($parent->debug > 1) echo htmlentities($sql)."<br>\n"; $tmp = db_execute_insert($sql); if ($tmp == 0) { $parent->last_error="No row deleted in opts_version\n"; return FALSE; } if ($parent->debug > 1) echo "$tmp rows deleted from opts_version<br>\n"; return true; } /* The next function will parse a run log file and save the content to the database. The inputs are: $RUN_name and $RUN_description: information about the run being added. $TS_id: id (in database) of the release this runs belongs to. $CONTENT: This is a string containing the full content of the uploaded file. NOTE: if the uploaded results have a more complicated structure, you can access the raw file with $_FILES['logfile']['tmp_name'] -- see tahi module for example of a tar.gz result file. The outputs are: In the database, the following tables have new entries: opts_run, opts_run_results More precisely: opts_run has an entry added with the $RUN_name and $RUN_description values. opts_run_results has receives as many entries as the number of results in the logfile. Each entry references a testcase from opts_version_description. */ function RUN_parse(&$parent, $RUN_name, $RUN_description, $TS_id, $CONTENT) { if ( $parent->debug ) echo "newmodule->RUN_parse($RUN_name, $RUN_description, $TS_id, ...".strlen($CONTENT)."c...)\n"; /* Check this TS id first */ $sql = "SELECT ver_id, ver_name, ver_comment, ver_module FROM opts_versions WHERE ver_id=$TS_id"; if ($parent->debug > 1) echo htmlentities($sql)."<br>\n"; $release = db_execute_select($sql); if (!$release) { $parent->last_error="The provided testsuite ID was not found in database\n"; return false; } if ($release[0]["ver_module"] != "newmodule") @ /* @@@ Change the module name here */ { $parent->last_error="This testsuite's ID is not of the correct type. Aborted.\n"; return false; } /* Check that run name is free */ $sql = "SELECT run_id, run_name, run_comments FROM opts_run WHERE run_name LIKE ".stringToDB($RUN_name); if ($parent->debug > 1) echo htmlentities($sql)."<br>\n"; $res = db_execute_select($sql); if ($res) { $elem=$res[0]; $parent->last_error ="The test run '$RUN_name' is already in the database\n"; $parent->last_error.="<i>".stringFromDB($elem["run_comments"])."</i>\n"; return false; } /* * Now, parse the results. * Here is the 'intelligent' part of the work... * and no template can be provided... * The goal is to get an array of the results with the following format: $RESULTS = array( [descr_id] => array( "status" => [status of the corresponding testcase (i.e. PASSED, FAILED, ...)], "log" => [messages associated with this result] ) [descr_id] => ... * To get this, one may for example: -> parse the logfile with a perl regular expression => this gives a "flat" array of the results. -> then try and match every entry of the flat previous array to an entry into opts_version_description. the goal is to find the descr_id key corresponding to this result. we have: the TS_id identifier, and the test informations contained in the logfile (for example, this can be the filename, or the test number) You can refer to existing plug-ins for examples of different parsing methods. We consider that the $RESULTS array has been created for the rest of this function. */ echo "\n<b>".count($RESULTS)."</b> test results can be inserted in the results database.\n\n"; /* Now we've got to add the new run name in the database and get its ID */ $sql = "INSERT INTO opts_run ( run_name, run_comments )" ." VALUES ( ".stringToDB($RUN_name).", ".stringToDB($RUN_description)." )"; if ($parent->debug > 1) echo htmlentities($sql)."<br>\n"; $res = db_execute_insert($sql); if (!$res) { $parent->last_error="Failed to insert new run name"; return false; } $sql = "SELECT run_id, run_name, run_comments FROM opts_run WHERE run_name LIKE ".stringToDB($RUN_name); if ($parent->debug > 1) echo htmlentities($sql)."<br>\n"; $res = db_execute_select($sql); if (!$res) { $parent->last_error="Internal error: the run was inserted but disappeared\n"; return false; } $run_id=$res[0]["run_id"]; /* Add the results now */ $counter=0; foreach($RESULTS as $desc_id => $testdata) { $sql = "INSERT INTO opts_run_results ( res_run, res_testcase, res_status, res_log )" ." VALUES ( $run_id, $desc_id, ".stringToDB($testdata["status"]).", " .stringToDB($testdata["log"])." )"; if ($parent->debug > 1) echo htmlentities($sql)."<br>\n"; if (db_execute_insert($sql)) $counter++; else echo "<b><i>Failed to execute the following instruction</i></b>; skipping.\n$sql\n"; } echo "<b>$counter</b> records added to the database!\n"; return true; } /* The next function is quite generic, but one may need additional cleanups */ function RUN_delete(&$parent, $RUN_id) { if ( $parent->debug ) echo "newmodule->RUN_delete($RUN_id)\n"; /* Check this run belongs to an newmodule testsuite */ $sql = "SELECT ver_module FROM opts_versions, opts_version_descriptions, opts_run_results" ." WHERE res_run=$RUN_id" ." AND res_testcase=descr_id AND descr_version=ver_id" ." GROUP BY ver_module"; if ($parent->debug > 1) echo htmlentities($sql)."<br>\n"; $tmp = db_execute_select($sql); if (!$tmp) { $parent->last_error="The run ID or corresponding testsuite cannot be found in the database.\n"; return FALSE; } if ($tmp[0]["ver_module"] != "newmodule") @ /* @@@ change the name here */ { $parent->last_error="The testsuite is not of the correct format -- cannot be deleted within the current module.\n"; return FALSE; } /* We can delete everything related to this run */ $sql = "DELETE from opts_run_results " ."WHERE res_run=$RUN_id"; if ($parent->debug > 1) echo htmlentities($sql)."<br>\n"; $tmp = db_execute_insert($sql); if ($tmp == 0) { $parent->last_error="No row deleted in opts_run_results\n"; return FALSE; } echo "$tmp rows deleted from opts_run_results<br>\n"; $sql = "DELETE from opts_run " ."WHERE run_id=$RUN_id"; if ($parent->debug > 1) echo htmlentities($sql)."<br>\n"; $tmp = db_execute_insert($sql); if ($tmp == 0) { $parent->last_error="No row deleted in opts_run\n"; return FALSE; } echo "$tmp row deleted from opts_run<br>\n"; return true; } } /* Return the class name so it is added to the catalog */ return("newmodule"); ?> |
From: Sebastien D. <sde...@us...> - 2005-07-05 09:14:51
|
Update of /cvsroot/tslogparser/tslogparser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27424 Modified Files: HISTORY Log Message: New template for plug-ins Index: HISTORY =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/HISTORY,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- HISTORY 4 Jul 2005 09:48:09 -0000 1.30 +++ HISTORY 5 Jul 2005 09:14:40 -0000 1.31 @@ -1,3 +1,8 @@ +2005-07-05: +- New file: admin/modules/new.mod.php.template + This file is meant to serve as a base for people wanting to contribute + a new plug-in module. Instructions are inside the file comments. + 2005-07-04: - Fix in report.php for comparison between different releases. |
From: Sebastien D. <sde...@us...> - 2005-07-04 09:48:17
|
Update of /cvsroot/tslogparser/tslogparser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31672 Modified Files: HISTORY report.php Log Message: fix Index: report.php =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/report.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- report.php 29 Jun 2005 14:37:30 -0000 1.6 +++ report.php 4 Jul 2005 09:48:09 -0000 1.7 @@ -228,9 +228,9 @@ $tmpres=""; $diff=0; $count = 0; - foreach ($assertsdata as $assert_id => $desc_data) - foreach ($desc_data as $desc_id => $run_data) - foreach ($run_data as $run_name => $detail) + foreach ($assertsdata as $assert_id => $run_data) + foreach ($run_data as $descr_id => $descr_data) + foreach ($descr_data as $run_name => $detail) { $count++; if (!$tmpres) @@ -241,18 +241,20 @@ if ((!$diff) && ($count == count($runs))) { - foreach ($assertsdata as $assert_id => $desc_data) - foreach ($desc_data as $desc_id => $run_data) - { - unset ($data[$routine][$testname][$assert_id][$desc_id]); // No difference in this testcase - $displayed--; - // we cascade-delete the empty tree branchs - if (!$data[$routine][$testname][$assert_id]) unset($data[$routine][$testname][$assert_id]); - if (!$data[$routine][$testname]) unset($data[$routine][$testname]); - if (!$data[$routine]) unset($data[$routine]); - if (!$data) - die("The runs are identical -- aborted"); - } + foreach ($assertsdata as $assert_id => $run_data) + foreach ($run_data as $desc_id => $descr_data) + foreach ($descr_data as $run_name => $detail) + { + unset ($data[$routine][$testname][$assert_id][$desc_id][$run_name]); // No difference in this testcase + $displayed--; + // we cascade-delete the empty tree branchs + if (!$data[$routine][$testname][$assert_id][$desc_id]) unset($data[$routine][$testname][$assert_id][$desc_id]); + if (!$data[$routine][$testname][$assert_id]) unset($data[$routine][$testname][$assert_id]); + if (!$data[$routine][$testname]) unset($data[$routine][$testname]); + if (!$data[$routine]) unset($data[$routine]); + if (!$data) + die("The runs are identical -- aborted"); + } } } } @@ -359,96 +361,101 @@ echo " <td><b>Assertion detail</b></td>\n"; echo " </tr>\n"; +//echo "<pre>"; +//print_r($data); +//echo "</pre>"; + + /* Display results */ -$anomalies=0; foreach ($data as $routine => $rou_data) { echo " <tr>\n"; echo " <td"; $count=0; - foreach($rou_data as $test_data) - $count += count($test_data); + foreach($rou_data as $file_data) + $count += count($file_data); if ($count > 1) echo " rowspan='".$count."'"; echo ">".stringFromDB($routine)."</td>\n"; $first=1; - $anomalie=0; - foreach ($rou_data as $testcase => $test_data) + foreach ($rou_data as $file => $file_data) { - $test_first=1; - if (!$first) echo " <tr>\n"; - if ($test_first) - { - echo " <td"; - if (count($test_data) > 1) - echo " rowspan=".count($test_data); - echo ">".stringFromDB($testcase).($anomalie?" (*)":"")."</td>\n"; - } + + echo " <td"; + if (count($file_data) > 1) + echo " rowspan=".count($file_data); + echo ">".stringFromDB($file)."</td>\n"; - foreach ($test_data as $assert_id => $assert_data) + $assert_first=1; + $countTC = count($file_data); + + foreach ($file_data as $assert_id => $assert_data) { - $assert_first=1; - $countTC = count($assert_data); - if ($countTC > 1) - { - $anomalie=1; - $anomalies++; - } - foreach ($assert_data as $testid => $run_data) + if (!$assert_first) + echo " <tr>\n"; + + + foreach ($runs as $run => $run_data_bis) { - foreach ($runs as $run => $run_data_bis) + echo " <td>"; + /* If an $assert_data[$test_id][$run] is set, we put it here, + otherwise we put a blank case */ + $key=null; + foreach ($assert_data as $test_id => $test_data) + if (array_key_exists($run, $test_data)) + { + $key = $test_id; + break; + } + + if (!$key) + echo " "; + else { - echo " <td>"; - if (!isset($run_data[$run])) - echo " "; - else + $font=0; + echo "<a href=\"detailed.php?run_id=".$run_data_bis["id"]."&testcase_id=".$key."\">"; + if (ereg("(PASS|SKIP)", $assert_data[$key][$run]["status"])) { - $font=0; - echo "<a href=\"detailed.php?run_id=".$run_data_bis["id"]."&testcase_id=".$testid."\">"; - if (ereg("(PASS|SKIP)", $run_data[$run]["status"])) - { - echo "<font color='green'>"; - $font=1; - } - if (ereg("(FAIL|INTERRUPTED|HUNG)", $run_data[$run]["status"])) - { - echo "<font color='red'>"; - $font=1; - } - if (ereg("(UNRESOLVED)", $run_data[$run]["status"])) - { - echo "<font color='orange'>"; - $font=1; - } - if (ereg("(UNSUPPORTED|UNTESTED)", $run_data[$run]["status"])) - { - echo "<font color='black'>"; - $font=1; - } - echo stringFromDB($run_data[$run]["status"]); - if ((!isset($_POST["logs"])) && $run_data[$run]["log"]) - echo " (log)"; - if ($font) echo "</font>"; - echo "</a>"; + echo "<font color='green'>"; + $font=1; } - echo "</td>\n"; - if (isset($_POST["logs"])) + if (ereg("(FAIL|INTERRUPTED|HUNG)", $assert_data[$key][$run]["status"])) { - echo " <td><pre>"; - echo strip_tags(stringFromDB($run_data[$run]["log"])); - echo " </pre></td>\n"; + echo "<font color='red'>"; + $font=1; } + if (ereg("(UNRESOLVED)", $assert_data[$key][$run]["status"])) + { + echo "<font color='orange'>"; + $font=1; + } + if (ereg("(UNSUPPORTED|UNTESTED)", $assert_data[$key][$run]["status"])) + { + echo "<font color='black'>"; + $font=1; + } + echo stringFromDB($assert_data[$key][$run]["status"]); + if ((!isset($_POST["logs"])) && $assert_data[$key][$run]["log"]) + echo " (log)"; + if ($font) echo "</font>"; + echo "</a>"; } - if (isset($_POST["asserts"]) && $assert_first) - echo " <td".($countTC>1?" rowspan=$countTC":"")."><pre>".strip_tags(stringFromDB(wordwrap($asserts[$routine][$assert_id])))."</pre></td>\n"; - echo " </tr>\n"; - $first=0; - $assert_first=0; - $test_first=0; } + echo "</td>\n"; + if (isset($_POST["logs"])) + { + echo " <td><pre>"; + echo strip_tags(stringFromDB($assert_data[$key][$run]["log"])); + echo " </pre></td>\n"; + } + if (isset($_POST["asserts"]) && $assert_first) + echo " <td".($countTC>1?" rowspan=$countTC":"")."><pre>".strip_tags(stringFromDB(wordwrap($asserts[$routine][$assert_id])))."</pre></td>\n"; + echo " </tr>\n"; + $assert_first=0; } + $first=0; } } echo " </table>\n"; Index: HISTORY =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/HISTORY,v retrieving revision 1.29 retrieving revision 1.30 diff -u -d -r1.29 -r1.30 --- HISTORY 29 Jun 2005 14:37:30 -0000 1.29 +++ HISTORY 4 Jul 2005 09:48:09 -0000 1.30 @@ -1,3 +1,6 @@ +2005-07-04: +- Fix in report.php for comparison between different releases. + 2005-06-29: - Mods in run-browse.php and report.php to allow comparison between several test suite releases. This has to be tested with the OPTS |
From: Sebastien D. <sde...@us...> - 2005-06-29 14:39:51
|
Update of /cvsroot/tslogparser/tslogparser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16762 Modified Files: run-browse.php Log Message: fix Index: run-browse.php =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/run-browse.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- run-browse.php 29 Jun 2005 14:37:30 -0000 1.7 +++ run-browse.php 29 Jun 2005 14:39:42 -0000 1.8 @@ -171,7 +171,7 @@ } else { - echo " <form method='POST' action='report2.php'>\n"; + echo " <form method='POST' action='report.php'>\n"; /* default to masking PASS and SKIP status */ echo " <input type='hidden' name='build_PASS' value='hidden'>\n"; |