summaryrefslogtreecommitdiff
path: root/test/libapt/sourcelist_test.cc
AgeCommit message (Collapse)Author
2015-08-10bring back deb822 sources.list entries as .sourcesDavid Kalnischkies
Having two different formats in the same file is very dirty and causes external tools to fail hard trying to parse them. It is probably not a good idea for them to parse them in the first place, but they do and we shouldn't break them if there is a better way. So we solve this issue for now by giving our deb822 format a new filename extension ".sources" which unsupporting applications are likely to ignore an can begin gradually moving forward rather than waiting for the unknown applications to catch up. Currently and for the forseeable future apt is going to support both with the same feature set as documented in the manpage, with the longtime plan of adopting the 'new' format as default, but that is a long way to go and might get going more from having an easier time setting options than from us pushing it explicitely.
2015-08-10fix memory leaks reported by -fsanitizeDavid Kalnischkies
Various small leaks here and there. Nothing particularily big, but still good to fix. Found by the sanitizers while running our testcases. Reported-By: gcc -fsanitize Git-Dch: Ignore
2014-11-08tests: silence clang on uninitilized variablesDavid Kalnischkies
The testcases have far worse problems if these ever end up being NULL and/or are not given a value by the method called, but clang is right to warn about it, just that we don't want to fix it in testcases… Git-Dch: Ignore
2014-04-16use Google C++ Testing Framework for libapt testsDavid Kalnischkies
My commit 45df0ad2 from 26. Nov 2009 had a little remark: "The commit also includes a very very simple testapp." This was never intended to be permanent, but as usually… The commit adds the needed make magic to compile gtest statically as it is required and links it against a small runner. All previous testcase binaries are reimplemented in gtest and combined in this runner. While most code is a 1:1 translation some had to be rewritten like compareversion_test.cc, but the coverage remains the same.
2014-03-13cleanup headers and especially #includes everywhereDavid Kalnischkies
Beside being a bit cleaner it hopefully also resolves oddball problems I have with high levels of parallel jobs. Git-Dch: Ignore Reported-By: iwyu (include-what-you-use)
2014-03-13warning: unused parameter ‘foo’ [-Wunused-parameter]David Kalnischkies
Reported-By: gcc -Wunused-parameter Git-Dch: Ignore
2014-03-13warning: no previous declaration for foobar() [-Wmissing-declarations]David Kalnischkies
Git-Dch: Ignore Reported-By: gcc -Wmissing-declarations
2014-01-24fix testMichael Vogt
2014-01-21Merge remote-tracking branch 'upstream/debian/experimental-no-abi-break' ↵Michael Vogt
into feature/source-deb822 Conflicts: test/integration/test-apt-sources-deb822
2014-01-20add support for multipl types in one lineMichael Vogt
2014-01-20add support for multiple URIs in deb822 style sources.listMichael Vogt
2014-01-20add Description tag for deb822 sourcesMichael Vogt
2014-01-18Merge remote-tracking branch 'mvo/feature/source-deb822' into ↵Michael Vogt
debian/experimental-no-abi-break
2014-01-18rename "Suite/Section" to pluralMichael Vogt
2014-01-18Merge remote-tracking branch 'mvo/feature/source-deb822' into ↵Michael Vogt
debian/experimental-no-abi-break
2014-01-17implement suggestion by donkult (thanks!)Michael Vogt
2014-01-16merged mvo/feature/deb822Michael Vogt
2014-01-16update libapt testMichael Vogt
2014-01-15actually register the tempfile removal atexitDavid Kalnischkies
Git-Dch: Ignore
2013-12-05add unittest for new sourceslist parser as wellMichael Vogt