ammonite: add test

This commit is contained in:
Tim Steinbach 2017-07-04 21:36:30 -04:00
parent aebe8586bc
commit fbbf926ce9
No known key found for this signature in database
GPG Key ID: 472BFCCA96BD0EDA

20
nixos/tests/ammonite.nix Normal file
View File

@ -0,0 +1,20 @@
import ./make-test.nix ({ pkgs, ...} : {
name = "ammonite";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ nequissimus ];
};
nodes = {
amm =
{ config, pkgs, ... }:
{
environment.systemPackages = [ pkgs.ammonite ];
};
};
testScript = ''
startAll;
$amm->succeed("amm -c 'val foo = 21; println(foo * 2)' | grep 42")
'';
})