summaryrefslogtreecommitdiff
path: root/test/integration/test-apt-update-hashsum-mismatch
Commit message (Collapse)AuthorAgeFilesLines
* fail early in http if server answer is too small as wellDavid Kalnischkies2017-07-261-8/+3
| | | | | | | | | Failing on too much data is good, but we can do better by checking for exact filesizes as we know with hashsums how large a file should be, so if we get a file which has a size we do not expect we can drop it directly, regardless of if the file is larger or smaller than what we expect which should catch most cases which would end up as hashsum errors later now a lot sooner.
* optional write aptwebserver log to client specific filesDavid Kalnischkies2016-11-251-1/+1
| | | | | | | | | | | | The test test-handle-redirect-as-used-mirror-change serves multiple clients at the same time, so the order of the output is undefined and once in a while the two clients will intermix their lines causing the grep we perform on it later to fail making our tests fail. Solved by introducing client-specific logfiles which we all grep and sort the result to have the results more stable. Git-Dch: Ignore
* 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
* travis: add ppa:ubuntu-toolschain-r/test as source for gcc-5David Kalnischkies2015-08-121-1/+1
| | | | | | | | This makes travis-ci able to run our tests again. Sometimes. If it doesn't spontaneously fails with internal gcc errors… Git-Dch: Ignore
* Merge remote-tracking branch 'upstream/debian/experimental' into ↵Michael Vogt2014-11-061-9/+4
| | | | | | | feature/no-more-acquire-guessing Conflicts: apt-pkg/acquire-item.cc
* promote filesize to a hashstringDavid Kalnischkies2014-10-241-0/+49
It is a very simple hashstring, which is why it isn't contributing to the usability of a list of them, but it is also trivial to check and calculate, so it doesn't hurt checking it either as it can combined even with the simplest other hashes greatly complicate attacks on them as you suddenly need a same-size hash collision, which is usually a lot harder to achieve.