graphicsmagick: add passthru regression test for issue #157920
use a pdf from the documentation of `graphviz` as it's already a dependency
This commit is contained in:
parent
2eb5c569a8
commit
e379b45caa
@ -1,6 +1,9 @@
|
|||||||
{ lib, stdenv, fetchurl, bzip2, freetype, graphviz, ghostscript
|
{ lib, stdenv, fetchurl, bzip2, freetype, graphviz, ghostscript
|
||||||
, libjpeg, libpng, libtiff, libxml2, zlib, libtool, xz, libX11
|
, libjpeg, libpng, libtiff, libxml2, zlib, libtool, xz, libX11
|
||||||
, libwebp, quantumdepth ? 8, fixDarwinDylibNames, nukeReferences }:
|
, libwebp, quantumdepth ? 8, fixDarwinDylibNames, nukeReferences
|
||||||
|
, runCommand
|
||||||
|
, graphicsmagick # for passthru.tests
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "graphicsmagick";
|
pname = "graphicsmagick";
|
||||||
@ -40,6 +43,16 @@ stdenv.mkDerivation rec {
|
|||||||
sed -i 's/-ltiff.*'\'/\'/ $out/bin/*
|
sed -i 's/-ltiff.*'\'/\'/ $out/bin/*
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
tests = {
|
||||||
|
issue-157920 = runCommand "issue-157920-regression-test" {
|
||||||
|
buildInputs = [ graphicsmagick ];
|
||||||
|
} ''
|
||||||
|
gm convert ${graphviz}/share/graphviz/doc/pdf/neatoguide.pdf jpg:$out
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://www.graphicsmagick.org";
|
homepage = "http://www.graphicsmagick.org";
|
||||||
description = "Swiss army knife of image processing";
|
description = "Swiss army knife of image processing";
|
||||||
|
Loading…
Reference in New Issue
Block a user