[librsvg/wip/otte: 23/39] rsvg-test: Don't output HTML
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/wip/otte: 23/39] rsvg-test: Don't output HTML
- Date: Tue, 20 Oct 2015 12:35:41 +0000 (UTC)
commit 87cfda11828be0a3636d785cc4b396ff3794e5f3
Author: Benjamin Otte <otte redhat com>
Date: Thu Oct 15 02:12:46 2015 +0200
rsvg-test: Don't output HTML
This is the first step towards porting to gtester.
tests/Makefile.am | 3 +--
tests/rsvg-test.c | 33 ---------------------------------
2 files changed, 1 insertions(+), 35 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 33e24a7..72f6237 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -25,8 +25,7 @@ EXTRA_PROGRAMS = $(TESTS)
CLEANFILES = $(TESTS)
-DISTCLEANFILES = rsvg-test.html \
- rsvg-test.log
+DISTCLEANFILES = rsvg-test.log
libtest_utils_la_SOURCES = \
test-utils.c \
diff --git a/tests/rsvg-test.c b/tests/rsvg-test.c
index 3515aee..3d3b82c 100644
--- a/tests/rsvg-test.c
+++ b/tests/rsvg-test.c
@@ -54,7 +54,6 @@ typedef enum {
static const char *fail_face = "", *normal_face = "";
FILE *rsvg_test_log_file = NULL;
-FILE *rsvg_test_html_file = NULL;
static void
rsvg_test_log (const char *fmt, ...)
@@ -67,21 +66,9 @@ rsvg_test_log (const char *fmt, ...)
va_end (va);
}
-static void
-rsvg_test_html (const char *fmt, ...)
-{
- va_list va;
- FILE *file = rsvg_test_html_file ? rsvg_test_html_file : stdout;
-
- va_start (va, fmt);
- vfprintf (file, fmt, va);
- va_end (va);
-}
-
#define TEST_WIDTH 480
#define TEST_LIST_FILENAME TEST_DATA_DIR"/rsvg-test.txt"
#define TEST_LOG_FILENAME "rsvg-test.log"
-#define HTML_FILENAME "rsvg-test.html"
typedef struct _buffer_diff_result {
unsigned int pixels_changed;
@@ -301,14 +288,6 @@ rsvg_cairo_check (char const *test_name, gboolean xfail)
g_object_unref (rsvg);
- if (status == RSVG_TEST_FAILURE) {
- rsvg_test_html ("<tr>");
- rsvg_test_html ("<td><img src=\"%s\"/></td>", png_filename);
- rsvg_test_html ("<td><img src=\"%s\"/></td>", reference_png_filename);
- rsvg_test_html ("<td><img src=\"%s\"/></td>", difference_png_filename);
- rsvg_test_html ("</tr>\n");
- }
-
g_free (png_filename);
g_free (svg_filename);
g_free (reference_png_filename);
@@ -342,13 +321,7 @@ main (int argc, char **argv)
#endif
rsvg_test_log_file = fopen (TEST_LOG_FILENAME, "w");
- rsvg_test_html_file = fopen (HTML_FILENAME, "w");
- rsvg_test_html ("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\""
- "\"http://www.w3.org/TR/html4/loose.dtd\"/>\n");
- rsvg_test_html ("<html>\n");
- rsvg_test_html ("<table>\n");
-
if (g_file_get_contents (TEST_LIST_FILENAME, &list_content, &length, NULL)) {
rsvg_set_default_dpi_x_y (72, 72);
@@ -383,12 +356,6 @@ main (int argc, char **argv)
} else
fprintf (stderr, "Error opening test list file "TEST_LIST_FILENAME"\n");
- rsvg_test_html ("</table>\n");
- rsvg_test_html ("</html>\n");
-
- if (rsvg_test_html_file != NULL)
- fclose (rsvg_test_html_file);
-
if (rsvg_test_log_file != NULL)
fclose (rsvg_test_log_file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]