summaryrefslogtreecommitdiff
path: root/test/libapt/compareversion_test.cc
Commit message (Collapse)AuthorAgeFilesLines
* use Google C++ Testing Framework for libapt testsDavid Kalnischkies2014-04-161-65/+120
| | | | | | | | | | | | 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.
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-5/+4
| | | | | | | | 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)
* warning: no previous declaration for foobar() [-Wmissing-declarations]David Kalnischkies2014-03-131-3/+3
| | | | | Git-Dch: Ignore Reported-By: gcc -Wmissing-declarations
* fix the compareversion test to work then called from outside of libaptDavid Kalnischkies2011-08-171-2/+5
|
* move the list of versions to test with to the libapt subdirectoryDavid Kalnischkies2011-08-171-1/+1
|
* * apt-pkg/deb/debversion.cc:David Kalnischkies2010-03-131-0/+123
- 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 ;)