mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
check: Add test suite time elapsed output
This commit is contained in:
parent
922e048379
commit
77502acabc
1 changed files with 5 additions and 0 deletions
|
@ -1044,6 +1044,7 @@ gst_check_run_suite (Suite * suite, const gchar * name, const gchar * fname)
|
||||||
SRunner *sr;
|
SRunner *sr;
|
||||||
gchar *xmlfilename = NULL;
|
gchar *xmlfilename = NULL;
|
||||||
gint nf;
|
gint nf;
|
||||||
|
GTimer *timer;
|
||||||
|
|
||||||
sr = srunner_create (suite);
|
sr = srunner_create (suite);
|
||||||
|
|
||||||
|
@ -1054,8 +1055,12 @@ gst_check_run_suite (Suite * suite, const gchar * name, const gchar * fname)
|
||||||
srunner_set_xml (sr, xmlfilename);
|
srunner_set_xml (sr, xmlfilename);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
timer = g_timer_new ();
|
||||||
srunner_run_all (sr, CK_NORMAL);
|
srunner_run_all (sr, CK_NORMAL);
|
||||||
nf = srunner_ntests_failed (sr);
|
nf = srunner_ntests_failed (sr);
|
||||||
|
g_print ("Check suite %s ran in %.3fs (tests failed: %d)\n",
|
||||||
|
name, g_timer_elapsed (timer, NULL), nf);
|
||||||
|
g_timer_destroy (timer);
|
||||||
g_free (xmlfilename);
|
g_free (xmlfilename);
|
||||||
srunner_free (sr);
|
srunner_free (sr);
|
||||||
return nf;
|
return nf;
|
||||||
|
|
Loading…
Reference in a new issue