summaryrefslogtreecommitdiff
path: root/test/libapt/run-tests
Commit message (Collapse)AuthorAgeFilesLines
* use Google C++ Testing Framework for libapt testsDavid Kalnischkies2014-04-161-135/+0
| | | | | | | | | | | | My commit 45df0ad2 from 26. Nov 2009 had a little remark: "The commit also includes a very very simple testapp." This was never intended to be permanent, but as usually… The commit adds the needed make magic to compile gtest statically as it is required and links it against a small runner. All previous testcase binaries are reimplemented in gtest and combined in this runner. While most code is a 1:1 translation some had to be rewritten like compareversion_test.cc, but the coverage remains the same.
* clear HitEof flag in FileFd::SeekDavid Kalnischkies2014-04-161-0/+2
| | | | | | | | | fseek and co do this to their eof-flags and it is more logic this way as we will usually seek away from the end (e.g. to re-read the file). The commit also improves the testcase further and adds a test for the binary compressor codepath (as gz, bzip2 and xz are handled by libraries) via the use of 'rev' as a 'compressor'.
* support very long mtab entries in mountpoint discoveryDavid Kalnischkies2014-03-131-0/+8
| | | | | | Old code limited lines to 250 characters which is probably enough for everybody, but who knows… It also takes care of device nodes which start with the same prefix.
* set MALLOC_CHECK_ and MALLOC_PERTURB_ for testcasesDavid Kalnischkies2013-08-151-2/+2
| | | | | | | 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
* rework the parameter creation for the Hashsum testDavid Kalnischkies2013-08-151-3/+5
| | | | | | Avoids having to different places from which test binaries are called Git-Dch: Ignore
* do not call make from libapt/run-tests if its called by makeDavid Kalnischkies2013-08-151-3/+5
| | | | | | | | | If we are called by make everything is build already and so this is just a noise nop we can just skip. (Noisy as it complains about being unable to communicate with the other makes to coordinate with the jobserver) Git-Dch: Ignore
* * test/libapt/assert.h, test/libapt/run-tests:Michael Vogt2013-03-171-1/+8
| | | - exit with status 1 on test failure
* * apt-pkg/aptconfiguration.cc:David Kalnischkies2012-05-201-1/+2
| | | | - longcode Translation files are saved with encoded underscore, so make sure to pick these files up as well for Acquire::Languages
* use the variables as the rest of the tests to avoid escapes in the outputDavid Kalnischkies2012-03-221-2/+2
|
* * test/libapt/run-tests:David Kalnischkies2012-01-201-3/+1
| | | | - hurd doesn't have dmesg yet and we don't really need it either, so use with $0 a more stable data source for hashsumming
* use different compression types in the test now that we support themDavid Kalnischkies2011-12-111-6/+6
|
* add a testcase for FindPackages() to better validate that cdrom should work.David Kalnischkies2011-12-111-0/+29
| | | | | | Unfortunately it's hard to do an automated integration test with cd, so we test this method in isolation which tries to find Indexes and dropping of duplications with DropRepeats()
* * apt-pkg/deb/debmetaindex.cc:David Kalnischkies2011-10-051-1/+2
| | | | | - none is a separator, not a language: no need for Index (Closes: #624218) * apt-pkg/aptconfiguration.cc: - do not builtin languages only if none is forced (Closes: #643787)
* merge with debian/sidDavid Kalnischkies2011-09-131-7/+19
|\
| * do not output color in the testcases if stdout/stderr are not a /dev/ptsDavid Kalnischkies2011-08-171-5/+17
| |
| * fix the compareversion test to work then called from outside of libaptDavid Kalnischkies2011-08-171-0/+2
| |
| * add 'dirs' target to the 'all' target to ensure that for e.g. the testsDavid Kalnischkies2011-08-171-1/+0
| | | | | | | | all (sub)directories are build which are needed (e.g. obj/ and co)
* | move hash test to libapt-testcases and add a few more testsDavid Kalnischkies2011-07-131-0/+7
|/
* merged from donkult and fix dashishMichael Vogt2011-02-161-1/+1
|
* ignore non-regular files in GetListOfFilesInDir (Closes: #594694)David Kalnischkies2011-01-131-0/+5
|
* dpkg doesn't like underscores in versions anymore (=it fails) so ourDavid Kalnischkies2010-10-221-1/+1
| | | | behaviour can be undefined… (or at least can't be tested against dpkg)
* Strip the .sh extension from the libapt testrunner andDavid Kalnischkies2010-07-251-0/+61
make it a bit more robust against calling from outside