# add tests that do not require data or produce vector output
set(TestFreeTypeTextMapperNoMath_ARGS DATA{../Data/Fonts/DejaVuSans.ttf})
set(TestMathTextFreeTypeTextRendererNoMath_ARGS
  DATA{../Data/Fonts/DejaVuSans.ttf}
)
vtk_add_test_cxx(${vtk-module}CxxTests tests
  TestFTStringToPath.cxx
  TestFreeTypeTextMapperNoMath.cxx
  TestFreeTypeTools.cxx,NO_VALID
  TestMathTextFreeTypeTextRendererNoMath.cxx
  TestTextActor.cxx
  TestTextActor3D.cxx
  TestTextActorAlphaBlending.cxx
  TestTextActorDepthPeeling.cxx
  TestTextActor3DAlphaBlending.cxx
  TestTextActor3DDepthPeeling.cxx
  TestTextActorScaleModeProp.cxx
  TestTextMapper.cxx
  )

# Check for vtkErrorMacro calls in these tests (mainly for empty inputs):
set_tests_properties(
  ${vtk-module}Cxx-TestTextActor
  ${vtk-module}Cxx-TestTextActor3D
  PROPERTIES FAIL_REGULAR_EXPRESSION "ERROR:"
)

if(${Module_vtkRenderingMatplotlib})
  set(TestMathTextFreeTypeTextRenderer_ARGS DATA{../Data/Fonts/DejaVuSans.ttf})
  set(TestFreeTypeTextMapper_ARGS DATA{../Data/Fonts/DejaVuSans.ttf})
  set(TestFontDPIScaling_ARGS DATA{../Data/Fonts/DejaVuSans.ttf})

  vtk_add_test_cxx(${vtk-module}CxxTests matplotlib_tests
    TestMathTextFreeTypeTextRenderer.cxx
    TestFreeTypeTextMapper.cxx
    TestFontDPIScaling.cxx
    )
  list(APPEND tests
    ${matplotlib_tests})
endif()

vtk_test_cxx_executable(${vtk-module}CxxTests tests
  RENDERING_FACTORY)
