Skip to content
Snippets Groups Projects
Commit c43aa360 authored by omni's avatar omni Committed by Simon Zeni
Browse files

community/hare: run tests stateless & enable tests on aarch64

- HARECACHE is hard-coded for the build, but hare-build(1) defaults
  for the tests, set HARECACHE in check() to avoid re-use of old cache
- move copying of config to prepare() & other minor cleanup
parent b76fb9c9
No related branches found
No related tags found
1 merge request!75989community/hare: run tests stateless & enable tests on aarch64
Pipeline #276055 skipped
......@@ -10,22 +10,20 @@ depends="qbe harec binutils"
makedepends="scdoc"
checkdepends="tzdata"
subpackages="$pkgname-doc"
source="
$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/hare/archive/$pkgver.tar.gz
"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/hare/archive/$pkgver.tar.gz"
case "$CARCH" in
# TODO: find out why these tests are failing on the package builder
aarch64) options="$options !check" ;;
esac
prepare() {
default_prepare
build() {
cp configs/linux.mk config.mk
make PREFIX=/usr ARCH=$CARCH VERSION="$pkgver"-alpine
}
build() {
make PREFIX=/usr ARCH="$CARCH" VERSION="$pkgver"-alpine
}
check() {
make ARCH=$CARCH STDLIB_SLOW_TESTS=1 check
make ARCH="$CARCH" STDLIB_SLOW_TESTS=1 HARECACHE=.testcache check
}
package() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment