mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
17 lines
400 B
Bash
17 lines
400 B
Bash
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
|
|
|
|
# Can we ask for the version number?
|
|
$nixenv --version | grep "$version"
|
|
|
|
# Usage errors.
|
|
$nixenv --foo 2>&1 | grep "no operation"
|
|
$nixenv -q --foo 2>&1 | grep "unknown flag"
|