aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-03-02 22:16:28 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-03-04 19:18:25 +0300
commitedfeacac8a8f08f3b022cc561cc992d5a12fcf51 (patch)
treebc1c0d62b94716fa83114f05d9f6812d41c42e0a /tests
parent48f4687510f9c7ad2b0c2baff3b14a181201f221 (diff)
Add support for --stdout-format to bdep-status command
Diffstat (limited to 'tests')
-rw-r--r--tests/status.testscript46
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/status.testscript b/tests/status.testscript
index bf4339b..2977e4f 100644
--- a/tests/status.testscript
+++ b/tests/status.testscript
@@ -30,6 +30,23 @@ deinit += -d prj
$* >'prj configured 0.1.0-a.0.19700101000000';
+ $* --stdout-format 'json' >>/~"%EOO%";
+ [
+ {
+ "configuration": {
+ "id": 1,
+ "path": "$~/prj-cfg",
+ "name": "cfg"
+ },
+ "packages": [
+ {
+ %.+
+ }
+ ]
+ }
+ ]
+ EOO
+
$deinit 2>>/"EOE"
deinitializing in project $~/prj/
synchronizing:
@@ -55,6 +72,35 @@ deinit += -d prj
prj configured 0.1.0-a.0.19700101000000
EOO
+ $* --all --stdout-format 'json' >>/~"%EOO%";
+ [
+ {
+ "configuration": {
+ "id": 1,
+ "path": "$~/prj-cfg1",
+ "name": "cfg1"
+ },
+ "packages": [
+ {
+ %.+
+ }
+ ]
+ },
+ {
+ "configuration": {
+ "id": 2,
+ "path": "$~/prj-cfg2",
+ "name": "cfg2"
+ },
+ "packages": [
+ {
+ %.+
+ }
+ ]
+ }
+ ]
+ EOO
+
$deinit 2>>/"EOE"
deinitializing in project $~/prj/
synchronizing: