Skip to content

Commit c96276c

Browse files
committed
Add shared json extension for tests
1 parent eb48595 commit c96276c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile.frag

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
.PHONY: coverage test-clean package package.xml format format-changed format-check
22

3+
ifneq (,$(realpath $(EXTENSION_DIR)/json.so))
4+
PHP_TEST_SHARED_EXTENSIONS := "-d" "extension=$(EXTENSION_DIR)/json.so" $(PHP_TEST_SHARED_EXTENSIONS)
5+
PHP_TEST_SETTINGS := "-d" "extension=$(EXTENSION_DIR)/json.so" $(PHP_TEST_SETTINGS)
6+
endif
7+
38
DATE=`date +%Y-%m-%d--%H-%M-%S`
49
MONGODB_VERSION=$(shell php -n -dextension=modules/mongodb.so -r 'echo MONGODB_VERSION;')
510
MONGODB_MINOR=$(shell echo $(MONGODB_VERSION) | cut -d. -f1,2)

0 commit comments

Comments
 (0)