diff options
author | Iago Toral Quiroga <itoral@igalia.com> | 2010-03-12 10:21:20 +0100 |
---|---|---|
committer | Iago Toral Quiroga <itoral@igalia.com> | 2010-03-12 10:21:20 +0100 |
commit | 959ec3c61ea35a08e99be40a4338d5c776b2f6db (patch) | |
tree | d8c3a601b1b561d78046b07de485a718d6c07479 /test | |
parent | 90daaad5701b4d44e444b2e30fae193ed72c0cf4 (diff) |
[tests] Do not assert if fake-metadata plugin is not available.
Also, added podcasts and bookmarks plugins.
Diffstat (limited to 'test')
-rw-r--r-- | test/main.c | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/test/main.c b/test/main.c index 857b416..32de62c 100644 --- a/test/main.c +++ b/test/main.c @@ -251,6 +251,10 @@ main (void) "../src/flickr/.libs/libgrlflickr.so"); grl_plugin_registry_load (registry, "../src/metadata-store/.libs/libgrlmetadatastore.so"); + grl_plugin_registry_load (registry, + "../src/bookmarks/.libs/libgrlbookmarks.so"); + grl_plugin_registry_load (registry, + "../src/podcasts/.libs/libgrlpodcasts.so"); g_debug ("Obtaining sources"); @@ -290,24 +294,34 @@ main (void) (GrlMetadataSource *) grl_plugin_registry_lookup_source (registry, "grl-metadata-store"); + GrlMediaSource *bookmarks = + (GrlMediaSource *) grl_plugin_registry_lookup_source (registry, + "grl-bookmarks"); + + GrlMediaSource *podcasts = + (GrlMediaSource *) grl_plugin_registry_lookup_source (registry, + "grl-podcasts"); + g_assert (youtube); g_assert (fs); g_assert (jamendo); g_assert (shoutcast); g_assert (apple_trailers); - g_assert (fake); g_assert (lastfm); g_assert (metadata_store); - + g_assert (bookmarks); + g_assert (podcasts); g_debug ("Supported operations"); print_supported_ops (GRL_METADATA_SOURCE (youtube)); print_supported_ops (GRL_METADATA_SOURCE (fs)); - print_supported_ops (GRL_METADATA_SOURCE (flickr)); + if (flickr) print_supported_ops (GRL_METADATA_SOURCE (flickr)); print_supported_ops (GRL_METADATA_SOURCE (jamendo)); print_supported_ops (GRL_METADATA_SOURCE (apple_trailers)); print_supported_ops (GRL_METADATA_SOURCE (shoutcast)); - print_supported_ops (fake); + if (fake) print_supported_ops (fake); + print_supported_ops (GRL_METADATA_SOURCE (podcasts)); + print_supported_ops (GRL_METADATA_SOURCE (bookmarks)); print_supported_ops (lastfm); print_supported_ops (metadata_store); |