]> git.saurik.com Git - apt.git/commit - test/libapt/uri_test.cc
use Google C++ Testing Framework for libapt tests
authorDavid Kalnischkies <david@kalnischkies.de>
Wed, 16 Apr 2014 15:09:37 +0000 (17:09 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Wed, 16 Apr 2014 16:36:14 +0000 (18:36 +0200)
commitf00832cc273e52a47fb88e49849891b771de4e17
treeeedd6b1e1c873c7e3e8f614a0ac8ca5c3b7e37b9
parentbb93178b8b5c2f8021977dbc34066f0d0fb8b9b9
use Google C++ Testing Framework for libapt tests

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.
29 files changed:
debian/control
test/libapt/assert.h [deleted file]
test/libapt/cdrom_test.cc [new file with mode: 0644]
test/libapt/cdromfindmountpointfordevice_test.cc [deleted file]
test/libapt/cdromfindpackages_test.cc
test/libapt/cdromreducesourcelist_test.cc [deleted file]
test/libapt/commandline_test.cc
test/libapt/commandlineasstring_test.cc [deleted file]
test/libapt/compareversion_test.cc
test/libapt/configuration_test.cc
test/libapt/file-helpers.cc [new file with mode: 0644]
test/libapt/file-helpers.h [new file with mode: 0644]
test/libapt/fileutl_test.cc
test/libapt/getarchitectures_test.cc
test/libapt/getlanguages_test.cc
test/libapt/getlistoffilesindir_test.cc
test/libapt/globalerror_test.cc
test/libapt/gtest_runner.cc [new file with mode: 0644]
test/libapt/hashsums_test.cc
test/libapt/indexcopytosourcelist_test.cc
test/libapt/install_progress_test.cc
test/libapt/makefile
test/libapt/parsedepends_test.cc
test/libapt/run-tests [deleted file]
test/libapt/sourcelist_test.cc
test/libapt/strutil_test.cc
test/libapt/tagfile_test.cc
test/libapt/uri_test.cc
test/libapt/versions.lst [deleted file]