summaryrefslogtreecommitdiff
path: root/test/libapt
AgeCommit message (Collapse)Author
2011-12-11use different compression types in the test now that we support themDavid Kalnischkies
2011-12-11add a testcase for FindPackages() to better validate that cdrom should work.David Kalnischkies
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 Kalnischkies
2011-10-05* apt-pkg/deb/debmetaindex.cc:David Kalnischkies
- 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 Kalnischkies
2011-09-13merge with debian/sidDavid Kalnischkies
2011-08-17for consistency allow the usage of 'make test' instead of './run-tests'David Kalnischkies
2011-08-17do not output color in the testcases if stdout/stderr are not a /dev/ptsDavid Kalnischkies
2011-08-17fix the compareversion test to work then called from outside of libaptDavid Kalnischkies
2011-08-17add 'dirs' target to the 'all' target to ensure that for e.g. the testsDavid Kalnischkies
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 Kalnischkies
2011-08-17merge the tests for configuration into another libapt-testDavid Kalnischkies
2011-08-15write a proper testcase replacing the print-only uri.cc testDavid Kalnischkies
2011-08-15merged from the debian-sid branchMichael Vogt
2011-08-11cppcheck complains about some possible speed improvements which could beDavid Kalnischkies
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 Vogt
2011-07-28* merged latest fixes from debian-sidMichael Vogt
* 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
2011-07-26merged from lp:~mvo/apt/mvoMichael Vogt
2011-07-26add another escape test case, fixup octal one (its \0XX instead of \0XXX)Michael Vogt
2011-07-26* apt-pkg/contrib/strutl.{h,cc}, test/libapt/strutil_test.cc:Michael Vogt
- add new DeEscapeString() similar to DeQuoteQuotedWord but unescape charackter escapes like \0XXX and \xXX (plus add test)
2011-07-25the order of languages after "none" is not important, so ignore it in testsDavid Kalnischkies
2011-07-25update the testcase to reflect that native is always on top ifDavid Kalnischkies
it is not in the config provided list of Architectures
2011-07-13test that AddFD for single summations works, tooDavid Kalnischkies
2011-07-13move hash test to libapt-testcases and add a few more testsDavid Kalnischkies
2011-02-16merged from donkult and fix dashishMichael Vogt
2011-02-15* apt-pkg/contrib/error.cc:David Kalnischkies
- ensure that va_list is not invalid in second try
2011-01-28 - download and use i18n/Index to choose which Translations to downloadDavid Kalnischkies
* apt-pkg/aptconfiguration.cc: - remove the inbuilt Translation files whitelist
2011-01-13ignore non-regular files in GetListOfFilesInDir (Closes: #594694)David Kalnischkies
2010-11-09evaluate Acquire::Languages= before LANG= (Closes: #602573)David Kalnischkies
2010-11-06* apt-pkg/aptconfiguration.cc:David Kalnischkies
- respect the none-force even in LANG=C (Closes: #602573)
2010-10-22dpkg doesn't like underscores in versions anymore (=it fails) so ourDavid Kalnischkies
behaviour can be undefined… (or at least can't be tested against dpkg)
2010-07-25Strip the .sh extension from the libapt testrunner andDavid Kalnischkies
make it a bit more robust against calling from outside
2010-07-05extends the ParseDepends testcase to have a look also at the WildcardsDavid Kalnischkies
2010-06-25add a simple stack handling to be able to delay error handlingDavid Kalnischkies
2010-05-28create the bin-test directory automatic in the runnerDavid Kalnischkies
2010-05-28* apt-pkg/aptconfiguration.cc:David Kalnischkies
- remove duplicate architectures in getArchitectures()
2010-05-04merged from the debian-sid branchMichael Vogt
2010-05-04merge from the mvo branchMichael Vogt
2010-03-13* apt-pkg/deb/debversion.cc:David Kalnischkies
- consider absent of debian revision equivalent to 0 (Closes: #573592) This moves the existing testcase for version comparison to "my" directory, adds a few more tests (e.g. the tests used in cupt) and rewrites the testcases runner: The runner does now call dpkg --compare-versions to check what dpkg thinks about the comparison - all done in less code ;)
2010-03-12* apt-pkg/deb/dpkgpm.cc:David Kalnischkies
- if available store the Commandline in the history * apt-pkg/contrib/cmndline.cc: - save Commandline in Commandline::AsString for logging
2010-02-18* aptconfiguration.cc:David Kalnischkies
- include all existing Translation files in the Cache (Closes: 564137) Previously if APT was executed with a different LC_* all these invocations needed to rebuild the Cache as too many files were included or missing: Now the lists-directory is checked for Translation-files and all these will be included in getLanguages() regardless of the environment setting (after a "none" so APT will not use them for displaying information).
2010-02-18dd support for the LANGUAGE environment variableDavid Kalnischkies
2010-01-23* apt-pkg/contrib/fileutl.cc:Michael Vogt
- Fix the newly introduced method GetListOfFilesInDir to not accept every file if no extension is enforced (= restore old behaviour). (Closes: #565213) * apt-pkg/policy.cc: - accept also partfiles with "pref" file extension as valid * apt-pkg/contrib/configuration.cc: - accept also partfiles with "conf" file extension as valid * doc/apt.conf.5.xml: - reorder description and split out syntax - add partfile name convention (Closes: #558348) * doc/apt_preferences.conf.5.xml: - describe partfile name convention also here * apt-pkg/deb/dpkgpm.cc: - don't segfault if term.log file can't be opened. Thanks Sam Brightman for the patch! (Closes: #475770) * doc/*: - replace the per language addendum with a global addendum - add a explanation why translations include (maybe) english parts to the new global addendum (Closes: #561636) * apt-pkg/contrib/strutl.cc: - fix malloc asseration fail with ja_JP.eucJP locale in apt-cache search. Thanks Kusanagi Kouichi! (Closes: #548884)
2010-01-16Fix the newly introduced method GetListOfFilesInDir to not accept everyDavid Kalnischkies
file if no extension is enforced (= restore old behaviour). (Closes: #565213) This commit includes also: * apt-pkg/policy.cc: - accept also partfiles with "pref" file extension as valid * apt-pkg/contrib/configuration.cc: - accept also partfiles with "conf" file extension as valid * doc/apt.conf.5.xml: - reorder description and split out syntax - add partfile name convention (Closes: #558348) * doc/apt_preferences.conf.5.xml: - describe partfile name convention also here And a lovely test application of course.
2009-12-10merged -r 1920..1922 from lp:~donkult/apt/sidMichael Vogt
2009-11-29Ignore :qualifiers after package name in build dependenciesDavid Kalnischkies
for now as long we don't understand them (Closes: #558103)
2009-11-28convert getlanguages_test to our new equals()David Kalnischkies
2009-11-28add our own equals method as assert doesn't really show the offendingDavid Kalnischkies
values which causes the failure.
2009-11-26Add a very simple test runnerDavid Kalnischkies
2009-11-26[BREAK] add possibility to download and use multiplyDavid Kalnischkies
Translation files, configurable with Acquire::Languages accessable with APT::Configuration::getLanguages() and as always with documentation in apt.conf. The commit also includes a very very simple testapp.