aboutsummaryrefslogtreecommitdiff
path: root/tests/cfg-create.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-07-19 19:26:34 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-07-20 17:30:05 +0300
commitd4c243bde6d3043b6e04adf249f13e8275ddd528 (patch)
tree361d57156be541189442a9e868c0b878e8f6ea20 /tests/cfg-create.testscript
parent5d513688ae07d96910dd1eef83bdad4e9d780373 (diff)
Add support for cfg-info
Diffstat (limited to 'tests/cfg-create.testscript')
-rw-r--r--tests/cfg-create.testscript76
1 files changed, 69 insertions, 7 deletions
diff --git a/tests/cfg-create.testscript b/tests/cfg-create.testscript
index b96a98f..e518eea 100644
--- a/tests/cfg-create.testscript
+++ b/tests/cfg-create.testscript
@@ -7,9 +7,7 @@ config_cxx = config.cxx=$quote($recall($cxx.path) $cxx.config.mode, true)
cfg_create += 2>!
-# @@ To verify the creation result use cfg-list command rather than
-# pkg-status, when implemented.
-#
+cfg_info += -d cfg
pkg_status += -d cfg
: non-empty
@@ -34,6 +32,13 @@ EOE
info: type: target
EOE
+ $cfg_info >>/~"%EOO%";
+ %path: .+/cfg/%
+ %uuid: .{36}%
+ type: target
+ %name: %
+ EOO
+
$pkg_status libfoo >'libfoo unknown'
}
@@ -46,6 +51,13 @@ EOE
info: type: target
EOE
+ $cfg_info >>/~"%EOO%";
+ %path: .+/cfg/%
+ %uuid: .{36}%
+ type: target
+ %name: %
+ EOO
+
$pkg_status libfoo >'libfoo unknown';
cat cfg/build/config.build >>/~"%EOO%"
@@ -64,6 +76,13 @@ EOE
info: type: target
EOE
+ $cfg_info >>/~"%EOO%";
+ %path: .+/cfg/%
+ %uuid: .{36}%
+ type: target
+ %name: %
+ EOO
+
$pkg_status libfoo >'libfoo unknown';
cat cfg/build/config.build >>/~"%EOO%"
@@ -84,6 +103,13 @@ EOE
info: type: target
EOE
+ $cfg_info >>/~"%EOO%";
+ %path: .+/cfg/%
+ %uuid: .{36}%
+ type: target
+ %name: %
+ EOO
+
$pkg_status libfoo >'libfoo unknown'
}
@@ -98,6 +124,13 @@ EOE
info: type: target
EOE
+ $cfg_info >>/~"%EOO%";
+ %path: .+/cfg/%
+ %uuid: .{36}%
+ type: target
+ %name: %
+ EOO
+
$pkg_status libfoo >'libfoo unknown'
}
}
@@ -117,8 +150,13 @@ EOE
info: name: foo
EOE
- # @@ To verify the result use cfg-list, when implemented.
- #
+ $cfg_info >>/~"%EOO%";
+ %path: .+/cfg/%
+ %uuid: .{36}%
+ type: target
+ name: foo
+ EOO
+
$pkg_status libfoo >'libfoo unknown'
}
@@ -145,6 +183,13 @@ EOE
info: type: host
EOE
+ $cfg_info >>/~"%EOO%";
+ %path: .+/cfg/%
+ %uuid: .{36}%
+ type: host
+ %name: %
+ EOO
+
$pkg_status libfoo >'libfoo unknown'
}
@@ -165,12 +210,22 @@ EOE
: valid
:
{
- $* --config-uuid '18f48b4b-b5d9-4712-b98c-1930df1c4228' 2>>/~%EOE% &cfg/***;
+ uuid='18f48b4b-b5d9-4712-b98c-1930df1c4228';
+
+ $* --config-uuid $uuid --name foo 2>>/~"%EOE%" &cfg/***;
%created new configuration in .+/cfg/%
- info: uuid: 18f48b4b-b5d9-4712-b98c-1930df1c4228
+ info: uuid: $uuid
info: type: target
+ info: name: foo
EOE
+ $cfg_info >>/~"%EOO%";
+ %path: .+/cfg/%
+ uuid: $uuid
+ type: target
+ name: foo
+ EOO
+
$pkg_status libfoo >'libfoo unknown'
}
@@ -200,6 +255,13 @@ EOE
info: type: target
EOE
+ $cfg_info >>/~"%EOO%";
+ %path: .+/cfg/%
+ %uuid: .{36}%
+ type: target
+ %name: %
+ EOO
+
$pkg_status libfoo >'libfoo unknown'
}