add test for go installation

This commit is contained in:
Peter Tillemans 2023-11-28 01:17:11 +01:00
parent fd3f3a1e6b
commit d20ad9c5da
3 changed files with 21 additions and 0 deletions

View file

@ -30,3 +30,11 @@
"gradle" "run") "gradle" "run")
"Hello from Kotlin!")) "Hello from Kotlin!"))
)) ))
(deftest test-go
(testing "go tooling is installed"
(is (str/includes?
(run-cmd-in-dir "go"
"go" "run" "main.go")
"Hello from Go!"))
))

3
go/go.mod Normal file
View file

@ -0,0 +1,3 @@
module example.com/smoketest/v2
go 1.20

10
go/main.go Normal file
View file

@ -0,0 +1,10 @@
package main
import (
"fmt"
"os"
)
func main() {
fmt.Fprintln(os.Stdout, "Hello from Go!")
}