projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9080dce
)
php8: add CI runtime test
author
Michael Heimpold
<mhei@heimpold.de>
Thu, 29 Jul 2021 20:20:45 +0000
(22:20 +0200)
committer
Michael Heimpold
<mhei@heimpold.de>
Thu, 29 Jul 2021 20:20:45 +0000
(22:20 +0200)
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
lang/php8/test.sh
[new file with mode: 0644]
patch
|
blob
diff --git a/lang/php8/test.sh
b/lang/php8/test.sh
new file mode 100644
(file)
index 0000000..
7b2de6e
--- /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