aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-08-06 19:25:23 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-08-09 13:45:36 +0300
commit6cb3eff4780aeeaf0757a0410f62f2cc5ac9f3b0 (patch)
treec6bc31b17da18ffc9966cb3d7ebff01bc3971cf7 /tests
parentecc0a1fa45008caf481ff337e60308804d3d22d8 (diff)
Add --link option to cfg-info
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';