From edfeacac8a8f08f3b022cc561cc992d5a12fcf51 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 2 Mar 2022 22:16:28 +0300 Subject: Add support for --stdout-format to bdep-status command --- tests/status.testscript | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) (limited to 'tests') 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: -- cgit v1.1