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

27 lines
515 B
Go
Raw Normal View History

2017-08-27 13:18:23 -03:00
package linux
import (
"fmt"
"testing"
"github.com/stretchr/testify/require"
2017-08-27 13:18:23 -03:00
)
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",
2017-08-27 13:18:23 -03:00
} {
t.Run(fmt.Sprintf("%s to %s", from, to), func(t *testing.T) {
require.Equal(t, to, Arch(from))
2017-08-27 13:18:23 -03:00
})
}
}