Browse Source
Merge pull request #13628 from mhei/php7-test
php7: add CI test script
lilik-openwrt-22.03
Michael Heimpold
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
23 additions and
0 deletions
-
lang/php7/test.sh
|
@ -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 |