[Nix-dev] how to disable tests

Peter Simons simons at cryp.to
Sat Jan 26 10:55:41 CET 2013


Hi Christopher,

 > How do I run Nix with tests disabled?

there is no easy way to disable tests globally. In Nix, test cases are
supposed to succeed, really; a test failure is a serious issue.

My guess is that the gnutls test suite will work fine when run in a
chroot environment so that system paths outside of the Nix store are
invisible. If that is an option for you, then you can enable this
feature in /etc/nix/nix.conf.

An alternative solution would be to disable the tests for gnutls by
locally removing the "doCheck = true" from the expression found in
pkgs/development/libraries/gnutls/default.nix of the Nixpkgs tree.

Take care,
Peter



More information about the nix-dev mailing list