From: Michael Heimpold Date: Thu, 29 Jul 2021 20:20:45 +0000 (+0200) Subject: php8: add CI runtime test X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=2dad6524460a62f879e0df2786090d99e6c837fa;p=feed%2Fpackages.git php8: add CI runtime test Signed-off-by: Michael Heimpold --- diff --git a/lang/php8/test.sh b/lang/php8/test.sh new file mode 100644 index 0000000000..7b2de6ee76 --- /dev/null +++ b/lang/php8/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +case "$1" in + php8-cgi) + php8-cgi -v | grep "$2" + ;; + php8-cli) + php8-cli -v | grep "$2" + ;; + php8-fpm) + php8-fpm -v | grep "$2" + ;; + php8-mod-*) + PHP_MOD="${1#php8-mod-}" + PHP_MOD="${PHP_MOD//-/_}" + + opkg install php8-cli + + php8-cli -m | grep -i "$PHP_MOD" + ;; + *) + ;; +esac