summaryrefslogtreecommitdiff
path: root/test/libapt
AgeCommit message (Collapse)AuthorFilesLines
2013-12-23add basic tests for GetTempDir()Michael Vogt1-0/+13
2013-11-29add "APT::String::Endswith" and automatic adding of ".list" in apt edit-sourceMichael Vogt1-0/+18
2013-10-05Merge remote-tracking branch 'mvo/bugfix/dpkg-progress-multiarch' into ↵Michael Vogt1-0/+27
debian/sid
2013-10-01change maxsplit default from "0" to maxintMichael Vogt1-0/+4
2013-09-07add maxsplit parameter to StringSplitMichael Vogt1-0/+6
2013-09-07implement StringSplit() as we need this to fix the dpkg status-fd output parsingMichael Vogt1-0/+17
2013-09-03use FileFd in HashSum test to unbreak non-linux portsDavid Kalnischkies1-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
2013-08-15set MALLOC_CHECK_ and MALLOC_PERTURB_ for testcasesDavid Kalnischkies1-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
2013-08-15rework the parameter creation for the Hashsum testDavid Kalnischkies1-3/+5
Avoids having to different places from which test binaries are called Git-Dch: Ignore
2013-08-15do not call make from libapt/run-tests if its called by makeDavid Kalnischkies1-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
2013-08-15* lp:~mvo/apt/add-glob-function:Michael Vogt2-0/+47
- add Glob() to fileutl.{cc,h} Conflicts: apt-pkg/contrib/fileutl.h debian/changelog
2013-08-15* lp:~mvo/apt/config-clear:Michael Vogt1-0/+4
- support Configuration.Clear() for a clear of the entire configuration Conflicts: debian/changelog
2013-06-09stop building l10n if strings are unchangedDavid Kalnischkies1-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.
2013-05-08fix uri testMichael Vogt1-1/+1
2013-05-08merged patch from Daniel Hartwig to fix URI and proxy releated issuesMichael Vogt1-0/+8
2013-03-22merged lp:~mvo/apt/fix-tagfile-hashMichael Vogt2-1/+66
2013-03-18test/libapt/tagfile_test.cc: add missing "unistd.h" (thanks to Niels Thykier)Michael Vogt1-0/+1
2013-03-18fix pkgTagSection::Exists() and add testMichael Vogt2-1/+65
2013-03-17* test/libapt/assert.h, test/libapt/run-tests:Michael Vogt2-1/+10
- exit with status 1 on test failure
2012-09-02* apt-pkg/cdrom.cc:David Kalnischkies2-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")
2012-09-02* apt-pkg/indexcopy.cc:David Kalnischkies2-0/+92
- do not create duplicated flat-archive cdrom sources for foreign architectures on multi-arch cdroms
2012-06-14add two tests for architecture specificationsDavid Kalnischkies1-5/+5
2012-06-10* apt-pkg/aptconfiguration.cc:David Kalnischkies1-2/+4
- if APT::Languages=none save "none" in allCodes so that the detected configuration is cached as intended (Closes: #674690, LP: #1004947)
2012-06-09fix segfault with empty LongOpt in --no-* branchDavid Kalnischkies1-2/+13
2012-06-09* apt-pkg/contrib/cmdline.cc:Daniel Hartwig2-0/+27
- apply patch from Daniel Hartwig to fix a segfault in case the LongOpt is empty (Closes: #676331)
2012-05-20* apt-pkg/aptconfiguration.cc:David Kalnischkies3-5/+34
- longcode Translation files are saved with encoded underscore, so make sure to pick these files up as well for Acquire::Languages
2012-05-02add a simple test for HashSumValue classesDavid Kalnischkies1-0/+22
2012-04-23/dev/null is a special absolute path as it has no subdirectoriesDavid Kalnischkies1-0/+5
2012-04-23normalize a bit by replacing // and /./ with / in FindFileDavid Kalnischkies1-0/+13
2012-03-22use the variables as the rest of the tests to avoid escapes in the outputDavid Kalnischkies1-2/+2
2012-01-30* apt-pkg/contrib/configuration.cc:David Kalnischkies1-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.
2012-01-20* test/libapt/run-tests:David Kalnischkies1-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
2012-01-20* test/libapt/globalerror_test.cc:Pino Toscano1-2/+5
- errno 0 has a different strerror on hurd, so generate the expected message dynamically instead of hardcoding 'Success' (Closes: #656530)
2011-12-11use different compression types in the test now that we support themDavid Kalnischkies1-6/+6
2011-12-11add a testcase for FindPackages() to better validate that cdrom should work.David Kalnischkies3-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()
2011-10-11fix compiler warning about signed comparision on amd64, tooDavid Kalnischkies1-0/+12
2011-10-05* apt-pkg/deb/debmetaindex.cc:David Kalnischkies3-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)
2011-09-19do not pollute namespace in the headers with using (Closes: #500198)David Kalnischkies4-5/+5
2011-09-13merge with debian/sidDavid Kalnischkies7-10/+337
2011-08-17for consistency allow the usage of 'make test' instead of './run-tests'David Kalnischkies1-0/+4
2011-08-17do not output color in the testcases if stdout/stderr are not a /dev/ptsDavid Kalnischkies1-5/+17
2011-08-17fix the compareversion test to work then called from outside of libaptDavid Kalnischkies2-2/+7
2011-08-17add 'dirs' target to the 'all' target to ensure that for e.g. the testsDavid Kalnischkies1-1/+0
all (sub)directories are build which are needed (e.g. obj/ and co)
2011-08-17move the list of versions to test with to the libapt subdirectoryDavid Kalnischkies2-1/+107
2011-08-17merge the tests for configuration into another libapt-testDavid Kalnischkies2-0/+84
2011-08-15write a proper testcase replacing the print-only uri.cc testDavid Kalnischkies3-1/+119
2011-08-15merged from the debian-sid branchMichael Vogt4-21/+8
2011-08-11cppcheck complains about some possible speed improvements which could beDavid Kalnischkies4-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.
2011-07-29test/libapt/hashsums_test.cc: add a test for HashString and VerifyFileMichael Vogt1-0/+15
2011-07-28* merged latest fixes from debian-sidMichael Vogt5-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