mirror of
https://github.com/danog/docker-php-extension-installer.git
synced 2024-12-13 01:47:35 +01:00
af74929e39
Test: yac,yac+igbinary,yac+msgpack,yac+igbinary+msgpack
32 lines
798 B
Bash
Executable File
32 lines
798 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
|
|
rc=0
|
|
if php --ri igbinary >/dev/null 2>/dev/null; then
|
|
if test -z "$(php --ri yac | grep 'Serializer => .*igbinary')"; then
|
|
echo 'yac has not been compiled with Igbinary support' >&2
|
|
rc=1
|
|
else
|
|
echo 'yac has been compiled with Igbinary support'
|
|
fi
|
|
fi
|
|
if php --ri json >/dev/null 2>/dev/null; then
|
|
if test -z "$(php --ri yac | grep 'Serializer => .*json')"; then
|
|
echo 'yac has not been compiled with Json support' >&2
|
|
rc=1
|
|
else
|
|
echo 'yac has been compiled with Json support'
|
|
fi
|
|
fi
|
|
if php --ri msgpack >/dev/null 2>/dev/null; then
|
|
if test -z "$(php --ri yac | grep 'Serializer => .*msgpack')"; then
|
|
echo 'yac has not been compiled with Msgpack support' >&2
|
|
rc=1
|
|
else
|
|
echo 'yac has been compiled with Msgpack support'
|
|
fi
|
|
fi
|
|
exit $rc
|