[pkg-php-pear] Bug#755442: Bug#755442: Running tests at build time

Mathieu Parent math.parent at gmail.com
Mon Jul 21 07:41:27 UTC 2014

2014-07-20 23:25 GMT+02:00 David Prévot <david at tilapin.org>:
> Now that we have about twenty packages that recently added their test
> suite at build time, it looks like the usage is that upstream drops a
> phpunit.xml.dist file at the root [or a tests/phpunit.xml]

I think those tests are more run-time checks, i.e dep8. Some of them
may require installation of dependencies not needed at build time.

But: as most php packages are self-contained, let's go with opt-out.

[dep8]: http://dep.debian.net/deps/dep8/

> Some tests suite can run with phpunit even if no phpunit.xml{,.dist}
> file is provided, but checking it existence as an heuristic looks like a
> fair first step before we have a better idea of how to handle them.

I agree.

> Even if it usually needs additional patches to actually run the test
> suite, providing those default dh_auto_test rules by pkg-php-tools
> should be an improvement. I’d be happy to help fixing any packge that
> will FTBFS if such a change were added soon enough before the freeze.

OK. If you have time to do the following, please go ahead!
- provide a patch
- build all packages again and check FTBFS
- report summary here
- (eventually) MBF (mass-bug filing)
- apply patch and upload

More information about the pkg-php-pear mailing list