[Pkg-php-commits] [php/debian-sid] Test the extensions that don't require a special setup
Raphael Geissert
geissert at debian.org
Mon Feb 22 22:26:04 UTC 2010
---
debian/rules | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index b066bfe..324e6bf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -154,10 +154,18 @@ unprepared:
sed -i -e 's/EXTRA_VERSION="-$(PHP5_DEBIAN_REVISION)"/EXTRA_VERSION=""/' configure.in
rm -f prepared-stamp
-test-results.txt: build-cli-stamp build-cgi-stamp
+test-results.txt: build-apache2-stamp build-cli-stamp build-cgi-stamp
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
mkdir -p temp_session_store
- env NO_INTERACTION=1 TEST_PHP_CGI_EXECUTABLE=$(CURDIR)/cgi-build/sapi/cgi/cgi-bin.php5 TEST_PHP_EXECUTABLE=$(CURDIR)/cli-build/sapi/cli/php $(CURDIR)/cli-build/sapi/cli/php run-tests.php | tee test-results.txt
+ extensions=""; \
+ for f in $(CURDIR)/apache2-build/modules/*.so; do \
+ ext=`basename "$${f%.so}"`; \
+ test ! -f "$(CURDIR)/ext/$$ext/tests/config.inc" || continue; \
+ test ! -f "$(CURDIR)/ext/$$ext/tests/README" || continue; \
+ test "$${ext#pdo}" = "$$ext" || continue; \
+ extensions="$$extensions -d extension=$$ext"; \
+ done; \
+ env NO_INTERACTION=1 TEST_PHP_CGI_EXECUTABLE=$(CURDIR)/cgi-build/sapi/cgi/cgi-bin.php5 TEST_PHP_EXECUTABLE=$(CURDIR)/cli-build/sapi/cli/php $(CURDIR)/cli-build/sapi/cli/php run-tests.php -d extension_dir=$(CURDIR)/apache2-build/modules/ $$extensions| tee test-results.txt
rm -rf temp_session_store
@for test in `find . -name '*.log' -a '!' -name 'config.log'`; do \
echo; \
--
1.6.3.3
More information about the Pkg-php-commits
mailing list