com php-src: let make test report the run-test result: Makefile.global
| From: | Xinchen Hui | Date: | Sun, 25 Nov 2012 03:45:36 +0000 |
| Subject: | com php-src: let make test report the run-test result: Makefile.global | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-70590@lists.php.net to get a copy of this message | ||
Commit: f03a91226e525ab48aa9049eaa2d8202ac4113d1
Author: Xinchen Hui <laruence@php.net> Sun, 25 Nov 2012 11:45:36 +0800
Parents: f50f703571ec936f052db3c68f9aca126123d82f
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f03a91226e525ab48aa9049eaa2d8202ac4113d1
Log:
let make test report the run-test result
(patch by reeze.xia@gmail.com)
Changed paths:
M Makefile.global
Diff:
diff --git a/Makefile.global b/Makefile.global
index eaf651e..5118de8 100644
--- a/Makefile.global
+++ b/Makefile.global
@@ -102,7 +102,9 @@ test: all
TEST_PHP_SRCDIR=$(top_srcdir) \
CC="$(CC)" \
$(PHP_EXECUTABLE) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS)
$(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d
extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \
+ TEST_RESULT_EXIT_CODE=$$?; \
rm $(top_builddir)/tmp-php.ini; \
+ exit $$TEST_RESULT_EXIT_CODE; \
else \
echo "ERROR: Cannot run tests without CLI sapi."; \
fi