Skip to content

Commit

Permalink
test-go: print version
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Dec 9, 2024
1 parent 3b7621b commit eed0644
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test-go.bats
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ testEnv() {
esac
}

@test "version" {
run go version 2>/dev/null
assert_success
assert_output --partial "go version "
echo "# $(go version 2>/dev/null)" >&3
}

@test "nogo" {
if command -v apk >/dev/null 2>/dev/null; then
del go
Expand Down

0 comments on commit eed0644

Please sign in to comment.