mirror of
https://github.com/mlocati/docker-php-extension-installer
synced 2025-05-11 01:22:42 +00:00
Add support for event
Test: event+sockets
This commit is contained in:
parent
f0c4de6dd1
commit
7c3dbd2b9e
4 changed files with 105 additions and 0 deletions
21
scripts/tests/event
Executable file
21
scripts/tests/event
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
|
||||
rc=0
|
||||
if php --ri sockets >/dev/null 2>/dev/null; then
|
||||
if test -z "$(php --ri event | grep 'Sockets support => enabled')"; then
|
||||
echo 'event has not been compiled with sockets support' >&2
|
||||
rc=1
|
||||
else
|
||||
echo 'event has been compiled with sockets support'
|
||||
fi
|
||||
fi
|
||||
if test -z "$(php --ri event | grep 'OpenSSL support => enabled')"; then
|
||||
echo 'event has not been compiled with OpenSSL support' >&2
|
||||
rc=1
|
||||
else
|
||||
echo 'event has been compiled with OpenSSL support'
|
||||
fi
|
||||
exit $rc
|
Loading…
Add table
Add a link
Reference in a new issue