summaryrefslogtreecommitdiff
path: root/test/libapt
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | 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
* 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
* * lp:~mvo/apt/add-glob-function:Michael Vogt2013-08-152-0/+47
| | | | | | | - add Glob() to fileutl.{cc,h} Conflicts: apt-pkg/contrib/fileutl.h debian/changelog
* * lp:~mvo/apt/config-clear:Michael Vogt2013-08-151-0/+4
| | | | | | | - support Configuration.Clear() for a clear of the entire configuration Conflicts: debian/changelog
* stop building l10n if strings are unchangedDavid Kalnischkies2013-06-091-0/+1
| | | | | | The buildsystem tried to build l10n for test applications which never produced the output it expected causing it to try building it all the time.
* fix uri testMichael Vogt2013-05-081-1/+1
|
* merged patch from Daniel Hartwig to fix URI and proxy releated issuesMichael Vogt2013-05-081-0/+8
|
* merged lp:~mvo/apt/fix-tagfile-hashMichael Vogt2013-03-222-1/+66
|\
| * test/libapt/tagfile_test.cc: add missing "unistd.h" (thanks to Niels Thykier)Michael Vogt2013-03-181-0/+1
| |
| * fix pkgTagSection::Exists() and add testMichael Vogt2013-03-182-1/+65
| |
* | * test/libapt/assert.h, test/libapt/run-tests:Michael Vogt2013-03-172-1/+10
|/ | | - exit with status 1 on test failure
* * apt-pkg/cdrom.cc:David Kalnischkies2012-09-022-0/+92
| | | | - 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/indexcopy.cc:David Kalnischkies2012-09-022-0/+92
| | | | - do not create duplicated flat-archive cdrom sources for foreign architectures on multi-arch cdroms
* add two tests for architecture specificationsDavid Kalnischkies2012-06-141-5/+5
|
* * apt-pkg/aptconfiguration.cc:David Kalnischkies2012-06-101-2/+4
| | | | - if APT::Languages=none save "none" in allCodes so that the detected configuration is cached as intended (Closes: #674690, LP: #1004947)
* fix segfault with empty LongOpt in --no-* branchDavid Kalnischkies2012-06-091-2/+13
|
* * apt-pkg/contrib/cmdline.cc:Daniel Hartwig2012-06-092-0/+27
| | | | | - apply patch from Daniel Hartwig to fix a segfault in case the LongOpt is empty (Closes: #676331)
* * apt-pkg/aptconfiguration.cc:David Kalnischkies2012-05-203-5/+34
| | | | - longcode Translation files are saved with encoded underscore, so make sure to pick these files up as well for Acquire::Languages
* add a simple test for HashSumValue classesDavid Kalnischkies2012-05-021-0/+22
|
* /dev/null is a special absolute path as it has no subdirectoriesDavid Kalnischkies2012-04-231-0/+5
|
* normalize a bit by replacing // and /./ with / in FindFileDavid Kalnischkies2012-04-231-0/+13
|
* use the variables as the rest of the tests to avoid escapes in the outputDavid Kalnischkies2012-03-221-2/+2
|
* * apt-pkg/contrib/configuration.cc:David Kalnischkies2012-01-301-0/+9
| | | | | - do not stop parent transversal in FindDir if the value is empty See http://lists.debian.org/deity/2012/01/msg00053.html , too.
* * 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
* * test/libapt/globalerror_test.cc:Pino Toscano2012-01-201-2/+5
| | | | | - errno 0 has a different strerror on hurd, so generate the expected message dynamically instead of hardcoding 'Success' (Closes: #656530)
* 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-113-0/+121
| | | | | | 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()
* fix compiler warning about signed comparision on amd64, tooDavid Kalnischkies2011-10-111-0/+12
|
* * apt-pkg/deb/debmetaindex.cc:David Kalnischkies2011-10-053-4/+26
| | | | | - 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)
* do not pollute namespace in the headers with using (Closes: #500198)David Kalnischkies2011-09-194-5/+5
|
* merge with debian/sidDavid Kalnischkies2011-09-137-10/+337
|\
| * for consistency allow the usage of 'make test' instead of './run-tests'David Kalnischkies2011-08-171-0/+4
| |
| * 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-172-2/+7
| |
| * 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 the list of versions to test with to the libapt subdirectoryDavid Kalnischkies2011-08-172-1/+107
| |
| * merge the tests for configuration into another libapt-testDavid Kalnischkies2011-08-172-0/+84
| |
| * write a proper testcase replacing the print-only uri.cc testDavid Kalnischkies2011-08-153-1/+119
| |
* | merged from the debian-sid branchMichael Vogt2011-08-154-21/+8
|\|
| * cppcheck complains about some possible speed improvements which could beDavid Kalnischkies2011-08-114-21/+8
| | | | | | | | | | | | done on the mirco-optimazation level, so lets fix them: (performance) Possible inefficient checking for emptiness. (performance) Prefer prefix ++/-- operators for non-primitive types.
* | test/libapt/hashsums_test.cc: add a test for HashString and VerifyFileMichael Vogt2011-07-291-0/+15
| |
* | * merged latest fixes from debian-sidMichael Vogt2011-07-285-6/+98
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * apt-pkg/contrib/sha1.cc: - fix illegally casts of on-stack buffer to a type requiring more alignment than it has resulting in segfaults on sparc (Closes: #634696) * apt-pkg/contrib/cdromutl.cc: - fix escape problem when looking for the mounted devices * apt-pkg/contrib/strutl.{h,cc}, test/libapt/strutil_test.cc: - add new DeEscapeString() similar to DeQuoteString but unescape character escapes like \0XX and \xXX (plus added test) * refresh po/* * cmdline/apt-get.cc: - fix missing download progress in apt-get download - do not require unused partial dirs in 'source' (Closes: #633510) - buildconflicts effect all architectures - implement MultiarchCross for build-dep and source (Closes: #632221) * cmdline/apt-key: - use a tmpfile instead of /etc/apt/secring.gpg (Closes: #632596) * debian/apt.postinst: - remove /etc/apt/secring.gpg if it is an empty file * doc/apt-cache.8.xml: - apply madison typofix from John Feuerstein, thanks! (Closes: #633455) * apt-pkg/policy.cc: - emit an error on unknown APT::Default-Release value (Closes: #407511) * apt-pkg/aptconfiguration.cc: - ensure that native architecture is if not specified otherwise the first architecture in the Architectures vector * apt-pkg/deb/deblistparser.cc: - Strip only :any and :native if MultiArch should be stripped as it is save to ignore them in non-MultiArch contexts but if the dependency is a specific architecture (and not the native) do not strip
| * merged from lp:~mvo/apt/mvoMichael Vogt2011-07-262-0/+52
| |\
| | * add another escape test case, fixup octal one (its \0XX instead of \0XXX)Michael Vogt2011-07-261-0/+6
| | |