Skip to content

Commit 3cc3618

Browse files
committed
Fix leak test invocation on Travis.
1 parent 8a91823 commit 3cc3618

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ compiler:
4646
script:
4747
- phpize
4848
- ./configure --with-mapnik
49-
- make test
50-
- ./tests/util/leak_test.sh
49+
- ./mem_test.sh
5150

5251
after_success:
5352
- tail -n 1000 tests/*.log
53+
- find . -name *.mem | xargs cat
5454

5555
after_failure:
5656
- tail -n 1000 tests/*.log
57+
- find . -name *.mem | xargs cat

mem_test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
3+
# Hijack PHP_TEST_SHARED_EXTENSIONS variable to inject run-tests.php valgrind options.
4+
make PHP_TEST_SHARED_EXTENSIONS='-m --show-diff ` if test "x$(PHP_MODULES)" != "x"; then for i in $(PHP_MODULES)""; do . $$i; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; done; fi; if test "x$(PHP_ZEND_EX)" != "x"; then for i in $(PHP_ZEND_EX)""; do . $$i; $(top_srcdir)/build/shtool echo -n -- " -d $(ZEND_EXT_TYPE)=$(top_builddir)/modules/$$dlname"; done; fi`' test

tests/util/leak_test.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)