summaryrefslogtreecommitdiff
path: root/test/integration/test-apt-cli-list
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/test-apt-cli-list')
-rwxr-xr-xtest/integration/test-apt-cli-list9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/integration/test-apt-cli-list b/test/integration/test-apt-cli-list
index 40bf81a39..1487afd55 100755
--- a/test/integration/test-apt-cli-list
+++ b/test/integration/test-apt-cli-list
@@ -49,9 +49,11 @@ baz/now 0.1 all [installed,upgradable to: 2.0]
foobar/now 1.0 i386 [installed,upgradable to: 2.0]" apt list --installed
testequal "Listing...
+bar/now 1.0 i386 [installed,local]
+
foobar/unstable 2.0 i386 [upgradable from: 1.0]
foobar/now 1.0 i386 [installed,upgradable to: 2.0]
-" apt list foobar --all-versions
+" apt list bar foobar --all-versions
testequal "Listing...
bar/now 1.0 i386 [installed,local]
@@ -68,4 +70,7 @@ testequal "Listing...
baz/unstable 2.0 all [upgradable from: 0.1]
N: There are 2 additional versions. Please use the '-a' switch to see them." apt list baz -o quiet=0
-
+# test format strings for machine parseable output
+apt list -qq bar baz -o APT::Cmd::use-format=true -o APT::Cmd::format="\${Package} - \${installed:Version} - \${candidate:Version}" > output.txt
+testequal "bar - 1.0 - 1.0
+baz - 0.1 - 2.0" cat output.txt