cvs: php-gcov-web /cron compile_results.php cron.php mailer.php tests.php valgrind.php

From: Date: Sun, 24 Dec 2006 17:19:17 +0000
Subject: cvs: php-gcov-web /cron compile_results.php cron.php mailer.php tests.php valgrind.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-33600@lists.php.net to get a copy of this message
nlopess Sun Dec 24 17:19:17 2006 UTC Removed files: /php-gcov-web/cron mailer.php Modified files: /php-gcov-web/cron compile_results.php cron.php tests.php valgrind.php Log: fix stats that are inserted into the DB (this is a regression added in my last few commits) http://cvs.php.net/viewvc.cgi/php-gcov-web/cron/compile_results.php?r1=1.5&r2=1.6&diff_format=u Index: php-gcov-web/cron/compile_results.php diff -u php-gcov-web/cron/compile_results.php:1.5 php-gcov-web/cron/compile_results.php:1.6 --- php-gcov-web/cron/compile_results.php:1.5 Thu Dec 21 23:19:03 2006 +++ php-gcov-web/cron/compile_results.php Sun Dec 24 17:19:17 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: compile_results.php,v 1.5 2006/12/21 23:19:03 nlopess Exp $ */ +/* $Id: compile_results.php,v 1.6 2006/12/24 17:19:17 nlopess Exp $ */ // Compile Results generation script @@ -64,6 +64,12 @@ $type = $error[$i+1] ? $error[$i+1] : 'error'; // warning or error (default) $msg = $error[$i+2]; + if ($type === 'error') { + ++$totalnumerrors; + } else { + ++$totalnumwarnings; + } + $compile_results[$filepath][] = array($function, $line, $type, $msg); } } http://cvs.php.net/viewvc.cgi/php-gcov-web/cron/cron.php?r1=1.5&r2=1.6&diff_format=u Index: php-gcov-web/cron/cron.php diff -u php-gcov-web/cron/cron.php:1.5 php-gcov-web/cron/cron.php:1.6 --- php-gcov-web/cron/cron.php:1.5 Thu Dec 21 23:19:03 2006 +++ php-gcov-web/cron/cron.php Sun Dec 24 17:19:17 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: cron.php,v 1.5 2006/12/21 23:19:03 nlopess Exp $ */ +/* $Id: cron.php,v 1.6 2006/12/24 17:19:17 nlopess Exp $ */ if ($argc != 7) @@ -58,10 +58,6 @@ $xmlarray = array(); -// avoid filling the disk -if($makestatus == 'pass') { - system("rm -f $outdir/*.inc"); -} require $workdir.'/config.php'; require $workdir.'/system.php'; @@ -82,13 +78,6 @@ } else { - // Check for unicode (is this sufficient for PHP > 6?) - if(preg_match('/UNICODE[ ]*:[ ]*ON[ ]?/', $data)) - { - // Easy way to track that unicode is enabled - $unicode = true; - } - // Run the PHP tests require $workdir.'/tests.php'; // Run the valgrind code http://cvs.php.net/viewvc.cgi/php-gcov-web/cron/tests.php?r1=1.3&r2=1.4&diff_format=u Index: php-gcov-web/cron/tests.php diff -u php-gcov-web/cron/tests.php:1.3 php-gcov-web/cron/tests.php:1.4 --- php-gcov-web/cron/tests.php:1.3 Thu Dec 21 18:58:49 2006 +++ php-gcov-web/cron/tests.php Sun Dec 24 17:19:17 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: tests.php,v 1.3 2006/12/21 18:58:49 nlopess Exp $ */ +/* $Id: tests.php,v 1.4 2006/12/24 17:19:17 nlopess Exp $ */ // Tests generation file // $data: contains the contents of $tmpdir/php_test.log @@ -54,6 +54,8 @@ $output = @file_get_contents($report_file.'out'); $script = @file_get_contents($base.'php'); + ++$totalnumfailures; + $fail_tests[$test['file']] = array($testtype, $title, $difference, $expected, $output, $script); } elseif ($status === 'SKIP') { http://cvs.php.net/viewvc.cgi/php-gcov-web/cron/valgrind.php?r1=1.3&r2=1.4&diff_format=u Index: php-gcov-web/cron/valgrind.php diff -u php-gcov-web/cron/valgrind.php:1.3 php-gcov-web/cron/valgrind.php:1.4 --- php-gcov-web/cron/valgrind.php:1.3 Thu Dec 21 23:19:03 2006 +++ php-gcov-web/cron/valgrind.php Sun Dec 24 17:19:17 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: valgrind.php,v 1.3 2006/12/21 23:19:03 nlopess Exp $ */ +/* $Id: valgrind.php,v 1.4 2006/12/24 17:19:17 nlopess Exp $ */ // File to process memory leaks detected by valgrind @@ -54,4 +54,6 @@ // sort by filename ksort($valgrind); +$totalnumleaks = count($leaks); + file_put_contents("$outdir/valgrind.inc", serialize($valgrind));

« previous php.mirrors (#33600) next »