From 1054d4cd1781ef1ee2bdcdc013512d85d46b95ee Mon Sep 17 00:00:00 2001 From: Michael Heimpold Date: Sat, 10 Oct 2020 23:52:30 +0200 Subject: [PATCH] php7: add CI test script This adds basic checks for php7 core and module packages. Signed-off-by: Michael Heimpold --- lang/php7/test.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lang/php7/test.sh diff --git a/lang/php7/test.sh b/lang/php7/test.sh new file mode 100644 index 000000000..273afc7bc --- /dev/null +++ b/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