mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-09 13:36:56 +02:00
test: goamd64 tests
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
parent
d513b708d0
commit
3663ec1b13
@ -201,6 +201,13 @@ func TestInvalidTargets(t *testing.T) {
|
||||
},
|
||||
expectedErr: "invalid gomips: mehfloat",
|
||||
},
|
||||
"goamd64": {
|
||||
build: config.Build{
|
||||
Goarch: []string{"amd64"},
|
||||
Goamd64: []string{"v1", "v431"},
|
||||
},
|
||||
expectedErr: "invalid goamd64: v431",
|
||||
},
|
||||
} {
|
||||
t.Run(s, func(t *testing.T) {
|
||||
config := config.Project{
|
||||
|
@ -276,6 +276,7 @@ func TestDefaultEmptyBuild(t *testing.T) {
|
||||
require.Equal(t, []string{"amd64", "arm64", "386"}, build.Goarch)
|
||||
require.Equal(t, []string{"6"}, build.Goarm)
|
||||
require.Equal(t, []string{"hardfloat"}, build.Gomips)
|
||||
require.Equal(t, []string{"v1"}, build.Goamd64)
|
||||
require.Len(t, build.Ldflags, 1)
|
||||
require.Equal(t, "-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser", build.Ldflags[0])
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user