<commit_before>IF (VTK_USE_RENDERING)

  #
  # Add tests, with the data
  #
  IF (VTK_DATA_ROOT)
    FOREACH ( tfile
      assembly
      CamBlur
      cells 
      ImageActor
      labeledContours
      labeledMesh
      multiLineText
      pickCells
      propAssembly
      rendererSource
      rotations
      ScalarBar
      TestFlyTo
      TestFreetypeTextMapper
      TestLODProp3D
      TestOnePoint
      TestParallelCoordinates
      TestStyleJoystickActor
      TestStyleJoystickCamera
      TestStyleTerrain
      TestStyleTrackballActor
      TestStyleTrackballCamera
      TestTiling
      volRCClipPlanes
      volRCCropRegions
      volRCRotateClip
      volTM2DCropRegions
      volTM2DRotateClip
    )
      ADD_TEST(${tfile}-image ${VTK_EXECUTABLE}
        ${VTK_SOURCE_DIR}/Common/Testing/Tcl/rtImageTest.tcl 
        ${VTK_SOURCE_DIR}/Rendering/Testing/Tcl/${tfile}.tcl
        -D ${VTK_DATA_ROOT}
        -V Baseline/Rendering/${tfile}.png
        -A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
    ENDFOREACH( tfile )
  #
  # If we do not have the data, still run the tests that we can
  #
  ELSE (VTK_DATA_ROOT)
  ENDIF (VTK_DATA_ROOT)

ENDIF (VTK_USE_RENDERING)

ADD_TEST(PrintSelf-Rendering ${TCL_TCLSH}
         ${VTK_SOURCE_DIR}/Common/Testing/Tcl/PrintSelfCheck.tcl  
         ${VTK_SOURCE_DIR}/Rendering)

ADD_TEST(TestSetObjectMacro-Rendering ${TCL_TCLSH}
         ${VTK_SOURCE_DIR}/Common/Testing/Tcl/FindString.tcl
         "${VTK_SOURCE_DIR}/Rendering/vtk\\\\*.h"
         "vtkSetObjectMacro"
         )<commit_msg>FIX: execute freetype test only if feature is ON<commit_after>IF (VTK_USE_RENDERING)

  #
  # Add tests, with the data
  #
  IF (VTK_DATA_ROOT)
    FOREACH ( tfile
      assembly
      CamBlur
      cells 
      ImageActor
      labeledContours
      labeledMesh
      multiLineText
      pickCells
      propAssembly
      rendererSource
      rotations
      ScalarBar
      TestFlyTo
      TestLODProp3D
      TestOnePoint
      TestParallelCoordinates
      TestStyleJoystickActor
      TestStyleJoystickCamera
      TestStyleTerrain
      TestStyleTrackballActor
      TestStyleTrackballCamera
      TestTiling
      volRCClipPlanes
      volRCCropRegions
      volRCRotateClip
      volTM2DCropRegions
      volTM2DRotateClip
    )
      ADD_TEST(${tfile}-image ${VTK_EXECUTABLE}
        ${VTK_SOURCE_DIR}/Common/Testing/Tcl/rtImageTest.tcl 
        ${VTK_SOURCE_DIR}/Rendering/Testing/Tcl/${tfile}.tcl
        -D ${VTK_DATA_ROOT}
        -V Baseline/Rendering/${tfile}.png
        -A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
    ENDFOREACH( tfile )

    IF (VTK_USE_FREETYPE)
      FOREACH ( tfile
        TestFreetypeTextMapper
      )
        ADD_TEST(${tfile}-image ${VTK_EXECUTABLE}
          ${VTK_SOURCE_DIR}/Common/Testing/Tcl/rtImageTest.tcl 
          ${VTK_SOURCE_DIR}/Rendering/Testing/Tcl/${tfile}.tcl
          -D ${VTK_DATA_ROOT}
          -V Baseline/Rendering/${tfile}.png
          -A ${VTK_SOURCE_DIR}/Wrapping/Tcl)
      ENDFOREACH( tfile )
    ENDIF (VTK_USE_FREETYPE)
  #
  # If we do not have the data, still run the tests that we can
  #
  ELSE (VTK_DATA_ROOT)
  ENDIF (VTK_DATA_ROOT)

ENDIF (VTK_USE_RENDERING)

ADD_TEST(PrintSelf-Rendering ${TCL_TCLSH}
         ${VTK_SOURCE_DIR}/Common/Testing/Tcl/PrintSelfCheck.tcl  
         ${VTK_SOURCE_DIR}/Rendering)

ADD_TEST(TestSetObjectMacro-Rendering ${TCL_TCLSH}
         ${VTK_SOURCE_DIR}/Common/Testing/Tcl/FindString.tcl
         "${VTK_SOURCE_DIR}/Rendering/vtk\\\\*.h"
         "vtkSetObjectMacro"
         )
{'fraction_non_alphanumeric': 0.08181818181818182, 'fraction_numerical': 0.0017045454545454545, 'mean_word_length': 2.5034825870646764, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4902405', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1237, 'n_words': 186}