about summary refs log tree commit diff
path: root/tests/misc.sh
blob: 2220ea18cb86372523c3d472a406764985109101 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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

# Can we ask for the version number?
$TOP/src/nix-env/nix-env --version | grep "$version"