<div dir="ltr">Found the issue - these tests run just fine when the Python executable is 3.x. <div>When Python 2.x is used they fail because the Python script HeaderTesting.py fails to strip newlines/carriage returns from the class names parsed from the headers.</div><div>Simple fix is to alter the script to strip out control characters.</div><div><br></div><div>Issue raised: <a href="https://gitlab.kitware.com/vtk/vtk/issues/16922">https://gitlab.kitware.com/vtk/vtk/issues/16922</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 25 November 2016 at 16:54, Kevin Dixon <span dir="ltr"><<a href="mailto:kevinrdixon@gmail.com" target="_blank">kevinrdixon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I've been able to successfully build VTK 7.0.0 from source with BUILD_TESTING set to ON. However, unmodified a number of the HeaderTests fail:<div><br></div><div>







<p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1"><span class="m_-5405923323118413245gmail-Apple-tab-span">        </span>  1 - vtkCommonCore-HeaderTest (Failed)</span></p>
<p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1"><span class="m_-5405923323118413245gmail-Apple-tab-span">        </span>  8 - vtkCommonExecutionModel-<wbr>HeaderTest (Failed)</span></p>
<p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1"><span class="m_-5405923323118413245gmail-Apple-tab-span">        </span>  9 - vtkFiltersCore-HeaderTest (Failed)</span></p>
<p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1"><span class="m_-5405923323118413245gmail-Apple-tab-span">        </span> 11 - vtkFiltersGeneral-HeaderTest (Failed)</span></p>
<p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1"><span class="m_-5405923323118413245gmail-Apple-tab-span">        </span> 17 - vtkFiltersGeometry-HeaderTest (Failed)</span></p>
<p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1"><span class="m_-5405923323118413245gmail-Apple-tab-span">        </span> 19 - vtkRenderingCore-HeaderTest (Failed)</span></p>
<p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1"><span class="m_-5405923323118413245gmail-Apple-tab-span">        </span> 31 - vtkRenderingOpenGL2-HeaderTest (Failed)</span></p>
<p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1"><span class="m_-5405923323118413245gmail-Apple-tab-span">        </span> 38 - vtkInteractionStyle-HeaderTest (Failed)</span></p>
<p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1"><span class="m_-5405923323118413245gmail-Apple-tab-span">        </span> 40 - vtkRenderingAnnotation-<wbr>HeaderTest (Failed)</span></p>
<p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1"><span class="m_-5405923323118413245gmail-Apple-tab-span">        </span> 42 - vtkInteractionWidgets-<wbr>HeaderTest (Failed)</span></p>
<p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1"><span class="m_-5405923323118413245gmail-Apple-tab-span">        </span>270 - vtkRenderingVolumeOpenGL2-<wbr>HeaderTest (Failed)</span></p>
<p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1"><span class="m_-5405923323118413245gmail-Apple-tab-span">        </span>312 - vtkFiltersFlowPaths-HeaderTest (Failed)</span></p>
<p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1"><span class="m_-5405923323118413245gmail-Apple-tab-span">        </span>489 - vtkIOExodus-HeaderTest (Failed)</span></p><p class="m_-5405923323118413245gmail-p1"><br></p><p class="m_-5405923323118413245gmail-p1">Example of one of the test output in detail:</p><p class="m_-5405923323118413245gmail-p1"><br></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">Start 1: vtkCommonCore-HeaderTest</span></p><p class="m_-5405923323118413245gmail-p2">1: Test command: /usr/bin/python "/Users/kevin/dev/prj/lms/<wbr>soup/vtk-7.0.0/Testing/Core/<wbr>HeaderTesting.py" "/Users/kevin/dev/prj/lms/<wbr>soup/vtk-7.0.0/Common/Core" "VTKCOMMONCORE_EXPORT"<br><span class="m_-5405923323118413245gmail-s1"></span></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">1: Test timeout computed to be: 1500</span></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">1: Use export macro: VTKCOMMONCORE_EXPORT</span></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">1: File: /Users/kevin/dev/prj/lms/soup/<wbr>vtk-7.0.0/Common/Core/<wbr>vtkMinimalStandardRandomSequen<wbr>ce.h has broken type macro(s):</span></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">1:    41: vtkTypeMacro(<wbr>vtkMinimalStandardRandomSequen<wbr>ce,vtkRandomSequence);</span></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">1: Should be:</span></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">, vtkRandomSequence)<wbr>MinimalStandardRandomSequence</span></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">1: File: /Users/kevin/dev/prj/lms/soup/<wbr>vtk-7.0.0/Common/Core/<wbr>vtkMinimalStandardRandomSequen<wbr>ce.h does not define copy constructor</span></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">1: Should be:</span></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">&); // Not implementedardRandomSequence</span></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">1: File: /Users/kevin/dev/prj/lms/soup/<wbr>vtk-7.0.0/Common/Core/<wbr>vtkMinimalStandardRandomSequen<wbr>ce.h does not define assignment operator</span></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">1: Should be:</span></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">&); // Not implementedt vtkMinimalStandardRandomSequen<wbr>ce</span></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">1: </span></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">1: There were errors:</span></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">1: * Broken type macro</span></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">1: * No private copy constructor</span></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">1: * No private assignment operator</span></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">



























</span></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">1/1 Test #1: vtkCommonCore-HeaderTest .........***Failed    0.64 sec</span></p><p class="m_-5405923323118413245gmail-p1"><br></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">From what I can see, these are code stylistic checks via the 'HeaderTesting.py' script.</span></p><p class="m_-5405923323118413245gmail-p1"><span class="m_-5405923323118413245gmail-s1">Any idea why these are failing out-of-the-box without modification?</span></p></div></div>
</blockquote></div><br></div>