diff options
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.nix | 13 |
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 + ''; +} + |