Merge pull request #137421 from risicle/ris-ghostscript-install-tests

ghostscript: disable checkPhase, expand installCheckPhase
This commit is contained in:
Robert Scott 2021-09-12 12:32:19 +01:00 committed by GitHub
commit 8dba41756b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,8 @@ stdenv.mkDerivation rec {
"--with-cups-datadir=$(out)/share/cups"
];
doCheck = true;
# make check does nothing useful
doCheck = false;
# don't build/install statically linked bin/gs
buildFlags = [ "so" ];
@ -120,6 +121,19 @@ stdenv.mkDerivation rec {
runHook preInstallCheck
$out/bin/gs --version
pushd examples
for f in *.{ps,eps,pdf}; do
echo "Rendering $f"
$out/bin/gs \
-dNOPAUSE \
-dBATCH \
-sDEVICE=bitcmyk \
-sOutputFile=/dev/null \
-r600 \
-dBufferSpace=100000 \
$f
done
popd # examples
runHook postInstallCheck
'';