diff options
author | Samuel Dionne-Riel <samuel@dionne-riel.com> | 2018-04-08T04·45-0400 |
---|---|---|
committer | Samuel Dionne-Riel <samuel@dionne-riel.com> | 2018-04-08T04·45-0400 |
commit | 9478f886810b8db87b7ebfe14343f77159c86a24 (patch) | |
tree | 9ffff18948b25ac7149589dcac4e131c58492f9e /tests/shell.shebang.rb | |
parent | 399f43c3d5fe91db3a2d6968d8ec30a4d6fbf285 (diff) |
Adds `nix-shell` test for special-cased ruby interpreter.
The test fakes the interpreter only to verify the arguments it would be given.
Diffstat (limited to 'tests/shell.shebang.rb')
-rw-r--r-- | tests/shell.shebang.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/shell.shebang.rb b/tests/shell.shebang.rb new file mode 100644 index 000000000000..ea3953ae21ba --- /dev/null +++ b/tests/shell.shebang.rb @@ -0,0 +1,7 @@ +#! @ENV_PROG@ nix-shell +#! ruby +#! nix-shell -I nixpkgs=shell.nix --no-substitute +#! nix-shell --pure -p ruby -i ruby + +# Contents doesn't matter. +abort("This shouldn't be executed.") |