mirror of
https://github.com/NixOS/nix
synced 2025-07-07 14:21:48 +02:00
* Refactoring: remove unnecessary variables from the tests.
This commit is contained in:
parent
cd6d02c366
commit
8af7d766f0
33 changed files with 220 additions and 235 deletions
|
@ -3,14 +3,14 @@ source common.sh
|
|||
# Tests miscellaneous commands.
|
||||
|
||||
# Do all commands have help?
|
||||
$nixenv --help | grep -q install
|
||||
$nixstore --help | grep -q realise
|
||||
$nixinstantiate --help | grep -q eval-only
|
||||
$nixhash --help | grep -q base32
|
||||
nix-env --help | grep -q install
|
||||
nix-store --help | grep -q realise
|
||||
nix-instantiate --help | grep -q eval-only
|
||||
nix-hash --help | grep -q base32
|
||||
|
||||
# Can we ask for the version number?
|
||||
$nixenv --version | grep "$version"
|
||||
nix-env --version | grep "$version"
|
||||
|
||||
# Usage errors.
|
||||
$nixenv --foo 2>&1 | grep "no operation"
|
||||
$nixenv -q --foo 2>&1 | grep "unknown flag"
|
||||
nix-env --foo 2>&1 | grep "no operation"
|
||||
nix-env -q --foo 2>&1 | grep "unknown flag"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue