Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: smoke tests #259

Merged
merged 2 commits into from
Nov 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions xgo.bats
Original file line number Diff line number Diff line change
@@ -25,11 +25,12 @@
[ "$status" -eq 0 ]
}

@test "branches" {
run go run xgo.go --remote https://github.com/rwcarlsen/cyan --branch memprof --targets "linux/amd64" --image="${IMAGEID}" github.com/rwcarlsen/cyan/cmd/cyan
echo "$output"
[ "$status" -eq 0 ]
}
# FIXME: does not work, see https://github.com/techknowlogick/xgo/issues/260
#@test "branches" {
# run go run xgo.go --remote https://github.com/rwcarlsen/cyan --branch memprof --targets "linux/amd64" --image="${IMAGEID}" github.com/rwcarlsen/cyan/cmd/cyan
# echo "$output"
# [ "$status" -eq 0 ]
#}

@test "eth smoke" {
git clone --depth 1 https://github.com/ethereum/go-ethereum.git /tmp/eth
@@ -46,8 +47,11 @@
}

@test "vikunja smoke" {
git clone --depth 1 https://kolaente.dev/vikunja/api /tmp/vikunja
run go run xgo.go --image="${IMAGEID}" --targets "darwin-10.6/amd64" /tmp/vikunja
export vikunja_path=/tmp/vikunja
git clone --depth 1 https://kolaente.dev/vikunja/api $vikunja_path
mkdir -p $vikunja_path/frontend/dist/
touch $vikunja_path/frontend/dist/index.html
run go run xgo.go --image="${IMAGEID}" --targets "darwin-10.6/amd64" $vikunja_path
echo "$output"
[ "$status" -eq 0 ]
}