From 43243539b33d8fb0b2d14a3f9b79d6b641b74e2c Mon Sep 17 00:00:00 2001 From: Bas van Dijk Date: Tue, 7 Aug 2018 18:44:58 +0200 Subject: [PATCH] lib/tests/modules: add a test for the functionTo type (cherry picked from commit 478af112e83df806bd8a51174834d2a130fbdeb9) --- lib/tests/modules.sh | 3 +++ lib/tests/modules/functionTo.nix | 29 +++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 lib/tests/modules/functionTo.nix diff --git a/lib/tests/modules.sh b/lib/tests/modules.sh index 309c5311361..2d3a696e980 100755 --- a/lib/tests/modules.sh +++ b/lib/tests/modules.sh @@ -262,6 +262,9 @@ checkConfigOutput true config.value.mkbefore ./types-anything/mk-mods.nix checkConfigOutput 1 config.value.nested.foo ./types-anything/mk-mods.nix checkConfigOutput baz config.value.nested.bar.baz ./types-anything/mk-mods.nix +# Check the merge behaviour of the functionTo type. +checkConfigOutput "a b" config.result ./functionTo.nix + cat <