checks: skip id3mux unit tests that need id3demux if id3demux is not available

This commit is contained in:
Tim-Philipp Müller 2010-08-08 12:46:01 +01:00
parent caa8f156b6
commit 49ce307cb7

View file

@ -546,25 +546,16 @@ id3mux_suite (void)
TCase *tc_chain = tcase_create ("general");
suite_add_tcase (s, tc_chain);
tcase_add_test (tc_chain, test_id3mux_v2_3);
tcase_add_test (tc_chain, test_id3mux_v2_4);
if (gst_default_registry_check_feature_version ("id3demux",
GST_VERSION_MAJOR, GST_VERSION_MINOR, 0)) {
tcase_add_test (tc_chain, test_id3mux_v2_3);
tcase_add_test (tc_chain, test_id3mux_v2_4);
} else {
GST_WARNING ("id3demux element not available, skipping tests");
}
return s;
}
int
main (int argc, char **argv)
{
int nf;
Suite *s = id3mux_suite ();
SRunner *sr = srunner_create (s);
gst_check_init (&argc, &argv);
srunner_run_all (sr, CK_NORMAL);
nf = srunner_ntests_failed (sr);
srunner_free (sr);
return nf;
}
GST_CHECK_MAIN (id3mux);