Re: Weirdness with code coverage
| From: | Patrick ALLAERT | Date: | Sun, 29 Nov 2009 23:13:10 +0000 |
| Subject: | Re: Weirdness with code coverage | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-65446@lists.php.net to get a copy of this message | ||
2009/11/29 Patrick ALLAERT <patrickallaert@php.net>:
> Hello,
>
> Yesterday I checked out PHP 5.2 from svn and tried to run a code coverage.
> I had a problem defining the specific tests to execute using:
> $ make lcov TESTS=path/to/tests
>
> doing this resulted in an sh error displayed complaining about "."
> needing a file as parameter followed by running *all* tests.
>
> $ make test TESTS=path/to/tests
>
> however, correctly run the specified tests.
>
> The first CC= line from lcov-test rule seems odd in the generated Makefile.
Changing (around line 240 in Makefile):
CC="$(CC)" \
$(PHP_EXECUTABLE) -d 'open_basedir=' -d 'safe_mode=0' -d
'output_buffering=0' -d 'memory_limit=-1' $(top_srcdir)/run-tests.php
-d 'extension_dir=modules/' -d `( . $(PHP_MODULES) ; echo
extension=$$dlname)` tests/; \
into:
CC="$(CC)" \
$(PHP_EXECUTABLE) -d 'open_basedir=' -d 'safe_mode=0' -d
'output_buffering=0' -d 'memory_limit=-1' $(top_srcdir)/run-tests.php
-d 'extension_dir=modules/' $(TESTS); \
temporarily fixes the problem.
--
Patrick Allaert
---
http://code.google.com/p/peclapm/ - Alternative PHP
Monitor