[vtk-developers] Testing utilities

Shepherd, Jason F jfsheph at sandia.gov
Thu Oct 30 19:30:54 EDT 2008


Hey guys,

I've noticed that there are (seemingly) two ways of getting to the VTKData directory from a test file:

vtkTestUtilities::ExpandDataFileName(...)
and
vtkTesting::GetDataRoot()

The first one looks for a command line argument, then for a VTK_DATA_ROOT environment variable, and failing those uses "../../../../VTKData".
The second option looks for a command line argument, then for a VTK_DATA_ROOT environment variable, then a CMAKE variable (VTK_DATA_ROOT, again), and failing those applies "../../../../VTKData".

Is there a reason for not checking for the CMAKE variable in ExpandDataFileName() ?

Jason Shepherd


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20081030/e63d398e/attachment.html>


More information about the vtk-developers mailing list