From 15fc1bbefb49fefedca53c47ccfc7edace0acbfe Mon Sep 17 00:00:00 2001 From: Brian Ewins Date: Sat, 10 Nov 2007 01:33:47 +0000 Subject: [PATCH] [test] log tested paths so that they can be parsed. The test logs currently do not record the paths of image output, the reference images tested against, and the diffs created. This means that make-html.pl has to duplicate the policy in cairo-test.c. Fix this by teaching cairo-test.c to log the paths. --- test/cairo-test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/cairo-test.c b/test/cairo-test.c index de8ed1bcc..d2e415709 100644 --- a/test/cairo-test.c +++ b/test/cairo-test.c @@ -387,6 +387,7 @@ cairo_test_for_target (cairo_test_t *test, xunlink (png_name); (target->write_to_png) (surface, png_name); + cairo_test_log ("OUTPUT: %s\n", png_name); if (!ref_name) { cairo_test_log ("Error: Cannot find reference image for %s/%s-%s-%s%s\n",srcdir, test->name, @@ -397,7 +398,8 @@ cairo_test_for_target (cairo_test_t *test, goto UNWIND_CAIRO; } - cairo_test_log ("Comparing result against reference image: %s\n", ref_name); + cairo_test_log ("REFERENCE: %s\n", ref_name); + cairo_test_log ("DIFFERENCE: %s\n", diff_name); if (target->content == CAIRO_TEST_CONTENT_COLOR_ALPHA_FLATTENED) { diff_status= image_diff_flattened (png_name, ref_name, diff_name,