about summary refs log tree commit diff
path: root/tests/misc.sh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-03-01T12·51+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-03-01T12·51+0000
commit84c4631221bc65643830173b4affe58b0dc58202 (patch)
tree19093aff12bbb33e1b377a2fdec688965e42029e /tests/misc.sh
parenta4c63c6e8e161d55778b797e566d9eca7c47f34f (diff)
* Simplification.
Diffstat (limited to 'tests/misc.sh')
-rw-r--r--tests/misc.sh14
1 files changed, 9 insertions, 5 deletions
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"