mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 14:31:02 +02:00
coreos-base/coretest: Update for arm64
Add arm64 keywords and convert to coreos-go eclass. Signed-off-by: Geoff Levand <geoff@infradead.org>
This commit is contained in:
parent
529ef1aae0
commit
1d9b0523c7
@ -5,16 +5,16 @@ EAPI=5
|
|||||||
CROS_WORKON_PROJECT="coreos/coretest"
|
CROS_WORKON_PROJECT="coreos/coretest"
|
||||||
CROS_WORKON_LOCALNAME="coretest"
|
CROS_WORKON_LOCALNAME="coretest"
|
||||||
CROS_WORKON_REPO="git://github.com"
|
CROS_WORKON_REPO="git://github.com"
|
||||||
|
COREOS_GO_PACKAGE="github.com/coreos/coretest"
|
||||||
|
inherit cros-workon coreos-go
|
||||||
|
|
||||||
if [[ "${PV}" == 9999 ]]; then
|
if [[ "${PV}" == 9999 ]]; then
|
||||||
KEYWORDS="~amd64 ~arm ~x86"
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||||
else
|
else
|
||||||
CROS_WORKON_COMMIT="7ddccba648523fd041c0f729bcaec48c6e253c1a"
|
CROS_WORKON_COMMIT="7ddccba648523fd041c0f729bcaec48c6e253c1a"
|
||||||
KEYWORDS="amd64 arm x86"
|
KEYWORDS="amd64 arm64 x86"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
inherit cros-workon
|
|
||||||
|
|
||||||
DESCRIPTION="Sanity tests for CoreOS"
|
DESCRIPTION="Sanity tests for CoreOS"
|
||||||
HOMEPAGE="https://github.com/coreos/coretest"
|
HOMEPAGE="https://github.com/coreos/coretest"
|
||||||
SRC_URI=""
|
SRC_URI=""
|
||||||
@ -23,12 +23,13 @@ LICENSE="Apache-2.0"
|
|||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE=""
|
IUSE=""
|
||||||
|
|
||||||
DEPEND=">=dev-lang/go-1.1"
|
src_prepare() {
|
||||||
|
coreos-go_src_prepare
|
||||||
src_compile() {
|
GOPATH+=":${S}/third_party"
|
||||||
./build || die
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
dobin "${S}/${PN}"
|
go test -i -c -o "${GOBIN}/coretest" "github.com/coreos/coretest" \
|
||||||
|
|| die "go test failed"
|
||||||
|
dobin "${GOBIN}/coretest"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user