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
Phil DeMonaco 3fbba1b594 test: validate arch map for linuxpp64/ppc64le (#988)
I didn't notice the go testing framework when I made the first pull
request so these were left out. Not a big deal either way but we might
as well have complete tests.
2019-03-20 10:27:49 -03:00

26 lines
474 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",
"linuxarm6": "armel",
"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))
})
}
}