1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00
goreleaser/internal/linux/arch_test.go
Carlos Alexandro Becker 7e809382df
fix: armhf on arm v6 (#1027)
* fix: armhf on arm v6

* fix: armel is arm5, so fix test
2019-05-29 09:09:52 -03:00

27 lines
513 B
Go

package linux
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
func TestArch(t *testing.T) {
for from, to := range map[string]string{
"linuxamd64": "amd64",
"linux386": "i386",
"linuxarm64": "arm64",
"linuxarm5": "armel",
"linuxarm6": "armhf",
"linuxarm7": "armhf",
"linuxppc64": "ppc64",
"linuxppc64le": "ppc64le",
"linuxwhat": "what",
} {
t.Run(fmt.Sprintf("%s to %s", from, to), func(t *testing.T) {
assert.Equal(t, to, Arch(from))
})
}
}