nixpkgs/lib/tests/modules
Silvan Mosberger ce5e3113c3 lib/tests: Make sure the submodule type description can be evaluated
In 2d45a62899, the submodule type
description was amended with the freeformType description. This causes
all the modules passed to the submodule to be evaluated once on their
own, without any extra definitions from the config section. This means
that the specified modules need to be valid on their own, without any
undeclared options.

This commit adds a test that evaluates a submodules option description,
which would trigger the above problem for one of the tests, if it were
not fixed by this commit as well.

This is done because the next commit makes option evaluation a bit more
strict, which would also trigger this test failure, even though it's not
related to the change at all.
2021-05-03 22:15:33 +02:00
..
disable-recursive lib/tests: Add tests for recursive disabledModules 2020-01-09 17:26:08 +01:00
functionTo lib/tests: More functionTo tests 2021-01-27 00:17:56 +01:00
types-anything lib/tests: Add tests for types.anything 2020-09-15 21:06:05 +02:00
alias-with-priority-can-override.nix Fix the documentation for the tests to reflect what is actually happening. 2019-02-07 10:33:48 +09:00
alias-with-priority.nix Fix the documentation for the tests to reflect what is actually happening. 2019-02-07 10:33:48 +09:00
attrsOf-conditional-check.nix lib/tests: Add tests for attrsOf and lazyAttrsOf 2020-01-10 16:20:31 +01:00
attrsOf-lazy-check.nix lib/tests: Add tests for attrsOf and lazyAttrsOf 2020-01-10 16:20:31 +01:00
declare-attrsOf.nix lib/tests: Add tests for attrsOf and lazyAttrsOf 2020-01-10 16:20:31 +01:00
declare-attrsOfSub-any-enable.nix lib/tests: remove strictly loaOf tests and rebase on attrsOf 2020-01-06 10:39:19 -05:00
declare-coerced-value-unsound.nix lib/types: Add coercedTo unsound tests 2018-05-06 23:58:36 +02:00
declare-coerced-value.nix module tests: add tests for coercedTo 2017-02-02 01:53:00 +03:00
declare-either.nix lib/types: Add oneOf, extension of either to a list of types 2019-08-06 14:08:42 +02:00
declare-enable-nested.nix lib/tests: Check for nested option-dependent definitions 2020-03-19 03:50:47 +01:00
declare-enable.nix
declare-int-between-value.nix lib/types: update docs to match the new type names 2017-11-05 15:56:32 +01:00
declare-int-positive-value-nested.nix lib/tests: Check for nested option-dependent definitions 2020-03-19 03:50:47 +01:00
declare-int-positive-value.nix lib/types: add ints.positive. 2017-11-05 15:56:32 +01:00
declare-int-unsigned-value.nix lib/types: update docs to match the new type names 2017-11-05 15:56:32 +01:00
declare-lazyAttrsOf.nix lib/tests: Add tests for attrsOf and lazyAttrsOf 2020-01-10 16:20:31 +01:00
declare-oneOf.nix lib/types: Add oneOf, extension of either to a list of types 2019-08-06 14:08:42 +02:00
declare-submoduleWith-modules.nix lib/tests: Make sure the submodule type description can be evaluated 2021-05-03 22:15:33 +02:00
declare-submoduleWith-noshorthand.nix lib/tests: Add submoduleWith tests 2020-01-02 09:59:35 +01:00
declare-submoduleWith-path.nix lib/tests: Add submoduleWith tests 2020-01-02 09:59:35 +01:00
declare-submoduleWith-shorthand.nix lib/tests: Add submoduleWith tests 2020-01-02 09:59:35 +01:00
declare-submoduleWith-special.nix lib/tests: Add submoduleWith tests 2020-01-02 09:59:35 +01:00
default.nix modules: add support for module replacement with disabledModules 2017-03-03 13:45:22 +01:00
define-_module-args-custom.nix
define-attrsOfSub-bar-enable.nix lib/tests: remove strictly loaOf tests and rebase on attrsOf 2020-01-06 10:39:19 -05:00
define-attrsOfSub-bar.nix lib/tests: remove strictly loaOf tests and rebase on attrsOf 2020-01-06 10:39:19 -05:00
define-attrsOfSub-foo-enable-force.nix lib/tests: remove strictly loaOf tests and rebase on attrsOf 2020-01-06 10:39:19 -05:00
define-attrsOfSub-foo-enable-if.nix lib/tests: remove strictly loaOf tests and rebase on attrsOf 2020-01-06 10:39:19 -05:00
define-attrsOfSub-foo-enable.nix lib/tests: remove strictly loaOf tests and rebase on attrsOf 2020-01-06 10:39:19 -05:00
define-attrsOfSub-foo-force-enable.nix lib/tests: remove strictly loaOf tests and rebase on attrsOf 2020-01-06 10:39:19 -05:00
define-attrsOfSub-foo-if-enable.nix lib/tests: remove strictly loaOf tests and rebase on attrsOf 2020-01-06 10:39:19 -05:00
define-attrsOfSub-foo.nix lib/tests: remove strictly loaOf tests and rebase on attrsOf 2020-01-06 10:39:19 -05:00
define-attrsOfSub-force-foo-enable.nix lib/tests: remove strictly loaOf tests and rebase on attrsOf 2020-01-06 10:39:19 -05:00
define-attrsOfSub-if-foo-enable.nix lib/tests: remove strictly loaOf tests and rebase on attrsOf 2020-01-06 10:39:19 -05:00
define-enable-force.nix
define-enable-with-custom-arg.nix
define-enable.nix
define-force-attrsOfSub-foo-enable.nix lib/tests: remove strictly loaOf tests and rebase on attrsOf 2020-01-06 10:39:19 -05:00
define-force-enable.nix
define-if-attrsOfSub-foo-enable.nix lib/tests: remove strictly loaOf tests and rebase on attrsOf 2020-01-06 10:39:19 -05:00
define-module-check.nix
define-option-dependently-nested.nix lib/tests: Check for nested option-dependent definitions 2020-03-19 03:50:47 +01:00
define-option-dependently.nix lib/*: editorconfig fixes 2020-07-31 15:07:33 +10:00
define-submoduleWith-noshorthand.nix lib/tests: Add submoduleWith tests 2020-01-02 09:59:35 +01:00
define-submoduleWith-shorthand.nix lib/tests: Add submoduleWith tests 2020-01-02 09:59:35 +01:00
define-value-int-negative.nix lib/types: update docs to match the new type names 2017-11-05 15:56:32 +01:00
define-value-int-positive.nix lib/types: update docs to match the new type names 2017-11-05 15:56:32 +01:00
define-value-int-zero.nix lib/types: add ints.positive. 2017-11-05 15:56:32 +01:00
define-value-list.nix module tests: add tests for coercedTo 2017-02-02 01:53:00 +03:00
define-value-string-arbitrary.nix lib/types: Add coercedTo unsound tests 2018-05-06 23:58:36 +02:00
define-value-string-bigint.nix lib/types: Add coercedTo unsound tests 2018-05-06 23:58:36 +02:00
define-value-string-properties.nix lib/tests: Add tests for freeform modules 2020-08-03 22:37:01 +02:00
define-value-string.nix module tests: add tests for coercedTo 2017-02-02 01:53:00 +03:00
disable-declare-enable.nix modules: add support for module replacement with disabledModules 2017-03-03 13:45:22 +01:00
disable-define-enable.nix modules: add support for module replacement with disabledModules 2017-03-03 13:45:22 +01:00
disable-enable-modules.nix modules: add support for module replacement with disabledModules 2017-03-03 13:45:22 +01:00
freeform-attrsOf.nix lib/modules: Add syntactic sugar for config._module.freeformType 2020-08-14 22:49:04 +02:00
freeform-lazyAttrsOf.nix lib/modules: Add syntactic sugar for config._module.freeformType 2020-08-14 22:49:04 +02:00
freeform-nested.nix lib/tests: Add tests for freeform modules 2020-08-03 22:37:01 +02:00
freeform-str-dep-unstr.nix lib/tests: Add tests for freeform modules 2020-08-03 22:37:01 +02:00
freeform-unstr-dep-str.nix lib/tests: Add tests for freeform modules 2020-08-03 22:37:01 +02:00
import-custom-arg.nix
import-from-store.nix lib/tests: Fix module tests 2020-01-10 16:02:36 +01:00