Bläddra i källkod

build(just): add itest, idump

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen 2 år sedan
förälder
incheckning
0c774e81c0
1 ändrade filer med 20 tillägg och 0 borttagningar
  1. 20 0
      Justfile

+ 20 - 0
Justfile

@@ -166,3 +166,23 @@ all-release: build-release test-release
     echo "```"
     echo "```"
     md5sum ./target/"bin-$(convco version)"/*
     md5sum ./target/"bin-$(convco version)"/*
     echo "```"
     echo "```"
+
+#---------------------#
+# Integration testing #
+#---------------------#
+
+# Runs integration tests in nix sandbox
+#
+# Required nix, likely won't work on windows.
+@itest:
+    nix build -L ./#trycmd
+
+# Runs integration tests in nix sandbox, and dumps outputs.
+#
+# WARNING: this can cause loss of work
+@idump:
+    rm ./tests/cmd/*nix.stderr -f || echo  
+    rm ./tests/cmd/*nix.stdout -f || echo
+    nix build -L ./#trydump
+    cp ./result/dump/*nix.* ./tests/cmd/
+