summary refs log tree commit diff
path: root/lib/tests/modules.sh
diff options
context:
space:
mode:
author(cdep)illabout <cdep.illabout@gmail.com>2019-01-06 18:10:03 +0900
committer(cdep)illabout <cdep.illabout@gmail.com>2019-01-06 18:10:03 +0900
commit7314d885a1547d3db6b0447fbeb3bcb1ff7f13de (patch)
tree3bb96a64cce1c70ed6e6c321a3b4d01b48a852fd /lib/tests/modules.sh
parentf24e2d0721c99acf84220d8ba56c66e422687669 (diff)
downloadnixpkgs-7314d885a1547d3db6b0447fbeb3bcb1ff7f13de.tar
nixpkgs-7314d885a1547d3db6b0447fbeb3bcb1ff7f13de.tar.gz
nixpkgs-7314d885a1547d3db6b0447fbeb3bcb1ff7f13de.tar.bz2
nixpkgs-7314d885a1547d3db6b0447fbeb3bcb1ff7f13de.tar.lz
nixpkgs-7314d885a1547d3db6b0447fbeb3bcb1ff7f13de.tar.xz
nixpkgs-7314d885a1547d3db6b0447fbeb3bcb1ff7f13de.tar.zst
nixpkgs-7314d885a1547d3db6b0447fbeb3bcb1ff7f13de.zip
Add test that shows that the aliases are able to override options.
Diffstat (limited to 'lib/tests/modules.sh')
-rwxr-xr-xlib/tests/modules.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/tests/modules.sh b/lib/tests/modules.sh
index 45f39178522..a72777cbf2a 100755
--- a/lib/tests/modules.sh
+++ b/lib/tests/modules.sh
@@ -151,6 +151,9 @@ checkConfigOutput "1 2 3 4 5 6 7 8 9 10" config.result ./loaOf-with-many-list-me
 
 # Check mkAliasOptionModuleWithPriority.
 checkConfigOutput "true" config.enable ./alias-with-priority.nix
+checkConfigOutput "true" config.enableAlias ./alias-with-priority.nix
+checkConfigOutput "false" config.enable ./alias-with-priority-can-override.nix
+checkConfigOutput "false" config.enableAlias ./alias-with-priority-can-override.nix
 
 cat <<EOF
 ====== module tests ======