summaryrefslogtreecommitdiff
path: root/test/libapt
Commit message (Collapse)AuthorAgeFilesLines
* cherrypick from my apt/experimental branchDavid Kalnischkies2011-10-053-4/+26
| | | | | | * apt-pkg/deb/debmetaindex.cc: - 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)
* 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
|
* 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.
* 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
| |
| * * apt-pkg/contrib/strutl.{h,cc}, test/libapt/strutil_test.cc:Michael Vogt2011-07-262-0/+46
| | | | | | | | - add new DeEscapeString() similar to DeQuoteQuotedWord but unescape charackter escapes like \0XXX and \xXX (plus add test)
* | the order of languages after "none" is not important, so ignore it in testsDavid Kalnischkies2011-07-252-6/+40
| |
* | update the testcase to reflect that native is always on top ifDavid Kalnischkies2011-07-251-0/+6
|/ | | | it is not in the config provided list of Architectures
* merged from donkult and fix dashishMichael Vogt2011-02-161-1/+1
|
* * apt-pkg/contrib/error.cc:David Kalnischkies2011-02-151-0/+32
| | | - ensure that va_list is not invalid in second try
* - download and use i18n/Index to choose which Translations to downloadDavid Kalnischkies2011-01-281-31/+40
| | | | * apt-pkg/aptconfiguration.cc: - remove the inbuilt Translation files whitelist
* ignore non-regular files in GetListOfFilesInDir (Closes: #594694)David Kalnischkies2011-01-131-0/+5
|
* evaluate Acquire::Languages= before LANG= (Closes: #602573)David Kalnischkies2010-11-091-0/+18
|
* * apt-pkg/aptconfiguration.cc:David Kalnischkies2010-11-061-0/+6
| | | - respect the none-force even in LANG=C (Closes: #602573)
* 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-5/+6
| | | | make it a bit more robust against calling from outside
* extends the ParseDepends testcase to have a look also at the WildcardsDavid Kalnischkies2010-07-051-0/+68
|
* add a simple stack handling to be able to delay error handlingDavid Kalnischkies2010-06-252-2/+85
|
* create the bin-test directory automatic in the runnerDavid Kalnischkies2010-05-281-0/+1
|
* * apt-pkg/aptconfiguration.cc:David Kalnischkies2010-05-282-0/+66
| | | - remove duplicate architectures in getArchitectures()
* merged from the debian-sid branchMichael Vogt2010-05-041-0/+7
|\
| * merge from the mvo branchMichael Vogt2010-05-041-0/+7
| |\
| | * * apt-pkg/contrib/fileutl.cc:Michael Vogt2010-01-232-4/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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)
| | * merged -r 1920..1922 from lp:~donkult/apt/sidMichael Vogt2009-12-101-0/+10
| |
* | * apt-pkg/deb/debversion.cc:David Kalnischkies2010-03-132-0/+129
| | | | | | | | | | | | | | | | | | - 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 ;)
* | * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2010-03-122-0/+45
|/ | | | | | - if available store the Commandline in the history * apt-pkg/contrib/cmndline.cc: - save Commandline in Commandline::AsString for logging
* * aptconfiguration.cc:David Kalnischkies2010-02-182-2/+27
| | | | | | | | | | - 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).
* dd support for the LANGUAGE environment variableDavid Kalnischkies2010-02-181-14/+47
|
* Fix the newly introduced method GetListOfFilesInDir to not accept everyDavid Kalnischkies2010-01-163-4/+134
| | | | | | | | | | | | | | | | | 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.
* Ignore :qualifiers after package name in build dependenciesDavid Kalnischkies2009-11-292-0/+134
| | | | for now as long we don't understand them (Closes: #558103)
* convert getlanguages_test to our new equals()David Kalnischkies2009-11-281-34/+34
|
* add our own equals method as assert doesn't really show the offendingDavid Kalnischkies2009-11-281-0/+21
| | | | values which causes the failure.
* Add a very simple test runnerDavid Kalnischkies2009-11-261-0/+10
|
* [BREAK] add possibility to download and use multiplyDavid Kalnischkies2009-11-262-0/+104
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.