aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* fix test6.sh - linux-vanilla was renamed to linux-lts in v3.11Jakub Jirutka2020-02-231-3/+3
|
* remove tests connected to help output validationTimo Teräs2020-01-261-10/+0
| | | | The help has been moved to man pages now.
* upgrade: implement --ignore to exclude some packages from upgradenrybowski2019-12-121-0/+7
|
* add: always use UTC for virtual package versionsMax Rees2019-11-181-1/+0
|
* reset TZ when running solver tests as some output has local timeTimo Teräs2019-06-053-2/+3
| | | | Fixes commits 37fbafcd and 1c47f374.
* print usage and exit with error on invalid argumentsTimo Teräs2019-06-051-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).
* use fixed system time in test mode to have fixed test outputTimo Teräs2019-06-032-2/+2
| | | | fixes test suite regression from previous commit
* print: don't print spurious newlinesTimo Teräs2018-11-022-4/+2
|
* solver: allow names with only one provider to be autoselected regardless of ↵William Pitcock2018-02-211-1/+8
| | | | priority
* tests: make sure adding a pinning to a child dependency failsWilliam Pitcock2018-02-201-0/+5
|
* test: fix test6 testcaseWilliam Pitcock2018-01-291-1/+1
|
* commit: properly analyze packages with provides="$pkgname"Timo Teräs2018-01-022-0/+15
|
* test: add test to ensure a provider that is already satisfied doesn't get ↵William Pitcock2018-01-021-0/+7
| | | | swapped
* test: add testcases to ensure provider collisions generate an errorWilliam Pitcock2018-01-023-0/+36
|
* solver: fix potential install_if processing failure, fixes #8237Timo Teräs2017-12-122-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.
* solver: prefer highest requirer count above installed statusWilliam Pitcock2017-11-021-2/+3
| | | | | This ensures a swap is emitted when replacing a virtual with apk add.
* solver: only select a default if there is at least one provider with a ↵William Pitcock2017-11-022-1/+25
| | | | declared provider_priority
* solver: implement support for choosing default virtualsWilliam Pitcock2017-11-025-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.
* test: modernize testing APKBUILDsJakub Jirutka2017-06-116-59/+54
|
* test: fix test4.sh, script failure is non-fatalJakub Jirutka2017-06-111-2/+2
| | | | This behaviour has been changed in: 7d5cd2c8a0052a7446515f90d3d0ea5cc2e93efe.
* test: fix running root-tests with QEMU user-mode emulationJakub Jirutka2017-06-111-1/+12
| | | | | Variable QEMU_EMULATOR is set by enter-chroot script from alpine-chroot-install.
* test: run test*.sh with set -xJakub Jirutka2017-06-111-1/+1
|
* test: fix test6.sh, vmlinuz and initramfs are not symlinksJakub Jirutka2017-06-111-2/+2
|
* test: fix test6.sh, replace linux-grsec w/ linux-vanilla, add alpine-keysJakub Jirutka2017-06-111-3/+3
|
* test: exit with non-zero status when some root-test failJakub Jirutka2017-06-111-3/+4
|
* test: print output log when test failJakub Jirutka2017-06-111-3/+6
|
* test: fix invalid SYSREPO with http://nl.a.oJakub Jirutka2017-06-111-1/+1
|
* test: fix target $(repos), APKINDEX is now generated by abuildJakub Jirutka2017-06-111-3/+0
|
* test: fix target $(repos), PKGDEST is no longer supportedJakub Jirutka2017-06-111-1/+1
|
* test: fix missing "arch" in testing APKBUILDsJakub Jirutka2017-06-116-0/+6
|
* test: add test for bug fixed in commit ba7b50c0Timo Teräs2017-04-283-0/+22
|
* upgrade: improve self upgrade functionality a bitTimo Teräs2016-07-229-1/+121
| | | | trigger it only if apk-tools can be upgrade, add test cases
* sort world dependencies alphabeticallyTimo Teräs2015-01-304-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.
* solver: enforce conflicts during upgrades and new pkg installsTimo Teräs2014-10-063-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.
* solver: fix installation of non-repository packages during tmpfs bootTimo Teräs2014-05-191-0/+8
| | | | | allow packages in the cache's installed to be selected for installation by the solver. add test case for the issue.
* test: improve loading of repositories, fix broken install-if testTimo Teräs2014-05-191-0/+8
|
* del: allow deletion of world dependency when it is not installedTimo Teräs2014-05-191-0/+7
| | | | | this happens e.g. after tmpfs boot when not all packages where available: the dependency is in world, but not installed.
* solver: if pinning is specified, it overrides preferred reposTimo Teräs2013-09-063-0/+19
| | | | add also a test case for this
* commit, db: make file conflicts and script errors non-fatalTimo Teräs2013-06-203-4/+4
| | | | fixes #1482
* solver: properly order deletion of unneeded packagesTimo Teräs2013-06-194-2/+49
|
* upgrade: new option: --latest (-l)Timo Teräs2013-06-193-3/+28
| | | | | | | | | | | | | Select latest version of package (if it is not pinned), and print error if it cannot be installed due to other dependencies. Together with --available, it selects the latest package which is present at least in some repository. This also fixes few solver issues with ordering of package selection that got quite apparent with this flag. Namely, we cannot "lock" a package until it's reverse dependencies are locked or not all of the solver flags are propagated properly.
* errors: fix a test case, and misanalysis of certain namesTimo Teräs2013-06-181-1/+1
| | | | | | the pinning11 changed when @repo got the leading @ on error messages. analyze_dep() now properly ignores conflict dependencies, as those names are usually intentionally left unassigned.
* errors: improve analysis for virtual packagesTimo Teräs2013-06-182-1/+7
| | | | | if all packages named N provide the virtual package, list only the name N instead of all packages providing it.
* errors: detect self-conflicts properlyTimo Teräs2013-06-142-2/+7
| | | | | and add the provided version information to the conflicts. fixes the final test case that was broken. hooray.
* solver, errors: fix few additional test cases and clean upsTimo Teräs2013-06-133-3/+5
|
* errors: rewrite the logic how errors are reportedTimo Teräs2013-06-1312-20/+74
| | | | | | | Instead of the dependency oriented logic, switch to print them for each package or name needed. Might give a bit more readable errors now. There's still few corner cases that proper error is not output, which are cought by the test cases.
* solver: prune broken world dependencies with --forceTimo Teräs2013-06-133-0/+23
| | | | mostly useful for reboot, when all packages are not available.
* solver: rewrite as deductive solver -- pinning supportTimo Teräs2013-06-1316-24/+70
| | | | Fix also pinning test cases to be more sane.
* solver: rewrite as deductive solver -- per name flagsTimo Teräs2013-06-136-0/+55
| | | | | Handle properly per-name preference flags, and add test cases for testing those via fix applet.
* solver: rewrite as deductive solver -- core featuresTimo Teräs2013-06-138-8/+8
| | | | | Implementing basic dependency handling, install_if and awareness of pinning.