unbound: enable tests
This commit is contained in:
parent
e48e2cf9c0
commit
3f0160288b
1 changed files with 9 additions and 0 deletions
|
@ -12,6 +12,8 @@
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, symlinkJoin
|
, symlinkJoin
|
||||||
|
, bison
|
||||||
|
, nixosTests
|
||||||
#
|
#
|
||||||
# By default unbound will not be built with systemd support. Unbound is a very
|
# By default unbound will not be built with systemd support. Unbound is a very
|
||||||
# commmon dependency. The transitive dependency closure of systemd also
|
# commmon dependency. The transitive dependency closure of systemd also
|
||||||
|
@ -91,6 +93,10 @@ stdenv.mkDerivation rec {
|
||||||
sed -E '/CONFCMDLINE/ s;${storeDir}/[a-z0-9]{32}-;${storeDir}/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-;g' -i config.h
|
sed -E '/CONFCMDLINE/ s;${storeDir}/[a-z0-9]{32}-;${storeDir}/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-;g' -i config.h
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
checkInputs = [ bison ];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
installFlags = [ "configfile=\${out}/etc/unbound/unbound.conf" ];
|
installFlags = [ "configfile=\${out}/etc/unbound/unbound.conf" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
@ -107,6 +113,7 @@ stdenv.mkDerivation rec {
|
||||||
configureFlags="$configureFlags --with-nettle=${nettle.dev} --with-libunbound-only"
|
configureFlags="$configureFlags --with-nettle=${nettle.dev} --with-libunbound-only"
|
||||||
configurePhase
|
configurePhase
|
||||||
buildPhase
|
buildPhase
|
||||||
|
checkPhase
|
||||||
installPhase
|
installPhase
|
||||||
''
|
''
|
||||||
# get rid of runtime dependencies on $dev outputs
|
# get rid of runtime dependencies on $dev outputs
|
||||||
|
@ -115,6 +122,8 @@ stdenv.mkDerivation rec {
|
||||||
(pkg: lib.optionalString (pkg ? dev) " --replace '-L${pkg.dev}/lib' '-L${pkg.out}/lib' --replace '-R${pkg.dev}/lib' '-R${pkg.out}/lib'")
|
(pkg: lib.optionalString (pkg ? dev) " --replace '-L${pkg.dev}/lib' '-L${pkg.out}/lib' --replace '-R${pkg.dev}/lib' '-R${pkg.out}/lib'")
|
||||||
(builtins.filter (p: p != null) buildInputs);
|
(builtins.filter (p: p != null) buildInputs);
|
||||||
|
|
||||||
|
passthru.tests = nixosTests.unbound;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Validating, recursive, and caching DNS resolver";
|
description = "Validating, recursive, and caching DNS resolver";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
|
|
Loading…
Reference in a new issue