summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2023-02-28version: fix leading zero strippingTimo Teräs2-3/+9
Only the leading zeroes should be ignored. Handle properly if the version component is actually zero. fixes #10880
2022-12-25solver: prioritize user specified action on mentioned packagesTimo Teräs4-0/+57
Force preference on the user specified action on commandline. This allows upgrading packages which would otherwise be kept back due to partial update preferring to keep top level dependency on the installed version. fixes #7531
2022-12-21solver: fix install_if via provides onlyTimo Teräs2-0/+44
fixes #10721
2022-12-20commit: correctly analyze virtual provides induced errorsTimo Teräs3-0/+32
The package list cannot be used to determine name state, as packages are not selected through all of their names, and that effects the status of unversioned provides. Thus the name state must be calculated in separate step via the dependency graphs. ref #10847
2022-06-03add: allow specifying a version for --virtual packageTimo Teräs1-0/+1
fixes #10835
2022-02-24solver: do not auto select virtual-only package with one providerTimo Teräs3-0/+6
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
2021-10-25version: increase number of digits supported in version componentTimo Teräs1-0/+1
Report also version numbers as invalid if there's more than 18 digits. fixes #10774
2021-05-20solver: don't consider requirer count for preferenceTimo Teräs2-0/+29
The original intent was to choose packages to which there is most dependencies. However, since the code has evolved this is has been mostly obsolete. And in fact now interferes with the provides and provides priority mechanism. Remove this as obsolete. Fixes #10742
2021-02-07io: Handle really long linesOlliver Schinagl2-19779/+0
While commit 18b0b45 (io: Handle long lines, Thu Jan 7 17:25:23 2021 +0100) did attempt to address this issue, the buffer really is still to small when dealing with big-big dependency lists. Lets make it sufficiently large for now, until the new APKINDEX format can support multi-line dependencies, making this not needed any more. [TT: Originally the buffer size was conservative to run on resource constrained embedded platforms. But since the available memory on those has also increased much, the adjustment to 128kB makes sense also to increase performance a little bit. Removing also the iolimit test.] Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2021-01-14database.c: Fixed package DESCRIPTION parsingthibault.ferrante1-1/+1
Regression introduced by 0fb0d30 which makes parsing a description a critical failure. [TT: Minor stylistic change. Fix also missing final line change from the earlier commit]
2021-01-11database: Propagate errors when loading an APKINDEXthibault.ferrante2-0/+19779
In case of failure when loading an APKINDEX, no errors are propagated to the user which may uncorrectly interpret the current problem.
2020-10-03commit: rephrase the error messages more understandableTimo Teräs16-17/+17
fixes #10703
2020-09-28Implement upgrade --prune to remove stale world dependenciesTimo Teräs2-0/+38
2020-07-30test: add test for granular upgradeAriadne Conill3-0/+31
2020-02-23fix test6.sh - linux-vanilla was renamed to linux-lts in v3.11Jakub Jirutka1-3/+3
2020-01-26remove tests connected to help output validationTimo Teräs1-10/+0
The help has been moved to man pages now.
2019-12-12upgrade: implement --ignore to exclude some packages from upgradenrybowski1-0/+7
2019-11-18add: always use UTC for virtual package versionsMax Rees1-1/+0
2019-06-05reset TZ when running solver tests as some output has local timeTimo Teräs3-2/+3
Fixes commits 37fbafcd and 1c47f374.
2019-06-05print usage and exit with error on invalid argumentsTimo Teräs1-0/+26
Add also some testing to make sure help, long help and handling of invalid arguments works as expected. Based on pull request #19 originally by Laurent Arnoud (@spk).
2019-06-03use fixed system time in test mode to have fixed test outputTimo Teräs2-2/+2
fixes test suite regression from previous commit
2018-11-02print: don't print spurious newlinesTimo Teräs2-4/+2
2018-02-21solver: allow names with only one provider to be autoselected regardless of ↵William Pitcock1-1/+8
priority
2018-02-20tests: make sure adding a pinning to a child dependency failsWilliam Pitcock1-0/+5
2018-01-29test: fix test6 testcaseWilliam Pitcock1-1/+1
2018-01-02commit: properly analyze packages with provides="$pkgname"Timo Teräs2-0/+15
2018-01-02test: add test to ensure a provider that is already satisfied doesn't get ↵William Pitcock1-0/+7
swapped
2018-01-02test: add testcases to ensure provider collisions generate an errorWilliam Pitcock3-0/+36
2017-12-12solver: fix potential install_if processing failure, fixes #8237Timo Teräs2-0/+28
In discovery phase, there was logic to not process packages multiple times. However, that logic failed to account the package's depth and install_if state for the name being processed. This caused install_if processing failure in certain topologies of the dependency graph. Adds also a test case that should catch this issue reliably.
2017-11-02solver: prefer highest requirer count above installed statusWilliam Pitcock1-2/+3
This ensures a swap is emitted when replacing a virtual with apk add.
2017-11-02solver: only select a default if there is at least one provider with a ↵William Pitcock2-1/+25
declared provider_priority
2017-11-02solver: implement support for choosing default virtualsWilliam Pitcock5-4/+24
By introducing a new package metadata field, `provider_priority` (index letter `k`), we can specify default packages to satisfy a virtual. If a user wishes to select an alternative provider for the virtual, a changeset swapping the default provider for the selected provider will be generated by the dependency resolver.
2017-06-11test: modernize testing APKBUILDsJakub Jirutka6-59/+54
2017-06-11test: fix test4.sh, script failure is non-fatalJakub Jirutka1-2/+2
This behaviour has been changed in: 7d5cd2c8a0052a7446515f90d3d0ea5cc2e93efe.
2017-06-11test: fix running root-tests with QEMU user-mode emulationJakub Jirutka1-1/+12
Variable QEMU_EMULATOR is set by enter-chroot script from alpine-chroot-install.
2017-06-11test: run test*.sh with set -xJakub Jirutka1-1/+1
2017-06-11test: fix test6.sh, vmlinuz and initramfs are not symlinksJakub Jirutka1-2/+2
2017-06-11test: fix test6.sh, replace linux-grsec w/ linux-vanilla, add alpine-keysJakub Jirutka1-3/+3
2017-06-11test: exit with non-zero status when some root-test failJakub Jirutka1-3/+4
2017-06-11test: print output log when test failJakub Jirutka1-3/+6
2017-06-11test: fix invalid SYSREPO with http://nl.a.oJakub Jirutka1-1/+1
2017-06-11test: fix target $(repos), APKINDEX is now generated by abuildJakub Jirutka1-3/+0
2017-06-11test: fix target $(repos), PKGDEST is no longer supportedJakub Jirutka1-1/+1
2017-06-11test: fix missing "arch" in testing APKBUILDsJakub Jirutka6-0/+6
2017-04-28test: add test for bug fixed in commit ba7b50c0Timo Teräs3-0/+22
2016-07-22upgrade: improve self upgrade functionality a bitTimo Teräs9-1/+121
trigger it only if apk-tools can be upgrade, add test cases
2015-01-30sort world dependencies alphabeticallyTimo Teräs4-14/+14
this makes 'lbu diff' and aaudit diffs nice when a world dependency is added or removed. sorting also makes the ordering more deterministic as the world targets constraints are always applied in the same order. test suite updated accordingly.
2014-10-06solver: enforce conflicts during upgrades and new pkg installsTimo Teräs3-0/+50
This makes sure any conflicted packages will be removed first. Useful if we know there are conflicting files, and want to avoid adding potentially harmful replaces line. Add a test case for this too.
2014-05-19solver: fix installation of non-repository packages during tmpfs bootTimo Teräs1-0/+8
allow packages in the cache's installed to be selected for installation by the solver. add test case for the issue.
2014-05-19test: improve loading of repositories, fix broken install-if testTimo Teräs1-0/+8