From: Michael Wallner Date: Wed, 13 Nov 2019 08:45:27 +0000 (+0100) Subject: make TESTS configurable X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f24680bd797a891102f9430f54d2f3c2f06d7513;p=m6w6%2Ftravis-pecl make TESTS configurable --- diff --git a/Makefile b/Makefile index 8330ebc..1dd2c87 100644 --- a/Makefile +++ b/Makefile @@ -165,11 +165,13 @@ ext: pecl-check pecl $(makdir)/check-packagexml.php package.xml .PHONY: test +test: TESTS ?= tests test: php - REPORT_EXIT_STATUS=1 $(bindir)/php run-tests.php -q -p $(bindir)/php --set-timeout 300 --show-diff tests + REPORT_EXIT_STATUS=1 $(bindir)/php run-tests.php -q -p $(bindir)/php --set-timeout 300 --show-diff $(TESTS) .PHONY: pecl-test +pecl-test: TESTS ?= $(PECL_DIR)/tests pecl-test: php - REPORT_EXIT_STATUS=1 $(bindir)/php $(prefix)/lib/php/build/run-tests.php -q -p $(bindir)/php --set-timeout 300 --show-diff $(PECL_DIR)/tests + REPORT_EXIT_STATUS=1 $(bindir)/php $(prefix)/lib/php/build/run-tests.php -q -p $(bindir)/php --set-timeout 300 --show-diff $(TESTS) pharext/%: $(PECL_INI) php | $(srcdir)/../%.ext.phar for phar in $|; do $(bindir)/php $$phar --prefix=$(prefix) --ini=$(PECL_INI); done