nixpkgs/pkgs/development/libraries/geos/tests.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
383 B
Nix
Raw Normal View History

2022-12-14 11:32:49 +00:00
{ runCommand, geos }:
let
inherit (geos) pname;
in
2023-12-15 11:21:24 +00:00
runCommand "${pname}-tests" { meta.timeout = 60; }
2022-12-14 11:32:49 +00:00
''
${geos}/bin/geosop \
--explode \
--format wkt \
polygonize \
-a "MULTILINESTRING ((200 100, 100 100, 200 200), (200 200, 200 100), (200 200, 300 100, 200 100))" \
| grep 'POLYGON ((200 100, 100 100, 200 200, 200 100))'
touch $out
''