From 84c4631221bc65643830173b4affe58b0dc58202 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 1 Mar 2006 12:51:18 +0000 Subject: * Simplification. --- tests/misc.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'tests/misc.sh') diff --git a/tests/misc.sh b/tests/misc.sh index 2220ea18cb86..9be2ac2f041c 100644 --- a/tests/misc.sh +++ b/tests/misc.sh @@ -3,10 +3,14 @@ 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 +$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? -$TOP/src/nix-env/nix-env --version | grep "$version" +$nixenv --version | grep "$version" + +# Usage errors. +$nixenv --foo 2>&1 | grep "no operation" +$nixenv -q --foo 2>&1 | grep "unknown flag" -- cgit 1.4.1