aboutsummaryrefslogtreecommitdiff
path: root/tests/update.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-07-09 20:55:15 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-07-20 17:08:09 +0300
commit07ab59a93f9447d5489743e8d7e19b6adb5ebbf1 (patch)
treeaa202b26e7ac2b3b6477855e250ab0464301fd2d /tests/update.testscript
parent8da242097fcaec5f3676f8d2296b639879825ddd (diff)
Add support for configuration type and bdep-config-link sub-command
Diffstat (limited to 'tests/update.testscript')
-rw-r--r--tests/update.testscript43
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/update.testscript b/tests/update.testscript
index 7e03238..3823b9d 100644
--- a/tests/update.testscript
+++ b/tests/update.testscript
@@ -88,3 +88,46 @@ deinit += -d prj
drop pkg2
EOE
}
+
+: multi-default-cfg
+:
+{
+ $new -t empty prj &prj/***;
+
+ $new --package pkg1 -d prj;
+ $new --package pkg2 -d prj;
+
+ $init -C @cfg1 -d prj/pkg1 &prj-cfg1/***;
+ $init -C @cfg2 -d prj/pkg2 --config-type host &prj-cfg2/***;
+
+ # Update.
+ #
+ $* -d prj 2>>~%EOE%;
+ in configuration @cfg1:
+ %(mkdir|c\+\+|ld) .+pkg1.+%{3}
+
+ in configuration @cfg2:
+ %(mkdir|c\+\+|ld) .+pkg2.+%{3}
+ EOE
+
+ # Clean.
+ #
+ $clean -d prj 2>>~%EOE%;
+ in configuration @cfg1:
+ %rm .+pkg1.+%{3}
+
+ in configuration @cfg2:
+ %rm .+pkg2.+%{3}
+ EOE
+
+ $deinit 2>>/"EOE"
+ deinitializing in project $~/prj/
+ in configuration @cfg1:
+ synchronizing:
+ drop pkg1
+
+ in configuration @cfg2:
+ synchronizing:
+ drop pkg2
+ EOE
+}