lix/tests/misc.sh
2006-03-01 12:51:18 +00:00

16 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"