GNOME Bugzilla – Bug 688245
Add tmdb plugin tests
Last modified: 2012-11-16 13:43:16 UTC
Created attachment 228882 [details] [review] 0001-tests-Add-tests-for-tmdb-plug-in.patch These tests use grilo's new mocking framework.
Created attachment 228883 [details] [review] 0002-tests-Add-some-to-make-check.patch And this patch makes sure that the tmdb tests are run during make distcheck, so we can catch problems without them getting into releases.
These commits are also here: http://git.gnome.org/browse/grilo-plugins/log/?h=tmdb-test
commit 509db03ac058eabfab7c8b8108d31bccdcb3b900 Author: Murray Cumming <murrayc@murrayc.com> Date: Tue Nov 13 13:48:20 2012 +0100 tests: Add some to make check These will then be built and run during make check, and therefore during make distcheck. https://bugzilla.gnome.org/show_bug.cgi?id=688245 test/Makefile.am | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) commit 2c2b5ea365408ef907b4f2639a8ba73a8fa57d41 Author: Jens Georg <jensg@openismus.com> Date: Tue Nov 13 10:32:05 2012 +0100 tests: Add tests for tmdb plug-in With some changes by Murray Cumming to update this patch to the latest grilo API, split it into separate files so we can set GRL_NET_MOCKED before calling grl_init(), and to dist the test data files. https://bugzilla.gnome.org/show_bug.cgi?id=688245 test/.gitignore | 5 +++++ test/Makefile.am | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++------ test/test_tmdb_fast_resolution.c | 118 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ test/test_tmdb_full_resolution.c | 151 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ test/test_tmdb_missing_configuration.c | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ test/test_tmdb_preconditions.c | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ test/test_tmdb_utils.c | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ test/test_tmdb_utils.h | 33 +++++++++++++++++++++++++++++++++ 8 files changed, 620 insertions(+), 6 deletions(-)