aboutsummaryrefslogtreecommitdiff
path: root/tests/config.testscript
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-04-05 08:41:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-04-05 08:41:51 +0200
commitb74e3afa4ca810c8cc67f02eea3fd20971ab6f99 (patch)
tree544d232b732b83f7b2283b04610d3841cc51c4bb /tests/config.testscript
parentc3330099a9b36f902b6a1794cec209621d165dbb (diff)
Adjust tests to building via src_root for forwarded configurations
Diffstat (limited to 'tests/config.testscript')
-rw-r--r--tests/config.testscript42
1 files changed, 30 insertions, 12 deletions
diff --git a/tests/config.testscript b/tests/config.testscript
index b1cc325..6469698 100644
--- a/tests/config.testscript
+++ b/tests/config.testscript
@@ -19,7 +19,10 @@ deinit += -d prj
: name-dir
:
{
- $clone_root_prj;
+ # Note: custom cleanup to deal with backlinks.
+ #
+ #$clone_root_prj
+ cp -pr --no-cleanup ../../prj ./ &prj/***;
$* create @cfg cfg-dir $config_cxx 2>>/"EOE" &cfg-dir/***;
created configuration @cfg $~/cfg-dir/ 1 target default,forwarded,auto-synchronized
@@ -61,7 +64,7 @@ deinit += -d prj
EOO
$update @cfg 2>>~%EOE%;
- %(mkdir|c\+\+|ld) .+%{3}
+ %(mkdir|c\+\+|ld|ln) .+%{4}
EOE
$deinit @cfg 2>>/"EOE"
@@ -74,7 +77,10 @@ deinit += -d prj
: name
:
{
- $clone_root_prj;
+ # Note: custom cleanup to deal with backlinks.
+ #
+ #$clone_root_prj
+ cp -pr --no-cleanup ../../prj ./ &prj/***;
$* create -- @cfg $config_cxx 2>>/"EOE" &prj-cfg/***;
created configuration @cfg $~/prj-cfg/ 1 target default,forwarded,auto-synchronized
@@ -93,7 +99,7 @@ deinit += -d prj
EOO
$update @cfg 2>>~%EOE%;
- %(mkdir|c\+\+|ld) .+%{3}
+ %(mkdir|c\+\+|ld|ln) .+%{4}
EOE
$deinit @cfg 2>>/"EOE"
@@ -106,7 +112,10 @@ deinit += -d prj
: dir
:
{
- $clone_root_prj;
+ # Note: custom cleanup to deal with backlinks.
+ #
+ #$clone_root_prj
+ cp -pr --no-cleanup ../../prj ./ &prj/***;
$* create cfg $config_cxx 2>>/"EOE" &cfg/***;
created configuration $~/cfg/ 1 target default,forwarded,auto-synchronized
@@ -125,7 +134,7 @@ deinit += -d prj
EOO
$update -c cfg 2>>~%EOE%;
- %(mkdir|c\+\+|ld) .+%{3}
+ %(mkdir|c\+\+|ld|ln) .+%{4}
EOE
$deinit -c cfg 2>>/"EOE"
@@ -138,7 +147,10 @@ deinit += -d prj
: type
:
{
- $clone_root_prj;
+ # Note: custom cleanup to deal with backlinks.
+ #
+ #$clone_root_prj
+ cp -pr --no-cleanup ../../prj ./ &prj/***;
$* create --config-type host -- @cfg $config_cxx 2>>/"EOE" &prj-cfg/***;
created configuration @cfg $~/prj-cfg/ 1 host default,forwarded,auto-synchronized
@@ -157,7 +169,7 @@ deinit += -d prj
EOO
$update @cfg 2>>~%EOE%;
- %(mkdir|c\+\+|ld) .+%{3}
+ %(mkdir|c\+\+|ld|ln) .+%{4}
EOE
$deinit @cfg 2>>/"EOE"
@@ -205,7 +217,10 @@ deinit += -d prj
: add
:
{
- $clone_root_prj;
+ # Note: custom cleanup to deal with backlinks.
+ #
+ #$clone_root_prj
+ cp -pr --no-cleanup ../prj ./ &prj/***;
# Pre-create configurations.
#
@@ -246,7 +261,7 @@ deinit += -d prj
$update --all 2>>~%EOE%;
in configuration @cfg1:
- %(mkdir|c\+\+|ld) .+%{3}
+ %(mkdir|c\+\+|ld|ln) .+%{4}
in configuration @cfg2:
%(mkdir|c\+\+|ld) .+%{3}
@@ -357,7 +372,10 @@ deinit += -d prj
: rename
:
{
- $clone_root_prj;
+ # Note: custom cleanup to deal with backlinks.
+ #
+ #$clone_root_prj
+ cp -pr --no-cleanup ../prj ./ &prj/***;
$* create -- @cfg $config_cxx 2>>/"EOE" &prj-cfg/***;
created configuration @cfg $~/prj-cfg/ 1 target default,forwarded,auto-synchronized
@@ -374,7 +392,7 @@ deinit += -d prj
EOE
$update @cfg2 2>>~%EOE%;
- %(mkdir|c\+\+|ld) .+%{3}
+ %(mkdir|c\+\+|ld|ln) .+%{4}
EOE
$deinit 2>>/"EOE"