git.99rst.org
/
openwrt-packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
5e7a9a3
)
php7: add CI test script
author
Michael Heimpold
<redacted>
Sat, 10 Oct 2020 21:52:30 +0000
(23:52 +0200)
committer
Michael Heimpold
<redacted>
Wed, 2 Dec 2020 19:40:05 +0000
(20:40 +0100)
This adds basic checks for php7 core and module packages.
Signed-off-by: Michael Heimpold <redacted>
lang/php7/test.sh
[new file with mode: 0644]
patch
|
blob
diff --git a/lang/php7/test.sh
b/lang/php7/test.sh
new file mode 100644
(file)
index 0000000..
273afc7
--- /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
git clone https://git.99rst.org/PROJECT