libtoxcore: Enable and fix up running test suite.

We not only require libcheck but also needed to disable a few tests,
without providing the former, test cases were signalled as being run
successfully but weren't actually run.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2014-07-28 20:27:20 +02:00
parent 40548fce62
commit e542ff7288
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, autoconf, libtool, automake, libsodium, ncurses, libopus
, libvpx, libconfig, pkgconfig }:
, libvpx, check, libconfig, pkgconfig }:
let
version = "e1158be5a6";
@ -14,6 +14,17 @@ stdenv.mkDerivation rec {
sha256 = "1rsh1pbwvngsx5slmd6608b1zqs3jvq70bjr9zyziap9vxka3z1v";
};
NIX_LDFLAGS = "-lgcc_s";
postPatch = ''
# within Nix chroot builds, localhost is unresolvable
sed -i -e '/DEFTESTCASE(addr_resolv_localhost)/d' \
auto_tests/network_test.c
# takes WAAAY too long (~10 minutes) and would timeout
sed -i -e '/DEFTESTCASE[^(]*(many_clients\>/d' \
auto_tests/tox_test.c
'';
preConfigure = ''
autoreconf -i
'';
@ -26,7 +37,7 @@ stdenv.mkDerivation rec {
buildInputs = [
autoconf libtool automake libsodium ncurses libopus
libvpx libconfig pkgconfig
libvpx check libconfig pkgconfig
];
doCheck = true;