From 2dad6524460a62f879e0df2786090d99e6c837fa Mon Sep 17 00:00:00 2001 From: Michael Heimpold Date: Thu, 29 Jul 2021 22:20:45 +0200 Subject: [PATCH] php8: add CI runtime test Signed-off-by: Michael Heimpold --- lang/php8/test.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lang/php8/test.sh 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 -- 2.30.2