aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/cfg-create.testscript12
-rw-r--r--tests/cfg-link.testscript46
2 files changed, 53 insertions, 5 deletions
diff --git a/tests/cfg-create.testscript b/tests/cfg-create.testscript
index 25225ba..e69629d 100644
--- a/tests/cfg-create.testscript
+++ b/tests/cfg-create.testscript
@@ -255,11 +255,21 @@ EOE
type: target
EOE
- $cfg_info >>/~"%EOO%";
+ $cfg_info --link >>/~"%EOO%";
%path: .+/cfg/%
%uuid: .{36}%
type: target
%name: %
+
+ %path: .+/host/%
+ %uuid: .{36}%
+ type: host
+ %name: %
+
+ %path: .+/build2/%
+ %uuid: .{36}%
+ type: build2
+ %name: %
EOO
$pkg_status libfoo >'libfoo unknown'
diff --git a/tests/cfg-link.testscript b/tests/cfg-link.testscript
index 5d903f2..26496eb 100644
--- a/tests/cfg-link.testscript
+++ b/tests/cfg-link.testscript
@@ -4,10 +4,7 @@
.include common.testscript
cfg_create += 2>!
-
-# @@ To verify the linking result use cfg-list command rather than pkg-status,
-# when implemented.
-#
+cfg_info += --link
test.arguments += -d cfg
@@ -44,6 +41,18 @@ acfg_uuid = '28f48b4b-b5d9-4712-b98c-1930df1c4228'
id: 1
EOE
+ $cfg_info -d cfg >>/~"%EOO%";
+ path: $~/cfg/
+ %uuid: .{36}%
+ type: target
+ name: main
+
+ path: $~/acfg/
+ uuid: $acfg_uuid
+ type: target
+ name: shared
+ EOO
+
$pkg_status -d cfg libfoo >'libfoo unknown';
$pkg_status -d acfg libfoo >'libfoo unknown';
@@ -107,6 +116,23 @@ acfg_uuid = '28f48b4b-b5d9-4712-b98c-1930df1c4228'
rm -r acfg;
$cfg_create -d acfg --name 'shared' --uuid "$acfg_uuid" &acfg/***;
+ $cfg_info -d cfg >>/~"%EOO%";
+ path: $~/cfg/
+ %uuid: .{36}%
+ type: target
+ name: test
+
+ path: $~/acfg/
+ uuid: $acfg_uuid
+ type: target
+ name: shared
+
+ path: $~/acfg2/
+ %uuid: .{36}%
+ type: target
+ name: shared
+ EOO
+
$pkg_status -d cfg libfoo >'libfoo unknown';
$pkg_status -d acfg2 libfoo >'libfoo unknown';
@@ -134,6 +160,18 @@ acfg_uuid = '28f48b4b-b5d9-4712-b98c-1930df1c4228'
id: 1
EOE
+ $cfg_info -d acfg2 >>/~"%EOO%";
+ path: $~/acfg2/
+ %uuid: .{36}%
+ type: target
+ name: shared
+
+ path: $~/cfg/
+ %uuid: .{36}%
+ type: target
+ name: test
+ EOO
+
$pkg_status -d cfg libfoo >'libfoo unknown';
$pkg_status -d acfg2 libfoo >'libfoo unknown';