[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 4.2.2 release
From: |
Andreas Weber |
Subject: |
Re: 4.2.2 release |
Date: |
Fri, 16 Feb 2018 08:17:43 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
Am 15.02.2018 um 19:32 schrieb Dmitri A. Sergatskov:
> make check fails on __osmesa_print__.cc-tst with size mismatch
> (I guess it was changed on dev version and not on stable?)
>
>
> ***** testif HAVE_OPENGL, HAVE_OSMESA, HAVE_GL2PS_H
> if (isunix ())
> hf = figure ("visible", "off");
> fn = tempname ();
> unwind_protect
> sombrero ();
> __osmesa_print__ (hf, fn, "svg");
> assert (stat (fn).size, 2579392, -0.1);
> img = __osmesa_print__ (hf);
> assert (size (img), [get(hf, "position")([4, 3]), 3]);
> ## Use pixel sum per RGB channel as fingerprint
> img_fp = squeeze (sum (sum (img), 2));
> assert (img_fp, [52942515; 54167797; 56158178], -0.05);
> unwind_protect_cleanup
> close (hf);
> unlink (fn);
> end_unwind_protect
> endif
> !!!!! test failed
> ASSERT errors for: assert (stat (fn).size,2579392,-0.1)
>
> Location | Observed | Expected | Reason
> () 3330663 2579392 Rel err 0.29126 exceeds tol 0.1
>
> This is on Fedora 27, gl2ps 1.4.0.
Can you confirm, that you see a correct sombrero plot when running
hf = figure ("visible", "off");
sombrero ();
__osmesa_print__ (hf, "foo.svg", "svg");
Can you upload the resulting foo.svg and add a link?
Do you have a good idea how to check if the generated image is as
expected and which is more robust?
Thank you in advance, Andy