forked from techknowlogick/xgo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xgo.bats
56 lines (48 loc) · 1.5 KB
/
xgo.bats
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env bats
@test "embedded c" {
export GO111MODULE=auto
run go run xgo.go ./tests/embedded_c
echo "$output"
[ "$status" -eq 0 ]
}
@test "embedded cpp" {
skip "TODO: C++ is failing on linux/386, need to look into this"
run go run xgo.go ./tests/embedded_cpp
echo "$output"
[ "$status" -eq 0 ]
}
@test "has mod" {
skip "this test doesn't yet exist"
run go run xgo.go src.techknowlogick.com/xgo/tests/hasmod
[ "$status" -eq 0 ]
}
@test "has mod and vendor" {
skip "this test doesn't yet exist"
run go run xgo.go src.techknowlogick.com/xgo/tests/hasmodandvendor
[ "$status" -eq 0 ]
}
@test "branches" {
skip "remotes are temporarily disabled due to gomod"
run go run xgo.go --remote github.com/rwcarlsen/cyan --branch memprof --targets "linux/amd64" github.com/rwcarlsen/cyan/cmd/cyan
echo "$output"
[ "$status" -eq 0 ]
}
@test "eth smoke" {
# skip "remotes are temporarily disabled due to gomod"
git clone https://github.com/ethereum/go-ethereum.git /tmp/eth
run go run xgo.go --targets "linux/amd64" /tmp/eth/cmd/geth
echo "$output"
[ "$status" -eq 0 ]
}
@test "gitea smoke" {
git clone https://github.com/go-gitea/gitea.git /tmp/gitea
run go run xgo.go --targets "darwin-10.6/amd64" -tags 'netgo osusergo sqlite sqlite_unlock_notify' /tmp/gitea
echo "$output"
[ "$status" -eq 0 ]
}
@test "vikunja smoke" {
git clone https://kolaente.dev/vikunja/api /tmp/vikunja
run go run xgo.go --targets "darwin-10.6/amd64" /tmp/vikunja
echo "$output"
[ "$status" -eq 0 ]
}