-
Notifications
You must be signed in to change notification settings - Fork 0
/
testing.sh
executable file
·39 lines (33 loc) · 992 Bytes
/
testing.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
PHP_VERSIONS="5.6 7.1"
VERSIONS="1.8 1.9 1.10 1.11 1.12"
for PHP_VERSION in $PHP_VERSIONS
do
PHP_PATH=/usr/lib/php$PHP_VERSION/
for VERSION in $VERSIONS
do
echo "Running tests for KRB5 $VERSION"
KRB5DIR=/opt/krb5/$VERSION/
test -f Makefile && make distclean &> /dev/null
phpize --clean &> /dev/null &&
$PHP_PATH/bin/phpize
rm -f .libs/krb5.so
if [ "$PHP_VERSION" == "7.1" ]
then
REGEN=false
else
REGEN=true
fi
( $REGEN && aclocal; $REGEN && autoconf; $REGEN && autoheader; $REGEN && automake
./configure --with-php-config=$PHP_PATH/bin/php-config --with-krb5config=$KRB5DIR/bin/krb5-config --with-krb5kadm &&
make clean && make ) 2>&1 > test.${PHP_VERSION}-${VERSION}.build.out
if [ ! -f .libs/krb5.so ]
then
echo "Failed KRB5 $VERSION PHP $PHP_VERSION"
exit
fi
cp testing.config.php tests/config.php &&
make test NO_INTERACTION=yes &> test.${PHP_VERSION}-${VERSION}.out
cat test.${PHP_VERSION}-${VERSION}.out
done
done