lix-releng-staging/tests/misc.sh

13 lines
394 B
Bash
Raw Normal View History

source common.sh
2006-02-22 14:02:44 +00:00
# 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
# Can we ask for the version number?
$TOP/src/nix-env/nix-env --version | grep "$version"