Merge pull request #43700 from oxij/tree/more-test-fixes

treewide: more fixes to tests

authored by Matthew Bauer and committed by GitHub 856743f1 40691493

+21 -3
+2
pkgs/development/libraries/at-spi2-atk/default.nix
··· 27 27 nativeBuildInputs = [ meson ninja pkgconfig ]; 28 28 buildInputs = [ at-spi2-core atk dbus glib libxml2 ]; 29 29 30 + doCheck = false; # fails with "No test data file provided" 31 + 30 32 passthru = { 31 33 updateScript = gnome3.updateScript { 32 34 packageName = pname;
+2
pkgs/development/libraries/at-spi2-core/default.nix
··· 30 30 nativeBuildInputs = [ meson ninja pkgconfig gobjectIntrospection ]; 31 31 buildInputs = [ dbus glib libX11 libXtst libXi ]; 32 32 33 + doCheck = false; # fails with "AT-SPI: Couldn't connect to accessibility bus. Is at-spi-bus-launcher running?" 34 + 33 35 passthru = { 34 36 updateScript = gnome3.updateScript { 35 37 packageName = pname;
+8 -1
pkgs/development/libraries/fribidi/default.nix
··· 5 5 , ninja 6 6 , pkgconfig 7 7 , fixDarwinDylibNames 8 + , python3 8 9 }: 9 10 10 11 stdenv.mkDerivation rec { 11 12 name = "${pname}-${version}"; 12 13 pname = "fribidi"; 13 14 version = "1.0.4"; 15 + 16 + outputs = [ "out" "devdoc" ]; 14 17 15 18 # NOTE: 2018-06-06 v1.0.4: Only URL tarball has "Have pre-generated man pages: true", which works-around upstream usage of some rare ancient `c2man` fossil application. 16 19 src = fetchurl { ··· 18 21 sha256 = "1gipy8fjyn6i4qrhima02x8xs493d21f22dijp88nk807razxgcl"; 19 22 }; 20 23 24 + postPatch = '' 25 + patchShebangs test 26 + ''; 27 + 21 28 nativeBuildInputs = [ meson ninja pkgconfig ]; 22 29 buildInputs = stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames; 23 30 24 - outputs = [ "out" "devdoc" ]; 31 + checkInptus = [ python3 ]; 25 32 26 33 meta = with stdenv.lib; { 27 34 homepage = https://github.com/fribidi/fribidi;
+2
pkgs/development/libraries/libnice/default.nix
··· 12 12 buildInputs = [ gst_all_1.gstreamer gst_all_1.gst-plugins-base gnutls ]; 13 13 propagatedBuildInputs = [ glib gupnp-igd ]; 14 14 15 + doCheck = false; # fails with "fatal error: nice/agent.h: No such file or directory" 16 + 15 17 meta = { 16 18 homepage = https://nice.freedesktop.org/wiki/; 17 19 description = "The GLib ICE implementation";
+7 -2
pkgs/development/libraries/librdf/default.nix
··· 1 1 { stdenv, fetchurl, pkgconfig, autoreconfHook 2 2 , librdf_raptor2, ladspaH, openssl, zlib 3 + , doCheck ? stdenv.config.doCheckByDefault or false, ladspaPlugins 3 4 }: 4 5 5 6 stdenv.mkDerivation rec { ··· 10 11 url = "http://github.com/swh/LRDF/archive/${version}.tar.gz"; 11 12 sha256 = "18p2flb2sv2hq6w2qkd29z9c7knnwqr3f12i2srshlzx6vwkm05s"; 12 13 }; 14 + 15 + postPatch = stdenv.lib.optionalString doCheck '' 16 + sed -i -e 's:usr/local:${ladspaPlugins}:' examples/{instances,remove}_test.c 17 + ''; 13 18 14 19 preAutoreconf = "rm m4/*"; 15 - postPatch = "sed -i -e 's:usr/local:usr:' examples/{instances,remove}_test.c"; 16 - 17 20 nativeBuildInputs = [ autoreconfHook pkgconfig ]; 18 21 buildInputs = [ ladspaH openssl zlib ]; 19 22 20 23 propagatedBuildInputs = [ librdf_raptor2 ]; 24 + 25 + inherit doCheck; 21 26 22 27 meta = { 23 28 description = "Lightweight RDF library with special support for LADSPA plugins";