summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* add testcase for APT::Architectures "arch1,arch2"David Kalnischkies2014-03-211-0/+9
| | | | Git-Dch: Ignore
* only consider versioned kernel packages in autoremoveDavid Kalnischkies2014-03-211-0/+1
| | | | | | | | | | | | Metapackages like "linux-image-amd64" are otherwise matched by our extraction as well, which later on can't be successfully compared via dpkg --compare-versions as the 'amd64' bit isn't a version number. (Luckily none of our architectures starts with a digit.) This was broken by me in 0.9.16 as I moved a shell-glob matcher to a regex-based one which has slightly different semantics regarding '*'. Closes: 741962
* fix test/integration/test-apt-helperMichael Vogt2014-03-1446-321/+926
|\
| * ensure that gz compression test is run with gzDavid Kalnischkies2014-03-131-0/+1
| | | | | | | | | | | | | | | | | | The framework can be configured to use different compression algorithms to test different ones, but a testcase testing for gz support should always be run with gz, regardless of what compressions are configured otherwise. Git-Dch: Ignore
| * factor out getting list of architectures from comma listDavid Kalnischkies2014-03-131-5/+8
| | | | | | | | | | | | | | Beside fixing this minor code duplication it also resolves the problem of messing up vim syntax-highlighting. Git-Dch: Ignore
| * correct LD_LIBRARY_PATH and config loading for apt-helperDavid Kalnischkies2014-03-131-25/+15
| | | | | | | | | | | | | | Mostly ensures that we use the build methods and not the system provided methods in the tests (if we don't want it that way). Git-Dch: Ignore
| * ensure that a dot is a dot in the hookDavid Kalnischkies2014-03-131-9/+17
| | | | | | | | | | | | As we deal with regex matchers here the dots are treated as wildcards if we don't take care of escaping them. Not very likely that this could be a real-world problem, but just to be sure.
| * support kfreebsd and hurd in the kernel hookDavid Kalnischkies2014-03-132-11/+35
| | | | | | | | | | | | kfreebsd as well as hurd kernel packages call the postinst script as well so we just need to enable the correct parsing for installed packages and disable the "protect every version" hammer for them.
| * use a configurable list of versioned kernel packagesDavid Kalnischkies2014-03-134-56/+58
| | | | | | | | | | | | With APT::VersionedKernelPackages users have the option of adding packages like pre-build out-of-tree modules to the list of automatically protected from being autoremoved.
| * improve debug output in case downloadfile failsDavid Kalnischkies2014-03-133-67/+79
| | | | | | | | Git-Dch: Ignore
| * msgstr with elipses need three dotsDavid Kalnischkies2014-03-131-2/+2
| | | | | | | | | | fixes some messages and their translation so that all of them have three dots for messages with an elipse. Many translations already had this.
| * support very long mtab entries in mountpoint discoveryDavid Kalnischkies2014-03-133-0/+40
| | | | | | | | | | | | Old code limited lines to 250 characters which is probably enough for everybody, but who knows… It also takes care of device nodes which start with the same prefix.
| * enable mount support for apt-cdrom in the testsDavid Kalnischkies2014-03-132-40/+51
| | | | | | | | Git-Dch: Ignore
| * simplify apt-cdrom testcodeDavid Kalnischkies2014-03-131-16/+16
| | | | | | | | Git-Dch: Ignore
| * do not configure already unpacked packages needlesslyDavid Kalnischkies2014-03-137-17/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The unpack of a M-A:same package will force the unpack of all its siblings directly to prevent that they could be separated by later immediate actions. In commit 634985f8 a call to SmartConfigure was introduced to configure these packages at the time the installation order encounters them. Usually, the unpack order is already okay, so that this 'earlier' unpack was not needed and if it wouldn't have been done, the package would now only be unpacked, but by configuring the package now we impose new requirements which must be satisfied. The code is clever enough to handle this most of the time (it worked for 2 years!), but it isn't needed and in very coupled cases this can fail. Removing this call again removes this extra burden and so simplifies the ordering as can be seen in the modified tests. Famous last words, but I don't see a reason for this extra burden to exist hence the remove. Closes: 740843
| * follow method attribute suggestions by gccDavid Kalnischkies2014-03-131-1/+3
| | | | | | | | | | Git-Dch: Ignore Reported-By: gcc -Wsuggest-attribute={pure,const,noreturn}
| * cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-1324-49/+114
| | | | | | | | | | | | | | | | Beside being a bit cleaner it hopefully also resolves oddball problems I have with high levels of parallel jobs. Git-Dch: Ignore Reported-By: iwyu (include-what-you-use)
| * warning: unused parameter ‘foo’ [-Wunused-parameter]David Kalnischkies2014-03-1311-10/+20
| | | | | | | | | | Reported-By: gcc -Wunused-parameter Git-Dch: Ignore
| * warning: type qualifiers ignored on function return type [-Wignored-qualifiers]David Kalnischkies2014-03-131-1/+1
| | | | | | | | | | Reported-By: gcc -Wignored-qualifiers Git-Dch: Ignore
| * warning: no previous declaration for foobar() [-Wmissing-declarations]David Kalnischkies2014-03-137-22/+31
| | | | | | | | | | Git-Dch: Ignore Reported-By: gcc -Wmissing-declarations
| * unset LANGUAGE in the testing framework directlyDavid Kalnischkies2014-03-131-2/+3
| | | | | | | | Git-Dch: Ignore
| * support DEB_BUILD_PROFILES and -P for build profilesDavid Kalnischkies2014-03-132-0/+153
| | | | | | | | | | | | | | | | | | | | Inspired by the rest of the patch in 661537, but abstract the parsing of various ways of setting the build profiles more so it can potentially be reused and all apt parts have the same behaviour. Especially config options, cmdline options and environment will not be combined as proposed as this isn't APTs usual behaviour and dpkg doesn't do it either, so one overrides the other as it normally does.
| * implement BuildProfileSpec support as dpkg has in 1.17.2Johannes Schauer2014-03-131-27/+61
| | | | | | | | | | | | | | | | Build-dependencies are now able to include a <profile.foo …> specification limiting usage similar to already supported [arch …]. More details: https://wiki.debian.org/BuildProfileSpec Closes: 661537
| * add default and override handling for Cnf::FindVectorDavid Kalnischkies2014-03-132-3/+39
| | | | | | | | | | | | Automatically handle the override of list options via its parent value which can even be a comma-separated list of values. It also adds an easy way of providing a default for the list.
| * check version before adding scores in resolverDavid Kalnischkies2014-03-131-17/+114
| | | | | | | | | | | | Prevents that "old" dependencies have an influence in the scoring. With positive dependencies this is usually not a problem, but negative dependencies can linger around for a long time.
| * show debug output only if told so in packagemanagerDavid Kalnischkies2014-03-131-9/+3
| | | | | | | | Git-Dch: Ignore
| * propagate a negative score point along breaks/conflictsDavid Kalnischkies2014-03-131-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | versioned -dev packages like db and boost have the problem of no dependencies which would give them a competitive advantage against an older incarnation of the -dev package, so they tend to be kept back until the old version is removed from the archive, which, if the user has older releases in its sources can take a long time (or never happens). The newer version has a conflicts/breaks against the older one, but the older one hasn't against the newer, so by giving via the conflicts the older one a reduced score the newer one can win if there is no other reason to keep it. If both have a conflict against each other the scoring will cancel itself out, so no harm done. This gives "action" a slightly bigger edge in breaks/conflicts cases than before, but holding back isn't a really good solution anyway.
* | Merge remote-tracking branch 'upstream/debian/sid' into ↵Michael Vogt2014-03-121-14/+1
|\| | | | | | | | | | | | | | | | | feature/apt-download-file Conflicts: cmdline/apt-helper.cc test/integration/framework test/integration/test-apt-https-no-redirect
| * initial version of apt-helperMichael Vogt2014-02-272-36/+9
| |
* | add hashsum support in apt-file download and add more testsMichael Vogt2014-03-121-0/+37
| |
* | initial version of apt-helperMichael Vogt2014-02-272-54/+35
|/
* test/integration/test-ubuntu-bug-346386-apt-get-update-paywall: use ↵Michael Vogt2014-02-231-1/+1
| | | | http-method from METHODSDIR
* skip test if "apt" is not buildMichael Vogt2014-02-224-0/+25
|
* fix ADT failure in downloadfile()Michael Vogt2014-02-221-1/+5
|
* add testcase for Bug#718329Michael Vogt2014-02-222-1/+36
|
* Fix typos in documentation (codespell)Michael Vogt2014-02-225-17/+17
|
* fix the test-kernel-helper-autoremove testcaseMichael Vogt2014-02-141-6/+6
|
* Additional test for the case when installed version != newest versionSteve Langasek2014-02-141-2/+15
|
* Make the test more verbose and check for the negative case of a kernel thatSteve Langasek2014-02-141-4/+11
| | | | should not be marked not-for-autoremoval
* typo fixSteve Langasek2014-02-141-1/+1
|
* also check that the running kernel is keptMichael Vogt2014-02-142-2/+4
|
* add testcase for the autoremove featureMichael Vogt2014-02-142-0/+46
| | | | | Conflicts: debian/apt.auto-removal.sh
* add a testcase to check for forbidden https→http downgradesDavid Kalnischkies2014-02-142-2/+12
| | | | Git-Dch: Ignore
* honor option to disable pulses for the testcasesDavid Kalnischkies2014-02-141-1/+2
| | | | Git-Dch: Ignore
* disable https->http redirects in libcurlMichael Vogt2014-02-143-2/+26
| | | | This change prevents changing the protocol from https to http.
* test/integration/test-bug-723705-tagfile-truncates-fields: fix autopkgtest ↵Michael Vogt2014-02-141-1/+1
| | | | failure
* enforce 'house-style' on changelog testcaseDavid Kalnischkies2014-02-141-5/+5
| | | | Git-Dch: Ignore
* allow http protocol to switch to httpsDavid Kalnischkies2014-02-142-1/+53
| | | | | | | | | switch protocols at random is a bad idea if e.g. http can switch to file, so we limit the possibilities to http to http and http to https. As very few people (less than 1% according to popcon) have https installed this likely changes nothing in terms of failure. The commit is adding a friendly hint which package needs to be installed though.
* report https download start only if we really get itDavid Kalnischkies2014-02-142-16/+37
| | | | | | Reporting it via progress means that e.g. a redirect will trigger it, too, so you get a Get & Hit while http only reports a Hit as it should be.
* remove duplicated apt-get download apt apt testMichael Vogt2014-02-131-4/+0
|