Commit 9ebce28d authored by Ken Martin's avatar Ken Martin
Browse files

fix failing tests on system with no display

parent 70df7894
# if we have rendering add the following tests
IF (VTK_USE_RENDERING)
IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
SET(KIT Graphics)
# add etsts that do not require data
SET(MyTests)
IF(VTK_USE_DISPLAY)
SET(MyTests
Mace.cxx
expCos.cxx
CellLocator.cxx
PointLocator.cxx
FrustumClip.cxx
RGrid.cxx
)
ENDIF(VTK_USE_DISPLAY)
SET(MyTests
Mace.cxx
expCos.cxx
CellLocator.cxx
PointLocator.cxx
FrustumClip.cxx
RGrid.cxx
)
IF (VTK_DATA_ROOT)
# add tests that require data
SET(MyTests ${MyTests}
......@@ -42,4 +40,4 @@ IF (VTK_USE_RENDERING)
ADD_TEST(${TName} ${CXX_TEST_PATH}/${KIT}CxxTests ${TName})
ENDIF (VTK_DATA_ROOT)
ENDFOREACH (test)
ENDIF (VTK_USE_RENDERING)
ENDIF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
IF (VTK_USE_RENDERING)
IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
#
# Add tests, with the data
......@@ -35,5 +35,5 @@ IF (VTK_USE_RENDERING)
ENDIF (VTK_PYTHON_EXE)
ENDIF (VTK_DATA_ROOT)
ENDIF (VTK_USE_RENDERING)
ENDIF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
IF (VTK_USE_RENDERING)
IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
SET(KIT Imaging)
CREATE_TEST_SOURCELIST(Tests ${KIT}CxxTests.cxx
ImportExport.cxx
......@@ -9,16 +9,16 @@ IF (VTK_USE_RENDERING)
TARGET_LINK_LIBRARIES(${KIT}CxxTests vtkRendering vtkIO)
SET (TestsToRun ${Tests})
REMOVE (TestsToRun ${KIT}CxxTests.cxx)
#
# Add all the executables
FOREACH (test ${TestsToRun})
GET_FILENAME_COMPONENT(TName ${test} NAME_WE)
IF (VTK_DATA_ROOT)
ADD_TEST(${TName} ${CXX_TEST_PATH}/${KIT}CxxTests ${TName}
-D ${VTK_DATA_ROOT}
-V Baseline/${KIT}/${TName}.png)
-D ${VTK_DATA_ROOT}
-V Baseline/${KIT}/${TName}.png)
ENDIF (VTK_DATA_ROOT)
ENDFOREACH (test)
ENDIF (VTK_USE_RENDERING)
ENDIF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
IF (VTK_USE_RENDERING)
IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
#
# Add tests, with the data
......@@ -19,5 +19,5 @@ IF (VTK_USE_RENDERING)
ENDIF (VTK_PYTHON_EXE)
ENDIF (VTK_DATA_ROOT)
ENDIF (VTK_USE_RENDERING)
ENDIF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment