Hi,

this is very interesting, but it does not fully solve the problem of not
being able to have some custom HTML sent to CDash directly.

I perused through the code to try and find a solution, and I think I have
an idea.
>From what I understand, the 'DartMeasurement' tokens are replaced with some
logic into <tr> and such.

If this were to happen in an XSLT file, that could be specified to CTest,
then not only would the current behavior for vanilla CTest/CDash remain the
same, it would be easier to maintain and make evolve as it would not
require recompilation.
On top of that, any custom behavior like ours is very easy to support, just
specify a customn XSLT sheet, and have CTest use this one instead of the
default.

Using an XSLT2  character-map would allow for the current behavior of
replacing characters like '>', '<' and other HTML-breaking things quite
easily.

Now the big difficulty in this would be to integrate XSLT2 capabilities
into CMake.
As far as I understand, CMake tries very hard to be as cross-platform as
possible in a single package, which means no hard dependencies, and any
third-party lib gets integrated into the CMake source tree (such as
cmbzip2, cmcurl, etc).

I only know of libxslt, and have no idea if it can be integrated in this
way, or how much work that would be.
Maybe there are better, lighter alternatives out there, but I am not
knowledgable in xslt libraries.

Do you think this coule be viable ?


Le mer. 9 mars 2016 à 14:36, Brad King <brad.k...@kitware.com> a écrit :

> On 03/09/2016 04:13 AM, Charles Huet wrote:
> > We used to use this, by creating a composite image containing the
> reference,
> > generated and diff, but in some cases comparing accurately was tedious.
> > Having the 3 images separately allows us to open each in a tab and
> quickly
> > switch from one to the other, making human comparison much easier.
> >
> > Also, we have added some HTML buttons and tables, which we would lose by
> using this.
>
> This work seems more suited for development on the CDash side to influence
> how it displays the images.
>
> For VTK testing we have an interactive slider to help compare the images:
>
>  https://open.cdash.org/testDetails.php?test=422454265&build=4246600
>
> -Brad
>
>
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to