about summary refs log tree commit diff
path: root/nixos/tests/agda.nix
diff options
context:
space:
mode:
authorAlexander Ben Nasrallah <me@abn.sh>2021-01-22 17:25:29 +0100
committerAlexander Ben Nasrallah <me@abn.sh>2021-01-24 15:02:16 +0100
commit67e43b7453ec197e5045f64dc630b57a3160038f (patch)
treeedcbcca881d6b9aad62bb274341bdc0f9358e054 /nixos/tests/agda.nix
parentb4b4e369212c9f0f5792455a81424a27210a9c61 (diff)
nixos/tests/agda: check execution of HelloWorld
Test that the compiled executable actually runs.
Diffstat (limited to 'nixos/tests/agda.nix')
-rw-r--r--nixos/tests/agda.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/tests/agda.nix b/nixos/tests/agda.nix
index bbdeb7395aa7e..ccc6a9bbfd1ec 100644
--- a/nixos/tests/agda.nix
+++ b/nixos/tests/agda.nix
@@ -36,6 +36,10 @@ in
         "cp ${hello-world} HelloWorld.agda"
     )
     machine.succeed("agda -l standard-library -i . -c HelloWorld.agda")
+    # Check execution
+    assert "Hello World!" in machine.succeed(
+        "./HelloWorld"
+    ), "HelloWorld does not run properly"
   '';
 }
 )