1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 10:11:47 +02:00

Adds nix-shell test for special-cased ruby interpreter.

The test fakes the interpreter only to verify the arguments it would be
given.
This commit is contained in:
Samuel Dionne-Riel 2018-04-08 00:45:28 -04:00
parent 399f43c3d5
commit 9478f88681
3 changed files with 23 additions and 0 deletions

7
tests/shell.shebang.rb Normal file
View file

@ -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.")