mirror of
https://github.com/NixOS/nix
synced 2025-07-08 06:53:54 +02:00
nix/tests: run test help.sh only if nix is built with documentation
tests/functional/help.sh calls nix-* commands with option --help if nix is built without documentation the option --help throws an error because the man page it wants to display is missing
This commit is contained in:
parent
694c378d14
commit
85b0cd320a
3 changed files with 10 additions and 2 deletions
|
@ -114,7 +114,6 @@ nix_tests = \
|
|||
impure-env.sh \
|
||||
debugger.sh \
|
||||
extra-sandbox-profile.sh \
|
||||
help.sh
|
||||
|
||||
ifeq ($(HAVE_LIBCPUID), 1)
|
||||
nix_tests += compute-levels.sh
|
||||
|
@ -128,6 +127,10 @@ ifeq ($(ENABLE_BUILD), yes)
|
|||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(ENABLE_DOC_GEN), yes)
|
||||
nix_tests += help.sh
|
||||
endif
|
||||
|
||||
$(d)/test-libstoreconsumer.sh.test $(d)/test-libstoreconsumer.sh.test-debug: \
|
||||
$(buildprefix)$(d)/test-libstoreconsumer/test-libstoreconsumer
|
||||
$(d)/plugins.sh.test $(d)/plugins.sh.test-debug: \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue