about summary refs log tree commit diff
path: root/pkgs/applications/gis/grass/tests.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/gis/grass/tests.nix')
-rw-r--r--pkgs/applications/gis/grass/tests.nix18
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
+  ''