tests: use our own macros for the tests main function

This commit is contained in:
Stefan Kost 2010-06-18 16:37:14 +03:00
parent a08c2ec760
commit aef6123172
8 changed files with 8 additions and 128 deletions

View file

@ -871,19 +871,4 @@ adder_suite (void)
return s;
}
int
main (int argc, char **argv)
{
int nf;
Suite *s = adder_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 (adder);

View file

@ -333,19 +333,4 @@ appsink_suite (void)
return s;
}
int
main (int argc, char **argv)
{
int nf;
Suite *s = appsink_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 (appsink);

View file

@ -125,19 +125,4 @@ audiotestsrc_suite (void)
return s;
}
int
main (int argc, char **argv)
{
int nf;
Suite *s = audiotestsrc_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 (audiotestsrc);

View file

@ -410,19 +410,4 @@ gdpdepay_suite (void)
return s;
}
int
main (int argc, char **argv)
{
int nf;
Suite *s = gdpdepay_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 (gdpdepay);

View file

@ -563,19 +563,4 @@ gdppay_suite (void)
return s;
}
int
main (int argc, char **argv)
{
int nf;
Suite *s = gdppay_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 (gdppay);

View file

@ -864,19 +864,4 @@ multifdsink_suite (void)
return s;
}
int
main (int argc, char **argv)
{
int nf;
Suite *s = multifdsink_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 (multifdsink);

View file

@ -429,19 +429,4 @@ videotestsrc_suite (void)
return s;
}
int
main (int argc, char **argv)
{
int nf;
Suite *s = videotestsrc_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 (videotestsrc);

View file

@ -336,19 +336,4 @@ vorbisdec_suite (void)
return s;
}
int
main (int argc, char **argv)
{
int nf;
Suite *s = vorbisdec_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 (vorbisdec);