summaryrefslogtreecommitdiff
path: root/test/integration/framework
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'donkult/debian/sid' into debian/sidMichael Vogt2014-01-261-79/+122
|\ | | | | | | | | | | | | Conflicts: apt-private/private-list.cc doc/po/de.po test/integration/framework
| * get color/msglevel handling for tests in lineDavid Kalnischkies2014-01-171-12/+18
| | | | | | | | | | | | | | | | | | 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-171-13/+13
| | | | | | | | | | | | | | | | 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
| * tests: default to 'sid' codename for 'unstable'David Kalnischkies2014-01-151-1/+6
| | | | | | | | Git-Dch: Ignore
| * use C.UTF-8 in testcases as localeDavid Kalnischkies2014-01-151-5/+5
| | | | | | | | Git-Dch: Ignore
* | Merge remote-tracking branch 'mvo/debian/sid' into ↵Michael Vogt2014-01-181-4/+6
|\ \ | | | | | | | | | debian/experimental-no-abi-break
| * | add missing integration test for "apt list"Michael Vogt2014-01-171-4/+6
| |/
* | rework some testcases to not spit out textDavid Kalnischkies2014-01-151-11/+11
| | | | | | | | | | | | Rework also uncovers two FIXMEs Git-Dch: Ignore
* | improve testsMichael Vogt2014-01-041-2/+11
|/
* fix APTWEBSERVERBINDIR defaultMichael Vogt2013-12-271-1/+1
|
* run autopkgtest against the installed aptMichael Vogt2013-12-131-4/+13
|
* tests: add a webserverconfig method to abstract configDavid Kalnischkies2013-11-301-0/+16
| | | | | | | The URI to use to set a config option is a bit arcane to write/remember and checking if the setting was successful doubly so. Git-Dch: Ignore
* tests: enhance https support in the testcasesDavid Kalnischkies2013-11-301-3/+7
| | | | Git-Dch: Ignore
* add $* to gdb to make it more usefulMichael Vogt2013-10-181-1/+1
|
* 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-151-1/+9
|
* tests: fix some problems travis encountersDavid Kalnischkies2013-10-021-45/+37
| | | | Git-Dch: Ignore
* handle complete responses to https range requestsDavid Kalnischkies2013-10-011-22/+70
| | | | | | | | | | | | | 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
* configurable compression for testcasesDavid Kalnischkies2013-08-281-11/+37
| | | | | | | | 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
* set MALLOC_CHECK_ and MALLOC_PERTURB_ for testcasesDavid Kalnischkies2013-08-151-4/+4
| | | | | | | 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
* ensure that testcases exiting because of set -e aren't successfulDavid Kalnischkies2013-08-121-1/+11
| | | | Git-Dch: Ignore
* fix output redirection orderDavid Kalnischkies2013-08-121-3/+3
| | | | | | | First redirect output to a file, then redirect other outputs to this output, not the other way around as this will not work. Git-Dch: Ignore
* add chronic-like testsuccess/testfailure helpersDavid Kalnischkies2013-08-121-0/+34
| | | | | | | | | | For many commands the output isn't stable (like then dpkg is called) but the exitcode is, so this helper enhances the common && msgpass || msgfail by generating automatically a msgtest and showing the output of the command in case of failure instead of discarding it unconditionally, the later being chronic-like behaviour Git-Dch: Ignore
* test Release file handling with expired keysDavid Kalnischkies2013-08-121-6/+29
| | | | | | | | | Signing files with expired keys is not as easy as it sounds, so the framework jumps a few loops to do it, but it might come in handy to have an expired key around for later tests even if it is not that different from having no key in regards to APT behaviour. Git-Dch: Ignore
* simple fork and pidfile aptwebserverDavid Kalnischkies2013-06-241-4/+14
| | | | | | | | | | | Forking only after being ready to accept clients avoids running races with the tests which sometimes failed on the first 'apt-get update' (or similar) with the previous background-start and hope for the best… The commit fixes also some oversight output-order changes in regards to Description-md5 and (I-M-S) race conditions in various tests. Git-Dch: Ignore
* trigger NODATA error for invalid InRelease filesDavid Kalnischkies2013-06-201-0/+3
| | | | | | | | | | | | | | | | | With the selfgrown splitting we got the problem of not recovering from networks which just reply with invalid data like those sending us login pages to authenticate with the network (e.g. hotels) back. The good thing about the InRelease file is that we know that it must be clearsigned (a Release file might or might not have a detached sig) so if we get a file but are unable to split it something is seriously wrong, so there is not much point in trying further. The Acquire system already looks out for a NODATA error from gpgv, so this adds a new error message sent to the acquire system in case the splitting we do now ourselves failed including this magic word. Closes: #712486
* tests: accept an explaination for msgfailDavid Kalnischkies2013-06-201-3/+7
| | | | Git-Dch: Ignore
* add a simple webserver for our testcasesDavid Kalnischkies2013-06-201-6/+13
| | | | | | | | | | | | | | | | | | APT needs to acquire data in a secure fashion over an inherently unsecure way, known as the internet, while communicating with unreliable partners, known as webservers and proxies. For your integration tests we so far relied on 'normal' webservers, but all of them have certain quirks and none is able to provide us with all quirks which can be observed in the wild and we therefore have to test with, so this webserver isn't trying to be fast, secure or feature complete, but to provide all the quirks we need in a consistent way. This webserver also makes the APT project self-contained, as it is now able to generate, serve as well as acquire package indexes. ;) Git-Dch: Ignore
* ensure state-dir exists before coyping cdrom filesDavid Kalnischkies2013-06-091-3/+5
| | | | | | We do the same in the acquire system which handles the 'normal' downloads, so do it here as well even though its unlikely anyone will ever notice (beside testcases of course …)
* tests: trap-adding can be post- as well as prefixDavid Kalnischkies2013-06-091-3/+6
| | | | | | | | | For testcases it might sometimes be handy to add trap-actions before the general cleanup, e.g. if it has set directories read- only which rm doesn't want to remove even with --force applied (its fine with files though) Git-Dch: Ignore
* fix support for multiple patterns in apt-cache searchDavid Kalnischkies2013-06-091-3/+9
| | | | | | | Patterns can appear in the name as well as in the description, they don't have to match all in the name/description only. Closes: 691453
* merged lp:~mvo/apt/fix-inrelease5Michael Vogt2013-04-021-2/+8
|\
| * * apt-pkg/deb/debindexfile.cc,David Kalnischkies2013-03-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | apt-pkg/deb/deblistparser.cc: - use OpenMaybeClearSignedFile to be free from detecting and skipping clearsigning metadata in dsc and Release files We can't write a "clean" file to disk as not all acquire methods copy Release files before checking them (e.g. cdrom), so this reverts recombining, but uses the method we use for dsc files also in the two places we deal with Release files
| * - add method to open (maybe) clearsigned files transparentlyDavid Kalnischkies2013-03-181-2/+8
| | | | | | | | | | * ftparchive/writer.cc: - use OpenMaybeClearSignedFile to be free from detecting and skipping clearsigning metadata in dsc files
* | test/integration/framework: use EXIT_CODE to be consistent with the ↵Michael Vogt2013-03-181-5/+5
| | | | | | | | run-tests code
* | report failures via exit and ensure we don't overflowMichael Vogt2013-03-181-3/+8
| |
* | * test/integration/framework:Michael Vogt2013-03-181-2/+8
|/ | | - continue after test failure but preserve exit status
* handle packages without a mandatory architecture (debian-policy §5.3)David Kalnischkies2012-09-091-6/+6
| | | | | by introducing a pseudo-architecture 'none' so that the small group of users with these packages can get right of them without introducing too much hassle for other users (Closes: #686346)
* * apt-pkg/cdrom.cc:David Kalnischkies2012-09-031-0/+16
| | | | | | | - copy only configured translation files from a CD-ROM and not all available translation files preventing new installs with d-i from being initialized with all translations (Closes: #678227) - handle Components in the reduction for the source.list as multi-arch CDs otherwise create duplicated source entries (e.g. "wheezy main main")
* * apt-pkg/packagemanager.cc:David Kalnischkies2012-08-301-1/+2
| | | | | - unpack versions in case a different version from the package is currently in unpack state to recover from broken system states (like different file in M-A:same package and other dpkg errors)
* * cmdline/apt-mark.cc:David Kalnischkies2012-07-041-0/+5
| | | | | | - arch:all packages are treated as arch:native packages, but dpkg expects pkg:all for selections, so use the arch of the installed version instead of the package structure if possible. Thanks to Stepan Golosunov for the report! (Closes: #680041)
* add two tests for architecture specificationsDavid Kalnischkies2012-06-141-4/+9
|
* check build-dep candidate if install is forbiddenDavid Kalnischkies2012-06-111-1/+2
|
* add a small wrapper to call gdb in the framework settingDavid Kalnischkies2012-05-101-0/+4
|