diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-07-02 18:32:45 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-07-02 18:32:45 +0200 |
commit | 5596f879b43c20e5115d7bf9fddb70cdeec78988 (patch) | |
tree | e5854569f6013bda16274d5834b80a67d24b38fc /tests | |
parent | b5e42536977d84359f5fea3f42cfefdd46799eb1 (diff) |
Add test for nix develop
Diffstat (limited to 'tests')
-rw-r--r-- | tests/nix-shell.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/nix-shell.sh b/tests/nix-shell.sh index 235e2a5ff..2ed40068a 100644 --- a/tests/nix-shell.sh +++ b/tests/nix-shell.sh @@ -55,3 +55,10 @@ chmod a+rx $TEST_ROOT/shell.shebang.rb output=$($TEST_ROOT/shell.shebang.rb abc ruby) [ "$output" = '-e load("'"$TEST_ROOT"'/shell.shebang.rb") -- abc ruby' ] + +# Test 'nix develop'. +nix develop -f shell.nix shellDrv -c sh -c '[[ -n $stdenv ]]' + +# Test 'nix print-dev-env'. +source <(nix print-dev-env -f shell.nix shellDrv) +[[ -n $stdenv ]] |