mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
tests/check/: use the new macro
Original commit message from CVS: * tests/check/elements/fakesink.c: * tests/check/elements/fakesrc.c: * tests/check/elements/fdsrc.c: * tests/check/elements/identity.c: * tests/check/generic/sinks.c: (gst_sinks_suite): * tests/check/generic/states.c: * tests/check/gst/gst.c: * tests/check/gst/gstabi.c: * tests/check/gst/gstbin.c: * tests/check/gst/gstbuffer.c: (gst_buffer_suite): * tests/check/gst/gstbus.c: (gst_bus_suite): * tests/check/gst/gstcaps.c: (GST_START_TEST): * tests/check/gst/gstelement.c: * tests/check/gst/gstevent.c: (gst_event_suite): * tests/check/gst/gstghostpad.c: * tests/check/gst/gstiterator.c: (gst_iterator_suite): * tests/check/gst/gstmessage.c: (gst_message_suite): * tests/check/gst/gstminiobject.c: * tests/check/gst/gstobject.c: * tests/check/gst/gstpad.c: * tests/check/gst/gstpipeline.c: * tests/check/gst/gstplugin.c: * tests/check/gst/gstquery.c: (gst_query_suite): * tests/check/gst/gstsegment.c: (gst_segment_suite): * tests/check/gst/gststructure.c: * tests/check/gst/gstsystemclock.c: * tests/check/gst/gsttag.c: * tests/check/gst/gsttask.c: (gst_task_suite): * tests/check/gst/gstutils.c: * tests/check/gst/gstvalue.c: * tests/check/libs/adapter.c: * tests/check/libs/basesrc.c: * tests/check/libs/collectpads.c: * tests/check/libs/controller.c: * tests/check/libs/gdp.c: (gst_dp_suite): * tests/check/libs/gstnetclientclock.c: * tests/check/libs/gstnettimeprovider.c: * tests/check/libs/libsabi.c: (libsabi_suite): * tests/check/libs/typefindhelper.c: * tests/check/pipelines/cleanup.c: * tests/check/pipelines/parse-launch.c: * tests/check/pipelines/simple-launch-lines.c: * tests/check/pipelines/stress.c: (stress_suite): use the new macro
This commit is contained in:
parent
374b55af56
commit
64086e2970
44 changed files with 120 additions and 716 deletions
47
ChangeLog
47
ChangeLog
|
@ -1,3 +1,50 @@
|
|||
2006-07-01 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* tests/check/elements/fakesink.c:
|
||||
* tests/check/elements/fakesrc.c:
|
||||
* tests/check/elements/fdsrc.c:
|
||||
* tests/check/elements/identity.c:
|
||||
* tests/check/generic/sinks.c: (gst_sinks_suite):
|
||||
* tests/check/generic/states.c:
|
||||
* tests/check/gst/gst.c:
|
||||
* tests/check/gst/gstabi.c:
|
||||
* tests/check/gst/gstbin.c:
|
||||
* tests/check/gst/gstbuffer.c: (gst_buffer_suite):
|
||||
* tests/check/gst/gstbus.c: (gst_bus_suite):
|
||||
* tests/check/gst/gstcaps.c: (GST_START_TEST):
|
||||
* tests/check/gst/gstelement.c:
|
||||
* tests/check/gst/gstevent.c: (gst_event_suite):
|
||||
* tests/check/gst/gstghostpad.c:
|
||||
* tests/check/gst/gstiterator.c: (gst_iterator_suite):
|
||||
* tests/check/gst/gstmessage.c: (gst_message_suite):
|
||||
* tests/check/gst/gstminiobject.c:
|
||||
* tests/check/gst/gstobject.c:
|
||||
* tests/check/gst/gstpad.c:
|
||||
* tests/check/gst/gstpipeline.c:
|
||||
* tests/check/gst/gstplugin.c:
|
||||
* tests/check/gst/gstquery.c: (gst_query_suite):
|
||||
* tests/check/gst/gstsegment.c: (gst_segment_suite):
|
||||
* tests/check/gst/gststructure.c:
|
||||
* tests/check/gst/gstsystemclock.c:
|
||||
* tests/check/gst/gsttag.c:
|
||||
* tests/check/gst/gsttask.c: (gst_task_suite):
|
||||
* tests/check/gst/gstutils.c:
|
||||
* tests/check/gst/gstvalue.c:
|
||||
* tests/check/libs/adapter.c:
|
||||
* tests/check/libs/basesrc.c:
|
||||
* tests/check/libs/collectpads.c:
|
||||
* tests/check/libs/controller.c:
|
||||
* tests/check/libs/gdp.c: (gst_dp_suite):
|
||||
* tests/check/libs/gstnetclientclock.c:
|
||||
* tests/check/libs/gstnettimeprovider.c:
|
||||
* tests/check/libs/libsabi.c: (libsabi_suite):
|
||||
* tests/check/libs/typefindhelper.c:
|
||||
* tests/check/pipelines/cleanup.c:
|
||||
* tests/check/pipelines/parse-launch.c:
|
||||
* tests/check/pipelines/simple-launch-lines.c:
|
||||
* tests/check/pipelines/stress.c: (stress_suite):
|
||||
use the new macro
|
||||
|
||||
2006-07-01 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* libs/gst/check/gstcheck.c: (gst_check_run_suite):
|
||||
|
|
|
@ -305,19 +305,4 @@ fakesink_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = fakesink_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 (fakesink);
|
||||
|
|
|
@ -255,19 +255,4 @@ fakesrc_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = fakesrc_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 (fakesrc);
|
||||
|
|
|
@ -193,19 +193,4 @@ fdsrc_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = fdsrc_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 (fdsrc);
|
||||
|
|
|
@ -120,19 +120,4 @@ identity_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = identity_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 (identity);
|
||||
|
|
|
@ -452,7 +452,7 @@ GST_END_TEST;
|
|||
|
||||
/* test: try changing state of sinks */
|
||||
Suite *
|
||||
gst_object_suite (void)
|
||||
gst_sinks_suite (void)
|
||||
{
|
||||
Suite *s = suite_create ("Sinks");
|
||||
TCase *tc_chain = tcase_create ("general");
|
||||
|
@ -469,19 +469,4 @@ gst_object_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_object_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 (gst_sinks);
|
||||
|
|
|
@ -76,19 +76,4 @@ states_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = states_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 (states);
|
||||
|
|
|
@ -93,19 +93,4 @@ gst_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_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 (gst);
|
||||
|
|
|
@ -61,19 +61,4 @@ gstabi_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gstabi_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 (gstabi);
|
||||
|
|
|
@ -808,19 +808,4 @@ gst_bin_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_bin_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 (gst_bin);
|
||||
|
|
|
@ -318,7 +318,7 @@ GST_START_TEST (test_metadata_writable)
|
|||
GST_END_TEST;
|
||||
|
||||
Suite *
|
||||
gst_test_suite (void)
|
||||
gst_buffer_suite (void)
|
||||
{
|
||||
Suite *s = suite_create ("GstBuffer");
|
||||
TCase *tc_chain = tcase_create ("general");
|
||||
|
@ -334,19 +334,4 @@ gst_test_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_test_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 (gst_buffer);
|
||||
|
|
|
@ -230,8 +230,11 @@ GST_START_TEST (test_watch_with_poll)
|
|||
|
||||
gst_object_unref (test_bus);
|
||||
}
|
||||
GST_END_TEST Suite *
|
||||
gstbus_suite (void)
|
||||
|
||||
GST_END_TEST;
|
||||
|
||||
Suite *
|
||||
gst_bus_suite (void)
|
||||
{
|
||||
Suite *s = suite_create ("GstBus");
|
||||
TCase *tc_chain = tcase_create ("stresstest");
|
||||
|
@ -245,19 +248,4 @@ gstbus_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gstbus_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 (gst_bus);
|
||||
|
|
|
@ -41,6 +41,7 @@ GST_START_TEST (test_from_string)
|
|||
caps2 = gst_caps_from_string (caps_list[i]);
|
||||
fail_if (caps2 == NULL, "Could not create caps from string %s\n", to_str);
|
||||
|
||||
fail_unless (gst_caps_is_equal (caps, caps));
|
||||
fail_unless (gst_caps_is_equal (caps, caps2));
|
||||
|
||||
gst_caps_unref (caps);
|
||||
|
@ -348,19 +349,4 @@ gst_caps_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_caps_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 (gst_caps);
|
||||
|
|
|
@ -217,19 +217,4 @@ gst_element_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_element_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 (gst_element);
|
||||
|
|
|
@ -419,7 +419,7 @@ GST_START_TEST (send_custom_events)
|
|||
GST_END_TEST;
|
||||
|
||||
Suite *
|
||||
gstevents_suite (void)
|
||||
gst_event_suite (void)
|
||||
{
|
||||
Suite *s = suite_create ("GstEvent");
|
||||
TCase *tc_chain = tcase_create ("customevents");
|
||||
|
@ -432,19 +432,4 @@ gstevents_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gstevents_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 (gst_event);
|
||||
|
|
|
@ -498,19 +498,4 @@ gst_ghost_pad_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_ghost_pad_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 (gst_ghost_pad);
|
||||
|
|
|
@ -168,7 +168,7 @@ GST_START_TEST (test_fold)
|
|||
GST_END_TEST;
|
||||
|
||||
Suite *
|
||||
gstiterator_suite (void)
|
||||
gst_iterator_suite (void)
|
||||
{
|
||||
Suite *s = suite_create ("GstIterator");
|
||||
TCase *tc_chain = tcase_create ("correctness");
|
||||
|
@ -182,19 +182,4 @@ gstiterator_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gstiterator_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 (gst_iterator);
|
||||
|
|
|
@ -190,8 +190,10 @@ GST_START_TEST (test_parsing)
|
|||
|
||||
}
|
||||
|
||||
GST_END_TEST Suite *
|
||||
gst_data_suite (void)
|
||||
GST_END_TEST;
|
||||
|
||||
Suite *
|
||||
gst_message_suite (void)
|
||||
{
|
||||
Suite *s = suite_create ("GstMessage");
|
||||
TCase *tc_chain = tcase_create ("general");
|
||||
|
@ -202,19 +204,4 @@ gst_data_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_data_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 (gst_message);
|
||||
|
|
|
@ -289,19 +289,4 @@ gst_mini_object_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_mini_object_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 (gst_mini_object);
|
||||
|
|
|
@ -457,19 +457,4 @@ GST_END_TEST
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_object_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 (gst_object);
|
||||
|
|
|
@ -464,19 +464,4 @@ gst_pad_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_pad_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 (gst_pad);
|
||||
|
|
|
@ -506,20 +506,4 @@ gst_pipeline_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_pipeline_suite ();
|
||||
SRunner *sr = srunner_create (s);
|
||||
|
||||
gst_check_init (&argc, &argv);
|
||||
|
||||
srunner_set_log (sr, "test.log");
|
||||
srunner_run_all (sr, CK_NORMAL);
|
||||
nf = srunner_ntests_failed (sr);
|
||||
srunner_free (sr);
|
||||
|
||||
return nf;
|
||||
}
|
||||
GST_CHECK_MAIN (gst_pipeline);
|
||||
|
|
|
@ -313,19 +313,4 @@ gst_plugin_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_plugin_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 (gst_plugin);
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
/* GStreamer
|
||||
* Copyright (C) 2005 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
*
|
||||
* gstevent.c: Unit test for event handling
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
|
@ -219,7 +216,7 @@ GST_START_TEST (test_queries)
|
|||
GST_END_TEST;
|
||||
|
||||
Suite *
|
||||
gstquery_suite (void)
|
||||
gst_query_suite (void)
|
||||
{
|
||||
Suite *s = suite_create ("GstQuery");
|
||||
TCase *tc_chain = tcase_create ("queries");
|
||||
|
@ -232,19 +229,4 @@ gstquery_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gstquery_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 (gst_query);
|
||||
|
|
|
@ -1272,7 +1272,7 @@ GST_START_TEST (segment_newsegment_runningtime)
|
|||
GST_END_TEST;
|
||||
|
||||
Suite *
|
||||
gstsegments_suite (void)
|
||||
gst_segment_suite (void)
|
||||
{
|
||||
Suite *s = suite_create ("GstSegment");
|
||||
TCase *tc_chain = tcase_create ("segments");
|
||||
|
@ -1293,19 +1293,4 @@ gstsegments_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gstsegments_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 (gst_segment);
|
||||
|
|
|
@ -157,19 +157,4 @@ gst_structure_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_structure_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 (gst_structure);
|
||||
|
|
|
@ -203,7 +203,8 @@ GST_START_TEST (test_diff)
|
|||
fail_if (d[i] != GST_CLOCK_DIFF (time1[i], time2[i]));
|
||||
}
|
||||
}
|
||||
GST_END_TEST Suite * gst_systemclock_suite (void)
|
||||
GST_END_TEST Suite *
|
||||
gst_systemclock_suite (void)
|
||||
{
|
||||
Suite *s = suite_create ("GstSystemClock");
|
||||
TCase *tc_chain = tcase_create ("waiting");
|
||||
|
@ -217,19 +218,4 @@ GST_END_TEST Suite * gst_systemclock_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_systemclock_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 (gst_systemclock);
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
/*
|
||||
* Copyright (C) 2003 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||
*
|
||||
* parse1.c: Test various parsing stuff
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
|
@ -214,7 +212,10 @@ GST_START_TEST (test_date_tags)
|
|||
gst_tag_list_free (tag_list);
|
||||
g_date_free (date);
|
||||
}
|
||||
GST_END_TEST Suite *
|
||||
|
||||
GST_END_TEST;
|
||||
|
||||
Suite *
|
||||
gst_tag_suite (void)
|
||||
{
|
||||
Suite *s = suite_create ("GstTag");
|
||||
|
@ -227,19 +228,4 @@ gst_tag_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_tag_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 (gst_tag);
|
||||
|
|
|
@ -185,7 +185,7 @@ GST_END_TEST;
|
|||
|
||||
|
||||
Suite *
|
||||
gst_element_suite (void)
|
||||
gst_task_suite (void)
|
||||
{
|
||||
Suite *s = suite_create ("GstTask");
|
||||
TCase *tc_chain = tcase_create ("task tests");
|
||||
|
@ -200,19 +200,4 @@ gst_element_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_element_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 (gst_task);
|
||||
|
|
|
@ -469,19 +469,4 @@ gst_utils_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_utils_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 (gst_utils);
|
||||
|
|
|
@ -1511,19 +1511,4 @@ gst_value_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_value_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 (gst_value);
|
||||
|
|
|
@ -188,19 +188,4 @@ gst_adapter_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_adapter_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 (gst_adapter);
|
||||
|
|
|
@ -343,19 +343,4 @@ gst_basesrc_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_basesrc_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 (gst_basesrc);
|
||||
|
|
|
@ -345,19 +345,4 @@ gst_collect_pads_suite ()
|
|||
return suite;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *suite = gst_collect_pads_suite ();
|
||||
SRunner *runner = srunner_create (suite);
|
||||
|
||||
gst_check_init (&argc, &argv);
|
||||
|
||||
srunner_run_all (runner, CK_NORMAL);
|
||||
nf = srunner_ntests_failed (runner);
|
||||
srunner_free (runner);
|
||||
|
||||
return nf;
|
||||
}
|
||||
GST_CHECK_MAIN (gst_collect_pads);
|
||||
|
|
|
@ -786,20 +786,4 @@ gst_controller_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_controller_suite ();
|
||||
SRunner *sr = srunner_create (s);
|
||||
|
||||
gst_check_init (&argc, &argv);
|
||||
gst_controller_init (NULL, NULL);
|
||||
|
||||
srunner_run_all (sr, CK_NORMAL);
|
||||
nf = srunner_ntests_failed (sr);
|
||||
srunner_free (sr);
|
||||
|
||||
return nf;
|
||||
}
|
||||
GST_CHECK_MAIN (gst_controller);
|
||||
|
|
|
@ -279,7 +279,7 @@ GST_START_TEST (test_event)
|
|||
GST_END_TEST;
|
||||
|
||||
Suite *
|
||||
gst_data_protocol_suite (void)
|
||||
gst_dp_suite (void)
|
||||
{
|
||||
Suite *s = suite_create ("data protocol");
|
||||
TCase *tc_chain = tcase_create ("general");
|
||||
|
@ -293,20 +293,4 @@ gst_data_protocol_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_data_protocol_suite ();
|
||||
SRunner *sr = srunner_create (s);
|
||||
|
||||
gst_check_init (&argc, &argv);
|
||||
gst_dp_init ();
|
||||
|
||||
srunner_run_all (sr, CK_NORMAL);
|
||||
nf = srunner_ntests_failed (sr);
|
||||
srunner_free (sr);
|
||||
|
||||
return nf;
|
||||
}
|
||||
GST_CHECK_MAIN (gst_dp);
|
||||
|
|
|
@ -125,19 +125,4 @@ gst_net_client_clock_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_net_client_clock_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 (gst_net_client_clock);
|
||||
|
|
|
@ -122,19 +122,4 @@ gst_net_time_provider_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_net_time_provider_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 (gst_net_time_provider);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* GStreamer
|
||||
* Copyright (C) 2005 Wim Taymans <wim@fluendo.com>
|
||||
*
|
||||
* gstabi.c: Unit test for ABI compatibility
|
||||
* libsabi.c: Unit test for ABI compatibility
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
|
@ -62,7 +62,7 @@ GST_START_TEST (test_ABI)
|
|||
GST_END_TEST;
|
||||
|
||||
Suite *
|
||||
gstabi_suite (void)
|
||||
libsabi_suite (void)
|
||||
{
|
||||
Suite *s = suite_create ("LibsABI");
|
||||
TCase *tc_chain = tcase_create ("size check");
|
||||
|
@ -74,19 +74,4 @@ gstabi_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gstabi_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 (libsabi);
|
||||
|
|
|
@ -77,22 +77,7 @@ gst_typefindhelper_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = gst_typefindhelper_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 (gst_typefindhelper);
|
||||
|
||||
static void
|
||||
foobar_typefind (GstTypeFind * tf, gpointer unused)
|
||||
|
|
|
@ -114,19 +114,4 @@ cleanup_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = cleanup_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 (cleanup);
|
||||
|
|
|
@ -270,19 +270,4 @@ parse_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = parse_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 (parse);
|
||||
|
|
|
@ -221,19 +221,4 @@ simple_launch_lines_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = simple_launch_lines_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 (simple_launch_lines);
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
/* GStreamer
|
||||
* Copyright (C) 2005 Andy Wingo <wingo@pobox.com>
|
||||
*
|
||||
* simple_launch_lines.c: Unit test for simple pipelines
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
|
@ -56,8 +54,10 @@ GST_START_TEST (test_stress)
|
|||
gst_object_unref (pipeline);
|
||||
}
|
||||
|
||||
GST_END_TEST Suite *
|
||||
simple_launch_lines_suite (void)
|
||||
GST_END_TEST;
|
||||
|
||||
Suite *
|
||||
stress_suite (void)
|
||||
{
|
||||
Suite *s = suite_create ("stress");
|
||||
TCase *tc_chain = tcase_create ("linear");
|
||||
|
@ -70,19 +70,4 @@ simple_launch_lines_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = simple_launch_lines_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 (stress);
|
||||
|
|
Loading…
Reference in a new issue