testing/nix: enable check()

This commit is contained in:
Sören Tempel 2024-02-04 22:04:06 +01:00 committed by Sören Tempel
parent 428901d4be
commit ba2a6004ec

View File

@ -40,6 +40,7 @@ makedepends="
mdbook
nlohmann-json
openssl-dev
rapidcheck-dev
sqlite-dev
xz
xz-dev
@ -55,12 +56,6 @@ subpackages="
$pkgname-fish-completion
$pkgname-zsh-completion
"
# TODO: Tests require rapidcheck which is a poorly maintained C++
# library without tagged releases, versioned sonames, and more.
# Hence, we really don't want to package it right now just for nix.
#
# See: https://github.com/emil-e/rapidcheck/issues/255
options="!check"
source="https://github.com/NixOS/nix/archive/$pkgver/nix-$pkgver.tar.gz
0001-absPath-Explicitly-check-if-path-is-empty-before-acc.patch
README.alpine
@ -89,8 +84,7 @@ build() {
--localstatedir=/nix/var \
--with-sandbox-shell=/bin/busybox.static \
--enable-embedded-sandbox-shell \
--enable-gc \
--disable-unit-tests
--enable-gc
make
}