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:
13dfad0
)
golang: add a simple compilation test
author
George Sapkin
<redacted>
Thu, 7 May 2026 18:24:34 +0000
(21:24 +0300)
committer
George Sapkin
<redacted>
Wed, 13 May 2026 21:24:08 +0000
(
00:24
+0300)
Add a simple CI compilation test to ensure that the Go toolchain is
functional.
Signed-off-by: George Sapkin <redacted>
lang/golang/golang1.26/test.sh
patch
|
blob
|
history
diff --git
a/lang/golang/golang1.26/test.sh
b/lang/golang/golang1.26/test.sh
index 09d3e3fcaf810775d03b8045b4c2686910bd49e1..023f3659deb1d6fb2a7737fab6ca62602141a4cb 100755
(executable)
--- a/
lang/golang/golang1.26/test.sh
+++ b/
lang/golang/golang1.26/test.sh
@@
-7,3
+7,17
@@
case "$1" in
esac
go version | grep -F " go$PKG_VERSION "
+
+cat <<'EOF' > hello.go
+package main
+
+import "fmt"
+
+func main() {
+ fmt.Println("Hello, World!")
+}
+
+EOF
+
+go run hello.go
+rm hello.go
git clone https://git.99rst.org/PROJECT