summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2010-12-14 00:56:53 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-12-14 00:57:47 +0000
commitd9e45b92673a0092cc3d2e2f8aedfe7ee65fb73d (patch)
treef31bce10ce196331eb0494914755db2db5467ffa /tests
parent65e13046d13067dbb0ff7a74c1f8e312c705d5fc (diff)
tests: give test suites different names
So the output tells us which test is actually running. Also use GST_CHECK_MAIN() while we're at it.
Diffstat (limited to 'tests')
-rw-r--r--tests/check/gnl/complex.c19
-rw-r--r--tests/check/gnl/gnlcomposition.c2
-rw-r--r--tests/check/gnl/gnloperation.c19
-rw-r--r--tests/check/gnl/gnlsource.c19
-rw-r--r--tests/check/gnl/simple.c19
5 files changed, 9 insertions, 69 deletions
diff --git a/tests/check/gnl/complex.c b/tests/check/gnl/complex.c
index eb90d6f..fe838f3 100644
--- a/tests/check/gnl/complex.c
+++ b/tests/check/gnl/complex.c
@@ -1171,7 +1171,7 @@ GST_END_TEST;
Suite *
gnonlin_suite (void)
{
- Suite *s = suite_create ("gnonlin");
+ Suite *s = suite_create ("gnonlin-complex");
TCase *tc_chain = tcase_create ("complex");
suite_add_tcase (s, tc_chain);
@@ -1185,19 +1185,4 @@ gnonlin_suite (void)
return s;
}
-int
-main (int argc, char **argv)
-{
- int nf;
-
- Suite *s = gnonlin_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 (gnonlin)
diff --git a/tests/check/gnl/gnlcomposition.c b/tests/check/gnl/gnlcomposition.c
index 4ff16f6..9ecb52a 100644
--- a/tests/check/gnl/gnlcomposition.c
+++ b/tests/check/gnl/gnlcomposition.c
@@ -409,7 +409,7 @@ GST_END_TEST;
static Suite *
gnonlin_suite (void)
{
- Suite *s = suite_create ("gnonlin");
+ Suite *s = suite_create ("gnlcomposition");
TCase *tc_chain = tcase_create ("gnlcomposition");
suite_add_tcase (s, tc_chain);
diff --git a/tests/check/gnl/gnloperation.c b/tests/check/gnl/gnloperation.c
index f7b892a..52039e5 100644
--- a/tests/check/gnl/gnloperation.c
+++ b/tests/check/gnl/gnloperation.c
@@ -1322,7 +1322,7 @@ GST_END_TEST;
Suite *
gnonlin_suite (void)
{
- Suite *s = suite_create ("gnonlin");
+ Suite *s = suite_create ("gnloperation");
TCase *tc_chain = tcase_create ("gnloperation");
guint major, minor, micro, nano;
@@ -1338,19 +1338,4 @@ gnonlin_suite (void)
return s;
}
-int
-main (int argc, char **argv)
-{
- int nf;
-
- Suite *s = gnonlin_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 (gnonlin)
diff --git a/tests/check/gnl/gnlsource.c b/tests/check/gnl/gnlsource.c
index 858f228..9eba45c 100644
--- a/tests/check/gnl/gnlsource.c
+++ b/tests/check/gnl/gnlsource.c
@@ -214,7 +214,7 @@ GST_END_TEST;
Suite *
gnonlin_suite (void)
{
- Suite *s = suite_create ("gnonlin");
+ Suite *s = suite_create ("gnlsource");
TCase *tc_chain = tcase_create ("gnlsource");
guint major, minor, micro, nano;
@@ -227,19 +227,4 @@ gnonlin_suite (void)
return s;
}
-int
-main (int argc, char **argv)
-{
- int nf;
-
- Suite *s = gnonlin_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 (gnonlin)
diff --git a/tests/check/gnl/simple.c b/tests/check/gnl/simple.c
index a52f226..2afaee6 100644
--- a/tests/check/gnl/simple.c
+++ b/tests/check/gnl/simple.c
@@ -695,7 +695,7 @@ GST_END_TEST;
Suite *
gnonlin_suite (void)
{
- Suite *s = suite_create ("gnonlin");
+ Suite *s = suite_create ("gnonlin-simple");
TCase *tc_chain = tcase_create ("general");
suite_add_tcase (s, tc_chain);
@@ -711,19 +711,4 @@ gnonlin_suite (void)
return s;
}
-int
-main (int argc, char **argv)
-{
- int nf;
-
- Suite *s = gnonlin_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 (gnonlin)