add test for go installation
This commit is contained in:
parent
fd3f3a1e6b
commit
d20ad9c5da
3 changed files with 21 additions and 0 deletions
|
@ -30,3 +30,11 @@
|
|||
"gradle" "run")
|
||||
"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
3
go/go.mod
Normal file
|
@ -0,0 +1,3 @@
|
|||
module example.com/smoketest/v2
|
||||
|
||||
go 1.20
|
10
go/main.go
Normal file
10
go/main.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Fprintln(os.Stdout, "Hello from Go!")
|
||||
}
|
Loading…
Reference in a new issue