summary refs log tree commit diff
path: root/nixos/tests/ammonite.nix
diff options
context:
space:
mode:
authorTim Steinbach <tim@nequissimus.com>2017-07-04 21:36:30 -0400
committerTim Steinbach <tim@nequissimus.com>2017-07-04 21:36:30 -0400
commitfbbf926ce956808509fc94fafcd8ce12b4d93934 (patch)
treedf3c50dc02eac2af2e4a8e7336d35c9d118725b4 /nixos/tests/ammonite.nix
parentaebe8586bc94ffe6c828abd2712475a14b681108 (diff)
downloadnixpkgs-fbbf926ce956808509fc94fafcd8ce12b4d93934.tar
nixpkgs-fbbf926ce956808509fc94fafcd8ce12b4d93934.tar.gz
nixpkgs-fbbf926ce956808509fc94fafcd8ce12b4d93934.tar.bz2
nixpkgs-fbbf926ce956808509fc94fafcd8ce12b4d93934.tar.lz
nixpkgs-fbbf926ce956808509fc94fafcd8ce12b4d93934.tar.xz
nixpkgs-fbbf926ce956808509fc94fafcd8ce12b4d93934.tar.zst
nixpkgs-fbbf926ce956808509fc94fafcd8ce12b4d93934.zip
ammonite: add test
Diffstat (limited to 'nixos/tests/ammonite.nix')
-rw-r--r--nixos/tests/ammonite.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/nixos/tests/ammonite.nix b/nixos/tests/ammonite.nix
new file mode 100644
index 00000000000..e1dee71fddf
--- /dev/null
+++ b/nixos/tests/ammonite.nix
@@ -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")
+  '';
+})