summaryrefslogtreecommitdiff
path: root/test/libapt
AgeCommit message (Collapse)Author
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-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-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.