apk-tools/test
Timo Teräs e4dc2373d6 solver: do not auto select virtual-only package with one provider
This reverts most of 0dcbd933 which allowed automatic selection
of package with a "virtual provides" having only one provider.
While convenient, it creates problems if multiple versions of the
same package exist, or if in future other providers would be added
to one of the repositories. This restore the original behaviour,
and improve the error message to tell the user to mention one of
the providers explicitly.

fixes #10810
2022-02-24 14:18:41 +02:00
..
repo1 test: modernize testing APKBUILDs 2017-06-11 12:49:00 +02:00
repo2 test: modernize testing APKBUILDs 2017-06-11 12:49:00 +02:00
.gitignore test: dont run sh manually but respect #!/bin/sh in each test 2010-06-15 15:53:32 +00:00
Makefile test: improve posix sh compatibility 2021-09-03 15:02:12 +03:00
basic.installed solver: new package selection logic (which is not yet used) 2011-07-26 17:08:43 +03:00
basic.installed2 solver: permutate each preferred solution first 2011-07-27 20:45:38 +03:00
basic.repo solver: prune broken world dependencies with --force 2013-06-13 18:22:00 +03:00
basic1.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
basic2.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
basic3.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
basic4.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
basic5.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
basic6.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
basic7.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
basic8.test add: warn when creating empty virtual packages 2021-09-03 13:24:39 +03:00
basic9.test reset TZ when running solver tests as some output has local time 2019-06-05 10:10:17 +03:00
basic10.test solver: prune broken world dependencies with --force 2013-06-13 18:22:00 +03:00
basic11.test solver: prune broken world dependencies with --force 2013-06-13 18:22:00 +03:00
basic12.test commit: rephrase the error messages more understandable 2020-10-03 13:58:30 +03:00
basic13.test commit: rephrase the error messages more understandable 2020-10-03 13:58:30 +03:00
basic14.test solver: properly order deletion of unneeded packages 2013-06-19 20:46:53 +03:00
basic15.test del: allow deletion of world dependency when it is not installed 2014-05-19 08:49:55 +03:00
basic16.test solver: fix installation of non-repository packages during tmpfs boot 2014-05-19 11:50:10 +03:00
command-parsing.sh remove tests connected to help output validation 2020-01-26 11:55:51 +02:00
complicated1.installed solver: new package selection logic (which is not yet used) 2011-07-26 17:08:43 +03:00
complicated1.repo solver: new package selection logic (which is not yet used) 2011-07-26 17:08:43 +03:00
complicated1.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
complicated2.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
complicated3.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
complicated4.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
conflict.repo test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
conflict1.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
conflict2.test commit: rephrase the error messages more understandable 2020-10-03 13:58:30 +03:00
error1.test commit: rephrase the error messages more understandable 2020-10-03 13:58:30 +03:00
error2.test commit: rephrase the error messages more understandable 2020-10-03 13:58:30 +03:00
error3.test commit: rephrase the error messages more understandable 2020-10-03 13:58:30 +03:00
error4.test commit: rephrase the error messages more understandable 2020-10-03 13:58:30 +03:00
error5.test commit: rephrase the error messages more understandable 2020-10-03 13:58:30 +03:00
fix1.test solver: rewrite as deductive solver -- per name flags 2013-06-13 18:22:00 +03:00
fix2.test solver: rewrite as deductive solver -- per name flags 2013-06-13 18:22:00 +03:00
fix3.test solver: rewrite as deductive solver -- per name flags 2013-06-13 18:22:00 +03:00
fix4.test commit, db: make file conflicts and script errors non-fatal 2013-06-20 13:12:44 +03:00
fix5.test commit, db: make file conflicts and script errors non-fatal 2013-06-20 13:12:44 +03:00
fix6.test commit, db: make file conflicts and script errors non-fatal 2013-06-20 13:12:44 +03:00
installif1.installed solver: properly order deletion of unneeded packages 2013-06-19 20:46:53 +03:00
installif1.repo solver: fix potential install_if processing failure, fixes #8237 2017-12-12 15:16:52 +02:00
installif1.test sort world dependencies alphabetically 2015-01-30 15:53:11 +02:00
installif2.repo test: improve loading of repositories, fix broken install-if test 2014-05-19 11:48:36 +03:00
installif2.test sort world dependencies alphabetically 2015-01-30 15:53:11 +02:00
installif3.test sort world dependencies alphabetically 2015-01-30 15:53:11 +02:00
installif4.test solver: properly order deletion of unneeded packages 2013-06-19 20:46:53 +03:00
installif5.test solver: fix potential install_if processing failure, fixes #8237 2017-12-12 15:16:52 +02:00
pinning-basic.repo solver: if pinning is specified, it overrides preferred repos 2013-09-06 14:21:59 +03:00
pinning-overlay1.repo solver: if pinning is specified, it overrides preferred repos 2013-09-06 14:21:59 +03:00
pinning-overlay2.repo solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning-overlay3.repo solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning.installed pkg, db: use 's' for source repository tags instead of 'p' 2012-02-24 09:22:42 +02:00
pinning.installed2 solver: non preferred actions are worse then non preferred pinning 2012-02-24 11:13:31 +02:00
pinning1.test solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning2.test solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning3.test solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning4.test solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning5.test solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning6.test solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning7.test solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning8.test solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning9.test solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning10.test solver: properly order deletion of unneeded packages 2013-06-19 20:46:53 +03:00
pinning11.test commit: rephrase the error messages more understandable 2020-10-03 13:58:30 +03:00
pinning12.test solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning13.test solver: if pinning is specified, it overrides preferred repos 2013-09-06 14:21:59 +03:00
pinning14.test tests: make sure adding a pinning to a child dependency fails 2018-02-20 22:22:52 +00:00
provides-swap.installed solver: prefer highest requirer count above installed status 2017-11-02 17:15:00 +00:00
provides-swap.test solver: implement support for choosing default virtuals 2017-11-02 03:08:24 +00:00
provides-swap2.test test: add test to ensure a provider that is already satisfied doesn't get swapped 2018-01-02 04:43:53 +00:00
provides-upgrade.installed test: add test for bug fixed in commit ba7b50c0 2017-04-28 17:44:57 +03:00
provides-upgrade.repo test: add test for bug fixed in commit ba7b50c0 2017-04-28 17:44:57 +03:00
provides-upgrade.test test: add test for bug fixed in commit ba7b50c0 2017-04-28 17:44:57 +03:00
provides.repo solver: don't consider requirer count for preference 2021-05-19 16:29:55 +03:00
provides1.test solver, test: implements more provides things, add tests 2012-02-27 16:35:04 +02:00
provides2.test solver: implement support for choosing default virtuals 2017-11-02 03:08:24 +00:00
provides3.test solver, test: implements more provides things, add tests 2012-02-27 16:35:04 +02:00
provides4.test sort world dependencies alphabetically 2015-01-30 15:53:11 +02:00
provides5.test commit: rephrase the error messages more understandable 2020-10-03 13:58:30 +03:00
provides6.test commit: rephrase the error messages more understandable 2020-10-03 13:58:30 +03:00
provides7.test commit: rephrase the error messages more understandable 2020-10-03 13:58:30 +03:00
provides8.test solver: implement support for choosing default virtuals 2017-11-02 03:08:24 +00:00
provides9.test solver: do not auto select virtual-only package with one provider 2022-02-24 14:18:41 +02:00
provides10.test solver: do not auto select virtual-only package with one provider 2022-02-24 14:18:41 +02:00
provides11.test solver: do not auto select virtual-only package with one provider 2022-02-24 14:18:41 +02:00
provides12.test commit: rephrase the error messages more understandable 2020-10-03 13:58:30 +03:00
provides13.test solver: don't consider requirer count for preference 2021-05-19 16:29:55 +03:00
selfupgrade.repo upgrade: improve self upgrade functionality a bit 2016-07-22 11:13:33 +03:00
selfupgrade1.installed upgrade: improve self upgrade functionality a bit 2016-07-22 11:13:33 +03:00
selfupgrade1.test upgrade: improve self upgrade functionality a bit 2016-07-22 11:13:33 +03:00
selfupgrade2.installed upgrade: improve self upgrade functionality a bit 2016-07-22 11:13:33 +03:00
selfupgrade2.test upgrade: improve self upgrade functionality a bit 2016-07-22 11:13:33 +03:00
selfupgrade3.installed upgrade: improve self upgrade functionality a bit 2016-07-22 11:13:33 +03:00
selfupgrade3.test upgrade: improve self upgrade functionality a bit 2016-07-22 11:13:33 +03:00
selfupgrade4.test upgrade: improve self upgrade functionality a bit 2016-07-22 11:13:33 +03:00
solver.sh test: improve posix sh compatibility 2021-09-03 15:02:12 +03:00
test1.sh test: dont run sh manually but respect #!/bin/sh in each test 2010-06-15 15:53:32 +00:00
test2.sh test: dont run sh manually but respect #!/bin/sh in each test 2010-06-15 15:53:32 +00:00
test3.sh test: dont run sh manually but respect #!/bin/sh in each test 2010-06-15 15:53:32 +00:00
test4.sh test: fix test4.sh, script failure is non-fatal 2017-06-11 12:27:00 +02:00
test5.sh test: dont run sh manually but respect #!/bin/sh in each test 2010-06-15 15:53:32 +00:00
test6.sh fix test6.sh - linux-vanilla was renamed to linux-lts in v3.11 2020-02-23 18:01:43 +01:00
test7.sh test: dont run sh manually but respect #!/bin/sh in each test 2010-06-15 15:53:32 +00:00
test8.sh test: check if upgrade works when package is missing in repo 2010-06-15 19:18:36 +00:00
upgrade.installed solver: enforce conflicts during upgrades and new pkg installs 2014-10-06 16:30:09 +03:00
upgrade.repo test: add test for granular upgrade 2020-07-30 11:42:17 +03:00
upgrade1.test solver: enforce conflicts during upgrades and new pkg installs 2014-10-06 16:30:09 +03:00
upgrade2.test upgrade: implement --ignore to exclude some packages from upgrade 2019-12-12 13:47:11 +02:00
upgrade3.installed test: add test for granular upgrade 2020-07-30 11:42:17 +03:00
upgrade3.test test: add test for granular upgrade 2020-07-30 11:42:17 +03:00
upgrade4.repo Implement upgrade --prune to remove stale world dependencies 2020-09-28 17:38:07 +03:00
upgrade4.test Implement upgrade --prune to remove stale world dependencies 2020-09-28 17:38:07 +03:00
version.data version: increase number of digits supported in version component 2021-10-25 13:30:40 +03:00
version.sh test: improve posix sh compatibility 2021-09-03 15:02:12 +03:00