[Paraview] CTest and offscreen rendering

Maxim Torgonskiy kriolog at gmail.com
Fri Jul 14 11:09:31 EDT 2017


Thanks Utkarsh,

Ok, I'll just modify PARAVIEW_PVBATCH_ARGS in my test CMakeLists:

if(VTK_OPENGL_HAS_OSMESA AND PARAVIEW_BUILD_QT_GUI AND VTK_USE_X)
set(PARAVIEW_PVBATCH_ARGS --use-offscreen-rendering) endif()


2017-07-14 10:25 GMT-04:00 Utkarsh Ayachit <utkarsh.ayachit at kitware.com>:

> Alas, there's no option to do that currently. It should be doable, but
> would need some tweaking of the Cmake code. If you're interested, a good
> starting point would be CMake/ParaViewTestingMacros.cmake.
>
>
> On Fri, Jul 14, 2017 at 8:01 AM, Maxim Torgonskiy <kriolog at gmail.com>
> wrote:
>
>> Hello,
>>
>> I am trying to run my paraview python regression tests with ctest on a
>> platform without X server. I've compiled paraview with osmesa and with
>> opengl (VTK_USE_X is ON; sounds strange but there is a reason for that :)
>> ). When I run 'pvbatch --use-offscreen-rendering' my test passes.
>> However, ctest gives me the same error (bad X server connection. DISPLAY=)
>> which I have if I run pvbatch without use-offscreen-rendering. Is it
>> possible to forward this argument to the ctest command?
>>
>> Regards,
>> Maxim
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170714/aaacaa58/attachment.html>


More information about the ParaView mailing list