Merge pull request #13628 from mhei/php7-test

php7: add CI test script
This commit is contained in:
Michael Heimpold 2020-12-10 15:14:56 +01:00 committed by GitHub
commit 9279a206e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

23
lang/php7/test.sh Normal file
View File

@ -0,0 +1,23 @@
#!/bin/sh
case "$1" in
php7-cgi)
php-cgi -v | grep "$2"
;;
php7-cli)
php-cli -v | grep "$2"
;;
php7-fpm)
php-fpm -v | grep "$2"
;;
php7-mod-*)
PHP_MOD="${1#php7-mod-}"
PHP_MOD="${PHP_MOD//-/_}"
opkg install php7-cli
php-cli -m | grep -i "$PHP_MOD"
;;
*)
;;
esac