aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-06-04 16:29:00 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-06-04 16:29:00 +0300
commitf03160395525ac7e56be5de25544de6032910819 (patch)
treec4774956c87c2d6fdab9d219001e12f7ff95a5e2
parent42608bbb58c3da5c01659500c33a70298a41f6fb (diff)
Add test for bpkg-cfg-create --existing option
-rw-r--r--tests/cfg-create.testscript12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/cfg-create.testscript b/tests/cfg-create.testscript
index f7a2879..2403085 100644
--- a/tests/cfg-create.testscript
+++ b/tests/cfg-create.testscript
@@ -72,4 +72,16 @@ EOE
$pkg_status libfoo >'libfoo unknown'
}
+
+ : existing
+ :
+ {
+ $build 'create(cfg/,cc)' "config.cxx=$config.cxx" 2>!;
+
+ $* --existing 2>>/~%EOE%;
+ %initialized existing configuration in .+/cfg/%
+ EOE
+
+ $pkg_status libfoo >'libfoo unknown'
+ }
}