mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
tests: splitmux: skip tests if theora or ogg plugins are not available
https://bugzilla.gnome.org/show_bug.cgi?id=767861
This commit is contained in:
parent
3b886f4dc9
commit
c68b7f944a
1 changed files with 16 additions and 4 deletions
|
@ -287,16 +287,28 @@ splitmux_suite (void)
|
|||
Suite *s = suite_create ("splitmux");
|
||||
TCase *tc_chain = tcase_create ("general");
|
||||
TCase *tc_chain_basic = tcase_create ("basic");
|
||||
gboolean have_theora, have_ogg;
|
||||
|
||||
/* we assume that if encoder/muxer are there, decoder/demuxer will be a well */
|
||||
have_theora = gst_registry_check_feature_version (gst_registry_get (),
|
||||
"theoraenc", GST_VERSION_MAJOR, GST_VERSION_MINOR, 0);
|
||||
have_ogg = gst_registry_check_feature_version (gst_registry_get (),
|
||||
"oggmux", GST_VERSION_MAJOR, GST_VERSION_MINOR, 0);
|
||||
|
||||
suite_add_tcase (s, tc_chain);
|
||||
suite_add_tcase (s, tc_chain_basic);
|
||||
|
||||
tcase_add_test (tc_chain_basic, test_splitmuxsink_reuse_simple);
|
||||
|
||||
if (have_theora && have_ogg) {
|
||||
tcase_add_checked_fixture (tc_chain, tempdir_setup, tempdir_cleanup);
|
||||
|
||||
tcase_add_test (tc_chain, test_splitmuxsrc);
|
||||
tcase_add_test (tc_chain, test_splitmuxsrc_format_location);
|
||||
tcase_add_test (tc_chain, test_splitmuxsink);
|
||||
} else {
|
||||
GST_INFO ("Skipping tests, missing plugins: theora and/or ogg");
|
||||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue