mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 02:36:16 +02:00
Merge pull request #11729 from emhamm/nix-tests-help-only-if-docu
nix/tests: run test help.sh only if nix is built with documentation
This commit is contained in:
commit
3db75b0060
3 changed files with 10 additions and 2 deletions
|
@ -170,6 +170,10 @@ AS_IF(
|
||||||
[test "$ENABLE_FUNCTIONAL_TESTS" == "yes" || test "$ENABLE_DOC_GEN" == "yes"],
|
[test "$ENABLE_FUNCTIONAL_TESTS" == "yes" || test "$ENABLE_DOC_GEN" == "yes"],
|
||||||
[NEED_PROG(jq, jq)])
|
[NEED_PROG(jq, jq)])
|
||||||
|
|
||||||
|
AS_IF(
|
||||||
|
[test "$ENABLE_DOC_GEN" == "yes"],
|
||||||
|
[NEED_PROG(man, man)])
|
||||||
|
|
||||||
AS_IF([test "$ENABLE_BUILD" == "yes"],[
|
AS_IF([test "$ENABLE_BUILD" == "yes"],[
|
||||||
|
|
||||||
# Look for boost, a required dependency.
|
# Look for boost, a required dependency.
|
||||||
|
|
|
@ -207,9 +207,10 @@ in {
|
||||||
git
|
git
|
||||||
mercurial
|
mercurial
|
||||||
openssh
|
openssh
|
||||||
man # for testing `nix-* --help`
|
|
||||||
] ++ lib.optionals (doInstallCheck || enableManual) [
|
] ++ lib.optionals (doInstallCheck || enableManual) [
|
||||||
jq # Also for custom mdBook preprocessor.
|
jq # Also for custom mdBook preprocessor.
|
||||||
|
] ++ lib.optionals enableManual [
|
||||||
|
man
|
||||||
] ++ lib.optional stdenv.hostPlatform.isStatic unixtools.hexdump
|
] ++ lib.optional stdenv.hostPlatform.isStatic unixtools.hexdump
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,6 @@ nix_tests = \
|
||||||
impure-env.sh \
|
impure-env.sh \
|
||||||
debugger.sh \
|
debugger.sh \
|
||||||
extra-sandbox-profile.sh \
|
extra-sandbox-profile.sh \
|
||||||
help.sh
|
|
||||||
|
|
||||||
ifeq ($(HAVE_LIBCPUID), 1)
|
ifeq ($(HAVE_LIBCPUID), 1)
|
||||||
nix_tests += compute-levels.sh
|
nix_tests += compute-levels.sh
|
||||||
|
@ -128,6 +127,10 @@ ifeq ($(ENABLE_BUILD), yes)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(ENABLE_DOC_GEN), yes)
|
||||||
|
nix_tests += help.sh
|
||||||
|
endif
|
||||||
|
|
||||||
$(d)/test-libstoreconsumer.sh.test $(d)/test-libstoreconsumer.sh.test-debug: \
|
$(d)/test-libstoreconsumer.sh.test $(d)/test-libstoreconsumer.sh.test-debug: \
|
||||||
$(buildprefix)$(d)/test-libstoreconsumer/test-libstoreconsumer
|
$(buildprefix)$(d)/test-libstoreconsumer/test-libstoreconsumer
|
||||||
$(d)/plugins.sh.test $(d)/plugins.sh.test-debug: \
|
$(d)/plugins.sh.test $(d)/plugins.sh.test-debug: \
|
||||||
|
|
Loading…
Reference in a new issue