From 9478f886810b8db87b7ebfe14343f77159c86a24 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Sun, 8 Apr 2018 00:45:28 -0400 Subject: Adds `nix-shell` test for special-cased ruby interpreter. The test fakes the interpreter only to verify the arguments it would be given. --- tests/shell.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/shell.nix') diff --git a/tests/shell.nix b/tests/shell.nix index 5845d36fc161..eb39f9039a88 100644 --- a/tests/shell.nix +++ b/tests/shell.nix @@ -45,5 +45,12 @@ let pkgs = rec { bash = shell; + # ruby "interpreter" that outputs "$@" + ruby = runCommand "ruby" {} '' + mkdir -p $out/bin + echo 'printf -- "$*"' > $out/bin/ruby + chmod a+rx $out/bin/ruby + ''; + inherit pkgs; }; in pkgs -- cgit 1.4.1