* Simplification.
This commit is contained in:
parent
a4c63c6e8e
commit
84c4631221
21 changed files with 77 additions and 67 deletions
|
@ -3,10 +3,14 @@ source common.sh
|
|||
# Tests miscellaneous commands.
|
||||
|
||||
# Do all commands have help?
|
||||
$TOP/src/nix-env/nix-env --help | grep -q install
|
||||
$TOP/src/nix-store/nix-store --help | grep -q realise
|
||||
$TOP/src/nix-instantiate/nix-instantiate --help | grep -q eval-only
|
||||
$TOP/src/nix-hash/nix-hash --help | grep -q base32
|
||||
$nixenv --help | grep -q install
|
||||
$nixstore --help | grep -q realise
|
||||
$nixinstantiate --help | grep -q eval-only
|
||||
$nixhash --help | grep -q base32
|
||||
|
||||
# Can we ask for the version number?
|
||||
$TOP/src/nix-env/nix-env --version | grep "$version"
|
||||
$nixenv --version | grep "$version"
|
||||
|
||||
# Usage errors.
|
||||
$nixenv --foo 2>&1 | grep "no operation"
|
||||
$nixenv -q --foo 2>&1 | grep "unknown flag"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue