summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* tests: enhance https support in the testcasesDavid Kalnischkies2013-11-302-8/+14
| | | | Git-Dch: Ignore
* webserver: spurious newline after data confuses curlDavid Kalnischkies2013-11-301-9/+9
| | | | | | | | Webserver wrongly sends an additional newline after the data which causes curl to believe that the next request on this socket has no header data and so includes all headers in the data output. Git-Dch: Ignore
* fix crash when SetCandidateRelease is usedMichael Vogt2013-11-291-0/+36
|
* Merge remote-tracking branch 'mvo/debian/sid' into debian/sidMichael Vogt2013-11-291-0/+18
|\ | | | | | | | | Conflicts: apt-private/private-cmndline.cc
| * add "APT::String::Endswith" and automatic adding of ".list" in apt edit-sourceMichael Vogt2013-11-291-0/+18
| |
* | add missing test/integration/test-bug-720597-build-dep-purgeMichael Vogt2013-11-281-0/+36
|/
* Merge remote-tracking branch 'upstream/debian/sid' into ↵Michael Vogt2013-10-223-2/+7
|\ | | | | | | | | | | | | | | feature/install-progress-refactor Conflicts: apt-pkg/deb/dpkgpm.cc apt-pkg/makefile
| * fix failing ./test/integration/test-disappearing-packages (thanks Donkult) - ↵Michael Vogt2013-10-221-1/+1
| | | | | | | | ported from the mvo/feature/install-progress-refactor branch
| * test/integration/run-tests: output the failed test namesMichael Vogt2013-10-221-0/+5
| |
| * reshuffle dpkgpm.cc code a bit moreMichael Vogt2013-10-181-1/+1
| |
| * add $* to gdb to make it more usefulMichael Vogt2013-10-181-1/+1
| |
* | use Pkg.FullName() in disappearedPkgs and remove duplicated checkMichael Vogt2013-10-221-1/+1
| |
* | add APT::Status-deb822-FdMichael Vogt2013-10-211-27/+37
| |
* | restore binary compatiblity with the pkgPackageManager interfaceMichael Vogt2013-10-211-0/+54
| |
* | fix apt output ordering and update test to match the new human friendly ↵Michael Vogt2013-10-211-2/+2
| | | | | | | | messages that include the architecture
* | re-add missing APT::String::StripMichael Vogt2013-10-181-1/+0
| |
* | cleanupMichael Vogt2013-10-181-23/+23
|/
* remove POSTINST from framework, file tree can be used for thisMichael Vogt2013-10-151-4/+0
|
* tests, do not send pkgname with arch via the status-fdMichael Vogt2013-10-154-1/+124
|
* fixup various UI issues in the testMichael Vogt2013-10-091-6/+6
|
* really fix testMichael Vogt2013-10-091-36/+43
|
* use "insertpackage" instead of "buildsimplenativepackage"Michael Vogt2013-10-091-10/+12
|
* add test for upgrade, upgrade --with-new-pkgs, dist-upgradeMichael Vogt2013-10-091-0/+69
|
* Merge remote-tracking branch 'donkult/debian/sid' into debian/sidMichael Vogt2013-10-0515-106/+504
|\
| * tests: install --no-install-recommends and stunnel4 for travisDavid Kalnischkies2013-10-031-1/+1
| | | | | | | | | | | | stunnel4 is required for https tests Git-Dch: Ignore
| * test: use a multiarch capable dpkg rather than workaroundDavid Kalnischkies2013-10-031-4/+3
| | | | | | | | | | | | | | | | The tests require nowadays a (somewhat) multiarch-capable dpkg, so replace the workaround as marked in the FIXME with a proper install as the workaround isn't working always correctly, letting the test fail. Git-Dch: Ignore
| * use pkgAcqArchive in 'download' for proper errorsDavid Kalnischkies2013-10-033-11/+23
| | | | | | | | | | | | | | With a bit of trickery we can reuse the usual infrastructure we have in place to acquire deb files for the 'download' operation as well, which gains us authentification check & display, error messages, correct filenames and "downloads" from the root-owned archives.
| * tests: fix some problems travis encountersDavid Kalnischkies2013-10-025-48/+54
| | | | | | | | Git-Dch: Ignore
| * don't consider holds for autoremovalDavid Kalnischkies2013-10-011-0/+20
| | | | | | | | | | | | | | | | | | | | | | We can't remove packages which are held back by the user with a hold, so marking them (or its dependencies) as garbage will lead our autoremover into madness – and given that the package is important enough that the user has held it back it can't be garbage (at least at the moment), so even if a front-end wants to use the info just for information display its a good idea to not consider it garbage for them. Closes: 724995
| * handle complete responses to https range requestsDavid Kalnischkies2013-10-013-22/+226
| | | | | | | | | | | | | | | | | | | | | | | | | | Servers might respond with a complete file either because they don't support Ranges at all or the If-Range condition isn't statisfied, so we have to parse the headers curl gets ourself to seek or truncate the file we have so far. This also finially adds the testcase testing a bunch of partial situations for both, http and https - which is now all green. Closes: 617643, 667699 LP: 1157943
| * retry without partial data after a 416 responseDavid Kalnischkies2013-10-011-16/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we get a 416 from the server it means the Range we asked for is above the real filesize of the file on the server. Mostly this happens if the server isn't supporting If-Range, but regardless of how we end up with the partial data, the data is invalid so we discard it and retry with a fresh plate and hope for the best. Old behavior was to consider 416 an error and retry with a different compression until we ran out of compression and requested the uncompressed file (which doesn't exist on most mirrors) with an accept line which server answered with "406 Not Acceptable". Closes: 710924
| * add Range and If-Range support in the webserverDavid Kalnischkies2013-09-301-1/+63
| | | | | | | | Git-Dch: Ignore
| * access _config via GET requests in the webserverDavid Kalnischkies2013-09-301-3/+71
| | | | | | | | Git-Dch: Ignore
* | Merge remote-tracking branch 'mvo/bugfix/dpkg-progress-multiarch' into ↵Michael Vogt2013-10-051-0/+27
|\ \ | |/ |/| | | debian/sid
| * change maxsplit default from "0" to maxintMichael Vogt2013-10-011-0/+4
| |
| * add maxsplit parameter to StringSplitMichael Vogt2013-09-071-0/+6
| |
| * implement StringSplit() as we need this to fix the dpkg status-fd output parsingMichael Vogt2013-09-071-0/+17
| |
* | test: apt-get source with more than one argumentDavid Kalnischkies2013-09-261-0/+6
| | | | | | | | | | Closes: 722549 Git-Dch: Ignore
* | print-uris prints regardless of quiet-level againDavid Kalnischkies2013-09-261-0/+24
| | | | | | | | | | | | | | | | | | | | While the InstallPackages code was moved from apt-get into the private library the output was moved from (std::)cout to c1out which isn't shown in quiet level 2 (and above), so we flip back to std::cout to ensure that it is always printed as you are not going to use --print-uris if you don't want to see the uris… Closes: 722207
* | pkg from only trusted sources keeps being trustedDavid Kalnischkies2013-09-262-0/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | --allow-unauthenticated switches the download to a pre-0.6 system in which a package can come from any source, rather than that trusted packages can only come from trusted sources. To allow this the flag used to set all packages as untrusted, which is a bit much, so we check now if the package can be acquired via an untrusted source and only if this is the case set it as untrusted. As APT nowadays supports setting sources as trusted via a flag in the sources.list this mode shouldn't be used that much anymore though. [Note that this is not the patch from the BTS] Closes: 617690
* | don't strip :any from dependencies in single-archDavid Kalnischkies2013-09-261-0/+54
| | | | | | | | | | | | | | | | | | | | | | The parser goes a bit to far by stripping :any from dependencies in a single architecture environment. the flag "Multi-Arch: allowed" doesn't care any architecture restrictions in that case (as in single arch everything is native), but it still limits the possible versions statisfying the dependency so stripping :any over-simplifies in upgrade situations from "Multi-Arch: none" to "Multi-Arch: allowed". Closes: 723586
* | do not trust FileFd::Eof() in pkgTagFile::Fill()David Kalnischkies2013-09-203-0/+262
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Eof check was added (by me of course) in 0aae6d14390193e25ab6d0fd49295bd7b131954f as part of a fix up ~a month ago (at DebConf). The idea was not that bad, but doesn't make that much sense either as this bit is set by the FileFd based on Actual as well, so this is basically doing the same check again – with the difference that the HitEof bit can still linger from a previous Read we did at the end of the file, but have seek'd away from it now. Combined with the length of entries, entry order and other not that easily controllable conditions you can be 'lucky' enough to hit this problem in a way which even visible (truncating of other fields might not be visible easily, like 'Tags' and others). Closes: 723705 Thanks: Cyril Brulebois
* | add a testcase for 100 char long path truncate bug #689582David Kalnischkies2013-09-121-0/+35
| | | | | | | | Git-Dch: Ignore
* | use FileFd in HashSum test to unbreak non-linux portsDavid Kalnischkies2013-09-031-16/+16
|/ | | | | | | | | | | | The testcode happily mixes FILE* operations and direct access to fds which is even a bit suprising that it works on linux and worked so long for non-linux ports, so we switch to usage of FileFd instead which provides us with simple fd-only operations. Its overkill for this test as its a bare file and we ask for the descriptor all the time, but it shouldn't hurt to implicitly test it a bit this way. Closes: 721723 Thanks: Aaron M. Ucko
* configurable compression for testcasesDavid Kalnischkies2013-08-285-24/+41
| | | | | | | | Compressing files in 4 different styles eats test-time for no practical gain if we don't test them explicitly, so default to just building 'gz' compressed files as it is the simplest compression algorithm supported Git-Dch: Ignore
* old-style dpkg foreign architecture adding for testsDavid Kalnischkies2013-08-271-1/+7
| | | | | | | | Looks like the travis service runs on Ubuntu in a version which has dpkg with an earlier interface implementation, so lets try if we can't make the framework work with this dpkg version as well. Git-Dch: Ignore
* Merge pull request #3 from cbaines/debian/sidMichael Vogt2013-08-191-0/+25
|\ | | | | Add test for bug 507998
| * Add test for bug 507998Christopher Baines2013-08-161-0/+25
| |
* | allow Pre-Install-Pkgs hooks to get info over an FD != stdinDavid Kalnischkies2013-08-161-39/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds ::InfoFD option alongside the ::Version one to request sending the information to the specified FD, by default it is STDIN as it was the case before. The environment variable APT_HOOK_INFO_FD contains the FD the data is on as a confirmation that the APT version used understood the request. Allowing the hook to choose the FD is needed/helpful e.g. for shellscripts which have a hard time accessing FDs above 9 (as >= 10 are usually used internally by them) Closes: #671728
* | set MALLOC_CHECK_ and MALLOC_PERTURB_ for testcasesDavid Kalnischkies2013-08-152-6/+6
| | | | | | | | | | | | | | In bugreport deb:719629 Paul Wise mentions both to enable some malloc checks and as more testing can't hurt we enable both for all testcases. Git-Dch: Ignore