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
parent
commit
9279a206e9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions
  1. +23
    -0
      lang/php7/test.sh

+ 23
- 0
lang/php7/test.sh 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

Loading…
Cancel
Save