summaryrefslogtreecommitdiff
path: root/test/integration
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 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.
* initial version of apt-helperMichael Vogt2014-02-272-36/+9
|
* 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-224-4/+4
|
* 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-141-12/+21
| | | | | | 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
|
* Merge remote-tracking branch 'mvo/debian/sid' into debian/sidMichael Vogt2014-02-122-4/+7
|\ | | | | | | | | Conflicts: test/integration/test-apt-get-download
| * Use a APT::VersionSet instead of a VersionListMichael Vogt2014-02-121-0/+5
| | | | | | | | | | | | | | Use a APT::VersionSet instead of a APT::VersionList in DoDownload() to ensure that there is only one version in the set even if the user passes multiple identical name/versions on the commandline (Bug#738103)
| * move isatty() check into InitOutput()Michael Vogt2014-02-051-4/+2
| |
* | use VersionSet in download to handle repeatsDavid Kalnischkies2014-02-101-4/+9
| | | | | | | | Closes: 738103
* | always cleanup patchfiles at the end of rred callDavid Kalnischkies2014-02-101-7/+21
| | | | | | | | | | | | | | | | | | With APT::Get::List-Cleanup disabled the ed-style patch files are lingering in the lists/ directory otherwise. That was kinda okay in the old none-client-merge as the filename was always the same so it was constantly overridden, but now with different names for client-merge quiet a few could pill up on the system and are used by the next call as it picks them up based on the filename.
* | fix remaining testcase-bugs from my armel boxDavid Kalnischkies2014-02-103-51/+70
| | | | | | | | Git-Dch: Ignore
* | multicompress with externals sets wrong file modesColin Watson2014-02-061-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Copy from the bug description: After we upgraded the Ubuntu master archive from lucid to precise, we noticed that Translation-en.bz2 was being written with mode 0600 rather than 0644, which broke our mirroring. This is no longer reproducible as such in unstable because apt now links against libbz2, but it's still reproducible with xz; it happens because multicompress fchmods one end of the compression pipe in this case rather than the target file. [Original testcase slightly modified to comply with house-style] Closes: 737130
* | Merge remote-tracking branch 'mvo/bugfix/multiarch-upgrade' into debian/sidMichael Vogt2014-02-062-9/+38
|\ \
| * | Fix multiarch package upgrade issueMichael Vogt2014-02-041-0/+29
| |/ | | | | | | | | | | When checking for negative dependencies in MarkInstall() ensure that only dependencies that are relevant (i.e. getting installed) are checked.
| * show "status" in apt list lastMichael Vogt2014-01-311-9/+9
| |
* | discard impossible candidates in MarkInstallDavid Kalnischkies2014-02-061-0/+86
| | | | | | | | | | | | | | | | | | If a (Pre-)Depends can't be satisfied there is no point in keeping the candidate as is as it is impossible to find a solution for it, so we can just as well reset the candidate to the currently installed version. We avoid trying to install this impossible candidate later on this way. Closes: #735967
* | Merge remote-tracking branch 'donkult/debian/sid' into debian/sidMichael Vogt2014-01-311-0/+30
|\ \ | |/ |/|
| * pkgTagFile: if we have seen the end, do not try to see moreDavid Kalnischkies2014-01-301-0/+30
| | | | | | | | | | | | | | | | | | | | Asking for more via Step() will notice that we are done with the file already and will result in a fail, which means we can't find the last sections anymore (which is especially painful if we haven't moved at all as in the testcase we haven't even looked at one of the sources leading to a strange behaviour) Reported-By: Niall Walsh <niallwalsh@users.berlios.de>
* | fix apt-get download truncation (closes: #736962)Michael Vogt2014-01-291-0/+7
| |
* | add test for Suite with pathMichael Vogt2014-01-281-0/+11
|/
* enable deb822 sources for associated testcaseDavid Kalnischkies2014-01-261-2/+4
| | | | Git-Dch: Ignore
* fixup merge issues introduced in 796673cDavid Kalnischkies2014-01-261-2/+2
| | | | | | | Issues in doc/po/de.po (fixed by Chris already) and test/integration/framework Git-Dch: Ignore
* Merge remote-tracking branch 'donkult/debian/sid' into debian/sidMichael Vogt2014-01-265-101/+176
|\ | | | | | | | | | | | | Conflicts: apt-private/private-list.cc doc/po/de.po test/integration/framework
| * get color/msglevel handling for tests in lineDavid Kalnischkies2014-01-172-24/+41
| | | | | | | | | | | | | | | | | | Without a PTY attached do not use color, but use the same MSGLEVEL with or without a PTY. The level is better adjust via flags – especially as it is likely that without a PTY you want fullblown logs instead of the reduced display you get with -q otherwise. Git-Dch: Ignore
| * ensure the right permissions as dpkg-deb ensistsDavid Kalnischkies2014-01-171-0/+2
| | | | | | | | | | | | | | | | | | otherwise you get with pickier umasks errors like: dpkg-deb: error: control directory has bad permissions 700 (must be >=0755 and <=0775) so we just force a 755 for the control directory and dpkg is happy. Git-Dch: Ignore
| * use our tmpdir instead of creating tmpfilesDavid Kalnischkies2014-01-171-20/+12
| | | | | | | | | | | | | | | | | | Maintaining (mainly the deletion of them) is a pain and they litter /tmp while the testcase is run for no good reason as we could just as well drop it into our tmpdir we have anyway and let them be deleted with the rest automatically Git-Dch: Ignore
| * correct some quoting offensesDavid Kalnischkies2014-01-171-31/+43
| | | | | | | | | | | | | | also avoids redirecting messages from dpkg-deb to /dev/null as it might fail (as it is quiet picky) and we should know why if it does. Git-Dch: Ignore
| * improve stdout/stderr usage correctness in test frameworkDavid Kalnischkies2014-01-173-21/+30
| | | | | | | | | | | | | | | | Also adds a friendly note about how many tests were run/passed so that the end of the testrun isn't all that negative by just showing fails. (It now tells us that we have 111 tests at the moment!) Git-Dch: Ignore
| * use our own homedir for gpg in testcasesDavid Kalnischkies2014-01-161-2/+23
| | | | | | | | Git-Dch: Ignore
| * show the error message if the webserver start failedDavid Kalnischkies2014-01-161-2/+6
| | | | | | | | | | | | Can happen e.g. if port 8080 is already used by something else Git-Dch: Ignore
| * test apt-get source release selection with suite and codenameDavid Kalnischkies2014-01-151-1/+13
| | | | | | | | Git-Dch: Ignore