From f81f0cd1a2f58cecad7a8ce96f4dd32744d0805d Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Tue, 28 Sep 2021 12:27:17 +0200 Subject: [PATCH] Use common code to bootstrap tests (#443) --- scripts/tests/_bootstrap.php | 18 ++++++++++++++++++ scripts/tests/_bootstrap.sh | 2 ++ scripts/tests/blackfire | 3 +-- scripts/tests/dba | 15 +-------------- scripts/tests/event | 3 +-- scripts/tests/gd | 15 +-------------- scripts/tests/imagick | 15 +-------------- scripts/tests/memcached | 3 +-- scripts/tests/pdo_sqlsrv | 17 +---------------- scripts/tests/sourceguardian | 15 +-------------- scripts/tests/sqlsrv | 17 +---------------- scripts/tests/stomp | 3 +-- scripts/tests/yac | 3 +-- 13 files changed, 31 insertions(+), 98 deletions(-) create mode 100644 scripts/tests/_bootstrap.php create mode 100644 scripts/tests/_bootstrap.sh diff --git a/scripts/tests/_bootstrap.php b/scripts/tests/_bootstrap.php new file mode 100644 index 0000000..e2414d2 --- /dev/null +++ b/scripts/tests/_bootstrap.php @@ -0,0 +1,18 @@ + enabled')"; then echo 'Blackfire PHP Probe is disabled' >&2 diff --git a/scripts/tests/dba b/scripts/tests/dba index 03809ec..0091291 100755 --- a/scripts/tests/dba +++ b/scripts/tests/dba @@ -1,20 +1,7 @@ #!/usr/bin/env php /dev/null 2>/dev/null; then diff --git a/scripts/tests/gd b/scripts/tests/gd index 16d2d54..c494500 100755 --- a/scripts/tests/gd +++ b/scripts/tests/gd @@ -1,20 +1,7 @@ #!/usr/bin/env php 'PHP module', true => 'Zend extension'] as $type => $typeName) { diff --git a/scripts/tests/sqlsrv b/scripts/tests/sqlsrv index 6609305..77ed9b9 100755 --- a/scripts/tests/sqlsrv +++ b/scripts/tests/sqlsrv @@ -1,22 +1,7 @@ #!/usr/bin/env php enabled')"; then diff --git a/scripts/tests/yac b/scripts/tests/yac index 7f6034c..b7821a6 100755 --- a/scripts/tests/yac +++ b/scripts/tests/yac @@ -1,7 +1,6 @@ #!/bin/sh -set -o errexit -set -o nounset +. "$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)/_bootstrap.sh" rc=0 if php --ri igbinary >/dev/null 2>/dev/null; then