about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/compilers/lobster/test-can-run-hello-world.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/compilers/lobster/test-can-run-hello-world.nix')
-rw-r--r--nixpkgs/pkgs/development/compilers/lobster/test-can-run-hello-world.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/compilers/lobster/test-can-run-hello-world.nix b/nixpkgs/pkgs/development/compilers/lobster/test-can-run-hello-world.nix
new file mode 100644
index 000000000000..ceb0536b582c
--- /dev/null
+++ b/nixpkgs/pkgs/development/compilers/lobster/test-can-run-hello-world.nix
@@ -0,0 +1,13 @@
+{ stdenv, lobster }:
+
+stdenv.mkDerivation {
+  name = "lobster-test-can-run-hello-world";
+  meta.timeout = 10;
+  buildCommand = ''
+    ${lobster}/bin/lobster \
+      ${lobster}/share/Lobster/samples/rosettacode/hello_world_test.lobster \
+      | grep 'Goodbye, World!'
+    touch $out
+  '';
+}
+