[librsvg] Print dependency versions in rsvg-test.log
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Print dependency versions in rsvg-test.log
- Date: Sat, 1 Feb 2020 10:50:09 +0000 (UTC)
commit e04f4d7ecf7495461ea4a2e08b28f227f3e34957
Author: Federico Mena Quintero <federico gnome org>
Date: Sat Feb 1 04:48:37 2020 -0600
Print dependency versions in rsvg-test.log
tests/rsvg-test.c | 2 ++
tests/test-utils.c | 10 ++++++++++
tests/test-utils.h | 2 ++
3 files changed, 14 insertions(+)
---
diff --git a/tests/rsvg-test.c b/tests/rsvg-test.c
index 24be4795..ddda19cc 100644
--- a/tests/rsvg-test.c
+++ b/tests/rsvg-test.c
@@ -323,6 +323,8 @@ main (int argc, char **argv)
g_test_init (&argc, &argv, NULL);
+ test_utils_print_dependency_versions ();
+
test_utils_setup_font_map ();
if (argc < 2) {
diff --git a/tests/test-utils.c b/tests/test-utils.c
index a5dc7313..53b03969 100644
--- a/tests/test-utils.c
+++ b/tests/test-utils.c
@@ -357,3 +357,13 @@ test_utils_setup_font_map (void)
g_object_unref (font_map);
#endif
}
+
+void
+test_utils_print_dependency_versions (void)
+{
+ g_test_message ("Cairo version: %s", cairo_version_string ());
+ g_test_message ("Pango version: %s", pango_version_string ());
+ g_test_message ("Freetype version: %d.%d.%d", FREETYPE_MAJOR, FREETYPE_MINOR, FREETYPE_PATCH);
+ g_test_message ("Harfbuzz version: %s", hb_version_string ());
+}
+
diff --git a/tests/test-utils.h b/tests/test-utils.h
index c974210a..394f78c1 100644
--- a/tests/test-utils.h
+++ b/tests/test-utils.h
@@ -32,6 +32,8 @@ void test_utils_add_test_for_all_files (const gchar *prefix,
GTestDataFunc test_func,
AddTestFunc add_test_func);
+void test_utils_print_dependency_versions (void);
+
void test_utils_setup_font_map (void);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]