blob: 8913e41d6d85945305ea79f4e0e790a8ea0a6caa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// package arch contains mappings between the Golang architecture and
// the RPM architecture used by Fedora CoreOS and derivatives.
package arch
import (
"runtime"
"testing"
"github.com/stretchr/testify/assert"
)
func TestMapping(t *testing.T) {
// Validate bidirectional mapping for current architecture
assert.Equal(t, GoArch(CurrentRpmArch()), runtime.GOARCH)
assert.Equal(t, GoArch("x86_64"), "amd64")
assert.Equal(t, GoArch("aarch64"), "arm64")
assert.Equal(t, GoArch("ppc64le"), "ppc64le")
}
|