summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2026-01-20 14:04:20 +0100
committerJulian Andres Klode <jak@debian.org>2026-01-20 14:07:15 +0100
commit34876ed2e5cdf504e2a4f9721486d279ae5f3be6 (patch)
tree80f46c6ca2d0fd35e66a3d7d054cd33e0934f813 /test/integration
parent7fcbb7f89aa22af8761b878927330468193c5806 (diff)
why: Render info about all providers on virtual packages
Refactor code into a doOne helper lambda, and then add loop over the providers to use it. This fixes a crash seen by Benjamin in a nice way than just failing :) Reported-by: Benjamin Drung
Diffstat (limited to 'test/integration')
-rwxr-xr-xtest/integration/test-apt-cli-why7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/integration/test-apt-cli-why b/test/integration/test-apt-cli-why
index 8a4c94b30..8bcd0c4d9 100755
--- a/test/integration/test-apt-cli-why
+++ b/test/integration/test-apt-cli-why
@@ -13,6 +13,8 @@ insertpackage 'unstable' 'other-level-2' 'all' '1' 'Conflicts: level-2
Provides: level-2'
insertpackage 'unstable' 'almost-level-2' 'all' '1' 'Conflicts: level-2'
insertpackage 'unstable' 'level-3' 'all' '1' 'Conflicts: level-3'
+insertpackage 'unstable' 'provider-for-virtual-package' 'all' '1' 'Provides: virtual-package'
+insertpackage 'unstable' 'depends-on-not-really-virtual-package' 'all' '1' 'Depends: not-really-virtual-package'
setupaptarchive
testsuccess aptmark auto level-1 level-2
@@ -69,3 +71,8 @@ For context, additional choices that could not be installed:
testsuccessequal "level-3:amd64 is undecided" apt why level-3
+
+testsuccessequal "virtual-package:amd64 is a virtual package, printing all providers
+provider-for-virtual-package:amd64=1 is undecided" apt why virtual-package
+testsuccessequal "not-really-virtual-package:amd64 is a virtual package without a provider" apt why not-really-virtual-package
+