Re: [Nix-dev] how to disable tests

2013-01-25 Thread Marc Weber
Excerpts from Christopher Howard's message of Sat Jan 26 01:36:14 +0100 2013:
> Hi. I'm trying to build emacs-24.2, but I can't because guile-2.0.7
> won't build. One test failed. Personally, I don't care.
There is always the option to fix a test .. so eventually also talk
about the error.

You don't want to run nix without tests. If eg nix tests fails you're at
risk.

So how to disable tests for emacs only?

try adding 
  doCheck = false;

to the emacs builder or commenting check phase.

  checkPhase = ":"; # : is a a short command returning 0 exit code.

Does nix suppoprt disabling tests for gentoo only?
Don't know. grep for doCheck to see how its done for other packages.
Probably system is just linux and not "gentoo".

Marc Weber
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] how to disable tests

2013-01-26 Thread Peter Simons
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

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] how to disable tests

2013-01-26 Thread Ludovic Courtès
Hi Christopher,

Christopher Howard  skribis:

> Totals for this test run:
> passes: 34732
> failures:   0
> unexpected passes:  0
> expected failures:  6
> unresolved test cases:  569
> untested test cases:1
> unsupported test cases: 9
> errors: 1

One of Guile’s unit tests fails with an error, but its name is not
apparent from the excerpt that you posted.

Can you run ‘nix-build -K guile’, then cd to
/tmp/nix-build-*guile-2.0.7.*, and run:

  $ grep ^ERROR check-guile.log

TIA,
Ludo’.

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev