aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-03-31 08:07:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-03-31 08:07:02 +0200
commitb679b1452d6513c0769928a2238ccd367c2b78f7 (patch)
treecbaaab7b6a59d5abe0e23dd856f2a61276136822 /tests
parent9024e707e82f80230caa488a499ecaae563f585e (diff)
Handle duplicate config directives for same variable
Diffstat (limited to 'tests')
-rw-r--r--tests/directive/config.testscript10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/directive/config.testscript b/tests/directive/config.testscript
index f77a098..e84ca0a 100644
--- a/tests/directive/config.testscript
+++ b/tests/directive/config.testscript
@@ -180,6 +180,8 @@ test.arguments =
config [string, config.report.variable=e] config.test.e ?= abc
config [ config.report] f
config [bool] config.test.n ?= [null]
+ config [bool] config.test.p
+ config [bool] config.test.p ?= true
e = "'$config.test.e'"
f = ($config.test.b || $config.test.c)
@@ -206,11 +208,16 @@ test.arguments =
e 'abc'
f true
n [null]
+ p true
EOO
# Configured.
#
- $* configure config.test.a=true config.test.e=xyz config.test.n=true;
+ $* configure \
+ config.test.a=true \
+ config.test.e=xyz \
+ config.test.n=true \
+ config.test.p=false;
$* noop -v;
$* noop -V 2>>~/EOO/;
/config test@.+/
@@ -223,6 +230,7 @@ test.arguments =
e 'xyz'
f true
n true
+ p false
EOO
$* disfigure
}