mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-23 17:50:10 +01:00
[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:
parent
28412f780e
commit
15fc1bbefb
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue