[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.
This commit is contained in:
Brian Ewins 2007-11-10 01:33:47 +00:00
parent 28412f780e
commit 15fc1bbefb

View file

@ -387,6 +387,7 @@ cairo_test_for_target (cairo_test_t *test,
xunlink (png_name); xunlink (png_name);
(target->write_to_png) (surface, png_name); (target->write_to_png) (surface, png_name);
cairo_test_log ("OUTPUT: %s\n", png_name);
if (!ref_name) { if (!ref_name) {
cairo_test_log ("Error: Cannot find reference image for %s/%s-%s-%s%s\n",srcdir, cairo_test_log ("Error: Cannot find reference image for %s/%s-%s-%s%s\n",srcdir,
test->name, test->name,
@ -397,7 +398,8 @@ cairo_test_for_target (cairo_test_t *test,
goto UNWIND_CAIRO; 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) { if (target->content == CAIRO_TEST_CONTENT_COLOR_ALPHA_FLATTENED) {
diff_status= image_diff_flattened (png_name, ref_name, diff_name, diff_status= image_diff_flattened (png_name, ref_name, diff_name,