summaryrefslogtreecommitdiff
path: root/src/test.c
AgeCommit message (Collapse)AuthorFilesLines
2012-02-23test: rewrite the testing framework to use the real appletsTimo Teräs1-227/+0
also merge the expected output to the *.test files.
2012-02-16solver: record repository tag, and flags in solutionTimo Teräs1-5/+5
name state could get overwritten later, so we can't use that when generating the changeset.
2012-01-06test: fix printf of size_t for 64 bitNatanael Copa1-1/+1
2011-10-29solver, db: implement repository pinningTimo Teräs1-5/+14
Improves /etc/apk/repositories format so you can say: http://nl.alpinelinux.org/alpine/v2.3/main @edge http://nl.alpinelinux.org/alpine/edge/main @testing http://nl.alpinelinux.org/alpine/edge/testing After which you can pin dependencies to these tags using: apk add stableapp newapp@edge bleedingapp@testing Apk will now by default only use the untagged repositories, but adding a tag to specific dependency: 1. will prefer that tag for the name 2. allowing pulling in dependencies from that tag (though, it prefers untagged packages to satisfy deps if possible) fixes #575
2011-10-18pkg, info: remember installed packages "replaces"Timo Teräs1-1/+3
"replaces" is now turned to a full dependency type list, so you can make package overwrite files only certain versions of the package (though, we should probably take this into account already at solution calculation phase). Also make 'info --replaces' print the "replaces" of the package. This is in preparation for the policy package support, which still requires "replacement priority" field to decide which packages' files get the preference.
2011-10-14solver: preference scoringTimo Teräs1-1/+1
Should now choose packages better if the best available version is uninstallable for some reason.
2011-09-13all: update copyright year statementTimo Teräs1-1/+1
2011-09-09test: fix for updated solver apiTimo Teräs1-20/+14
2011-08-05solver: move topology sorting to solver codeTimo Teräs1-1/+0
this allows quite some optimizations to running time and memory requirements.
2011-08-01solver: generate proper error messagesTimo Teräs1-10/+66
* the solver no longer does look-ahead locking of names (could be possibly optimized later); instead names are now always ordered strictly to properly detect the package names which are unsolveable * basic error tests added, so we can see the most likely problem in dependencies easily
2011-07-27test: don't crash if the expected files are not thereTimo Teräs1-4/+8
2011-07-26solver: new package selection logic (which is not yet used)Timo Teräs1-0/+163
* basic code for a backtracking, forward checking dependency satisfier * works better when there are tricky dependencies to solve (when can't just upgrade everything to most preferred versions) * the new code always evaluates all of 'world' constraints (old code just does incremental updates based on heuristics) * is probably somewhat slower than old code (probably unnoticeable difference in most cases) * makes easier to write support for provides and repository pinning * test applet and a bunch of test cases added which uses the new code * from the old feature set install_if is not yet implemented