Re: RFC: run-tests.php + diff

From: Date: Mon, 26 Aug 2002 13:19:02 +0000
Subject: Re: RFC: run-tests.php + diff
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-87468@lists.php.net to get a copy of this message
But then we would have different outputs on different systems. So i am against using diff when installed. marcus At 14:59 22.08.2002, Sander Roobol wrote:
It's a good idea, but I'd rather see an unified diff with some context. Maybe use diff when it's available, and fall back on this code when it's not. Sander On Thu, Aug 22, 2002 at 02:46:57AM +0200, Marcus Boerger wrote: The following patch produces *.diff files similar to diff command. These would allow for easier checks in faild tests when test combines multiple function checks in one test file or the test uses var_dump for output. For example i changed precision to 13 in array test 003.phpt The tests now produce 003.diff 004- float(-0.33333333333333) 004+ float(-0.3333333333333) 034- float(-0.33333333333333) 034+ float(-0.3333333333333) 050- float(-0.33333333333333) 050+ float(-0.3333333333333) When the test fails because of memory leaks and such then of cause .log files are better to read. Any pros/cons? Here is the diff [ s n i p ] ------------------->>> mailto:mail@marcus-boerger.de <<<------------------ "Wir sind allzumal Tiere unter Tieren, Kinder der Materie wie sie, nur wehrloser. Doch da wir im Unterschied zu den Tieren wissen, dass wir sterben muessen, wollen wir uns auf jenen Augenblick vorbereiten, indem wir das Leben geniessen, das uns durch Zufall und vom Zufall gegeben ist."
                                Umberto Eco, Die Insel des vorigen Tages
--------------------->>> http://marcus-boerger.de <<<--------------------- ------------>>> Tel. 0241 / 874 09-7 ### 0179 / 29 14 980 <<<------------


« previous php.dev (#87468) next »