about summary refs log blame commit diff
path: root/tests/misc.sh
blob: 9be2ac2f041cbb0c73cccb0eb5b628340c135a78 (plain) (tree)
1
2
3
4
5
6
7
8
9
                

                               


                                          
 
                                    



                                           
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"