about summary refs log tree commit diff
path: root/tests/misc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc.sh')
-rw-r--r--tests/misc.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/misc.sh b/tests/misc.sh
index d865df8ddeb6..2220ea18cb86 100644
--- a/tests/misc.sh
+++ b/tests/misc.sh
@@ -1,3 +1,5 @@
+source common.sh
+
 # Tests miscellaneous commands.
 
 # Do all commands have help?
@@ -6,3 +8,5 @@ $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"