From f0d6318dd1227dff81b84d62796371904e5c5b5f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 22 Feb 2006 14:02:44 +0000 Subject: [PATCH] * More tests. --- tests/Makefile.am | 3 ++- tests/misc.sh | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 tests/misc.sh diff --git a/tests/Makefile.am b/tests/Makefile.am index c120a4464..933da520b 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -22,6 +22,7 @@ TESTS_ENVIRONMENT = TEST_ROOT=$(TEST_ROOT) \ TOP=$(shell pwd)/.. \ SHARED=$(extra1) \ aterm_bin=$(aterm_bin) \ + dot=$(dot) \ $(SHELL) -e simple.sh: simple.nix @@ -40,7 +41,7 @@ user-envs.sh: user-envs.nix TESTS = init.sh hash.sh lang.sh simple.sh dependencies.sh locking.sh parallel.sh \ build-hook.sh substitutes.sh substitutes2.sh fallback.sh nix-push.sh gc.sh \ - gc-concurrent.sh verify.sh nix-pull.sh referrers.sh user-envs.sh + gc-concurrent.sh verify.sh nix-pull.sh referrers.sh user-envs.sh misc.sh XFAIL_TESTS = diff --git a/tests/misc.sh b/tests/misc.sh new file mode 100644 index 000000000..d865df8dd --- /dev/null +++ b/tests/misc.sh @@ -0,0 +1,8 @@ +# 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 +