diff options
author | Ivan Mincik <ivan.mincik@gmail.com> | 2023-07-02 23:36:36 +0200 |
---|---|---|
committer | Ivan Mincik <ivan.mincik@gmail.com> | 2023-07-02 23:36:36 +0200 |
commit | 79dffec139fdfc7d086e360762f1815b86eae7c4 (patch) | |
tree | a87ecc13c54e21d7766960f894af1a5bf5e49525 /pkgs/applications/gis/grass/tests.nix | |
parent | dbb11d0990bdae1fa6466e91ce345ecf135a8717 (diff) |
grass: add package tests
Diffstat (limited to 'pkgs/applications/gis/grass/tests.nix')
-rw-r--r-- | pkgs/applications/gis/grass/tests.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/applications/gis/grass/tests.nix b/pkgs/applications/gis/grass/tests.nix new file mode 100644 index 0000000000000..1a38d07de7891 --- /dev/null +++ b/pkgs/applications/gis/grass/tests.nix @@ -0,0 +1,18 @@ +{ runCommand, grass }: + +let + inherit (grass) pname version; + +in +runCommand "${pname}-tests" { meta.timeout = 60; } + '' + HOME=$(mktemp -d) + + ${grass}/bin/grass --tmp-location EPSG:3857 --exec g.version \ + | grep 'GRASS ${version}' + + ${grass}/bin/grass --tmp-location EPSG:3857 --exec g.mapset -l \ + | grep 'PERMANENT' + + touch $out + '' |