summaryrefslogtreecommitdiff
path: root/test/integration/test-apt-get-source-arch
Commit message (Collapse)AuthorAgeFilesLines
* Keep URIs encoded in the acquire systemDavid Kalnischkies2020-12-181-6/+6
| | | | | | | | | | | | | | | | | | | We do not deal a lot with URIs which need encoding, but then we do it is a pain that we store it decoded in the acquire system as it means we have to decode and reencode URIs eventually which is potentially giving us slightly different URIs. We see that in our own testing framework while setting up redirects as the config options are effectively double-encoded and decoded to pass them around successfully as otherwise %2f and / in an URI are treated the same. This commit adds the infrastructure for methods to opt into getting URIs send in encoded form (and returning them to us in encoded form, too) so that we eventually do not have to touch the URIs which is how it should be. This means though that we have to deal with methods who do not support this yet (aka: all at the moment) for which we decode and encode while communicating with them.
* avoid building dependency tree in 'source' commandDavid Kalnischkies2016-02-031-2/+1
| | | | | | We don't need the dependencies for obvious reasons and we don't need the candidate version either, so building a pkgDepCache is wasted effort, which we can stop doing now that build-dep cleared the path.
* tests: support spaces in path and TMPDIRDavid Kalnischkies2015-12-191-2/+2
| | | | | | | This doesn't allow all tests to run cleanly, but it at least allows to write tests which could run successfully in such environments. Git-Dch: Ignore
* Consider md5sum no longer a usable hashMichael Vogt2015-09-011-6/+6
| | | | | The md5sum hash is broken since some time and we should no longer consider it a usable hash. Also update the tests to reflect this.
* condense parallel requests with the same hashes to oneDavid Kalnischkies2015-06-151-12/+11
| | | | | | | | | | | | | It shouldn't be too common, but sometimes people have multiple mirrors in the sources or otherwise repositories with the same content. Now that we gracefully can handle multiple requests to the same URI, we can also fold multiple requests with the same expected hashes into one. Note that this isn't trying to find oppertunities for merging, but just merges if it happens to encounter the oppertunity for it. This is most obvious in the new testcase actually as it needs to delay the action to give the acquire system enough time to figure out that they can be merged.
* test exitcode as well as string equalityDavid Kalnischkies2015-03-161-8/+8
| | | | | | | | We use test{success,failure} now all over the place in the framework, so its only consequencial to do this in the situations in which we test for a specific output as well. Git-Dch: Ignore
* improve error messageMichael Vogt2013-12-111-2/+2
|
* improve error message for apt-get source pkg:arch{=ver,/release}Michael Vogt2013-12-111-0/+10
|
* add support for "apt-get source pkg:arch"Michael Vogt2013-12-111-0/+60