<commit_before># This needs the following variables to be set.
#   PV_NIGHTLY_PARAVIEW
#   PV_NIGHTLY_PVPYTHON
#   PV_NIGHTLY_PVSERVER
#   PV_NIGHTLY_PVBATCH
#   PV_NIGHTLY_PVBLOT
#   PV_NIGHTLY_PVDATASERVER
#   PV_NIGHTLY_PVRENDERSERVER

find_path(PARAVIEW_DATA_ROOT ParaViewData.readme
  ${ParaView_SOURCE_DIR}/../ParaViewData
  ${ParaView_BINARY_DIR}/../ParaViewData
  $ENV{PARAVIEW_DATA_ROOT})

#------------------------------------------------------------------------------
# Simple test to launch the application and load all plugins.
add_test(NAME TestUI
         COMMAND "${PV_NIGHTLY_PARAVIEW}"
                 "-dr"
                 "--disable-light-kit"
                 "--test-directory=${SuperBuild_BINARY_DIR}/Testing/Temporary"
                 "--test-script=${CMAKE_CURRENT_SOURCE_DIR}/TestUI.xml"
                 "--exit")
set_tests_properties(TestUI PROPERTIES LABELS "PARAVIEW")

#------------------------------------------------------------------------------
# Simple test to test paraviewweb.
add_test(NAME Test-pvweb
         COMMAND "${PV_NIGHTLY_PVPYTHON}"
                 "${CMAKE_CURRENT_SOURCE_DIR}/basic_paraviewweb.py")
set_tests_properties(Test-pvweb PROPERTIES LABELS "PARAVIEW")

#------------------------------------------------------------------------------
# Simple test to test pvpython/pvbatch.
add_test(NAME Test-pvpython
         COMMAND "${PV_NIGHTLY_PVPYTHON}"
                 "${CMAKE_CURRENT_SOURCE_DIR}/basic_python.py")
set_tests_properties(Test-pvpython PROPERTIES LABELS "PARAVIEW")

add_test(NAME Test-pvbatch
         COMMAND "${PV_NIGHTLY_PVBATCH}"
                 "${CMAKE_CURRENT_SOURCE_DIR}/basic_python.py")
set_tests_properties(Test-pvbatch PROPERTIES LABELS "PARAVIEW")

if (PARAVIEW_DATA_ROOT)
  # Test to load various data files to ensure reader support.
  #----------------------------------------------------------------------------
  add_test(NAME TestData-csg.silo
           COMMAND "${PV_NIGHTLY_PARAVIEW}"
                   "-dr"
                   "--disable-light-kit"
                   "--data=${PARAVIEW_DATA_ROOT}/Data/VisItBridge/csg.silo"
                   "--test-directory=${SuperBuild_BINARY_DIR}/Testing/Temporary"
                   "--test-script=${CMAKE_CURRENT_SOURCE_DIR}/TestData-cs_silo.xml"
                   "--exit")
  set_tests_properties(TestData-csg.silo PROPERTIES LABELS "PARAVIEW")

  #----------------------------------------------------------------------------
  add_test(NAME TestData-5blocks.cgns
           COMMAND "${PV_NIGHTLY_PARAVIEW}"
                   "-dr"
                   "--disable-light-kit"
                   "--data=${PARAVIEW_DATA_ROOT}/Data/VisItBridge/5blocks.cgns"
                   "--test-directory=${SuperBuild_BINARY_DIR}/Testing/Temporary"
                   "--test-script=${CMAKE_CURRENT_SOURCE_DIR}/TestData-5blocks_cgns.xml"
                   "--exit")
  set_tests_properties(TestData-5blocks.cgns PROPERTIES LABELS "PARAVIEW")

  #----------------------------------------------------------------------------
  add_test(NAME TestData-Scenario1_p1.xmf
           COMMAND "${PV_NIGHTLY_PARAVIEW}"
                   "-dr"
                   "--disable-light-kit"
                   "--data=${PARAVIEW_DATA_ROOT}/Data/Scenario1_p1.xmf"
                   "--test-directory=${SuperBuild_BINARY_DIR}/Testing/Temporary"
                   "--test-script=${CMAKE_CURRENT_SOURCE_DIR}/TestData.xml"
                   "--exit")
  set_tests_properties(TestData-Scenario1_p1.xmf PROPERTIES LABELS "PARAVIEW")

  #----------------------------------------------------------------------------
  add_test(NAME TestMatplotlib
           COMMAND "${PV_NIGHTLY_PARAVIEW}"
                   "-dr"
                   "--disable-light-kit"
                   "--test-directory=${SuperBuild_BINARY_DIR}/Testing/Temporary"
                   "--test-script=${CMAKE_CURRENT_SOURCE_DIR}/TestMatplotlib.xml"
                   "--test-baseline=${PARAVIEW_DATA_ROOT}/Baseline/Superbuild-TestMatplotlib.png"
                   "--exit")
  set_tests_properties(TestMatplotlib PROPERTIES LABELS "PARAVIEW")

  #----------------------------------------------------------------------------
  add_test(NAME TestFindData
           COMMAND "${PV_NIGHTLY_PARAVIEW}"
                   "-dr"
                   "--disable-light-kit"
                   "--test-directory=${SuperBuild_BINARY_DIR}/Testing/Temporary"
                   "--test-script=${CMAKE_CURRENT_SOURCE_DIR}/TestFindData.xml"
                   "--test-baseline=${PARAVIEW_DATA_ROOT}/Baseline/Superbuild-TestFindData.png"
                   "--exit")
  set_tests_properties(TestFindData PROPERTIES LABELS "PARAVIEW")

endif()
<commit_msg>package: add a "test" which builds a package<commit_after># This needs the following variables to be set.
#   PV_NIGHTLY_PARAVIEW
#   PV_NIGHTLY_PVPYTHON
#   PV_NIGHTLY_PVSERVER
#   PV_NIGHTLY_PVBATCH
#   PV_NIGHTLY_PVBLOT
#   PV_NIGHTLY_PVDATASERVER
#   PV_NIGHTLY_PVRENDERSERVER

find_path(PARAVIEW_DATA_ROOT ParaViewData.readme
  ${ParaView_SOURCE_DIR}/../ParaViewData
  ${ParaView_BINARY_DIR}/../ParaViewData
  $ENV{PARAVIEW_DATA_ROOT})

#------------------------------------------------------------------------------
# Simple test to launch the application and load all plugins.
add_test(NAME TestUI
         COMMAND "${PV_NIGHTLY_PARAVIEW}"
                 "-dr"
                 "--disable-light-kit"
                 "--test-directory=${SuperBuild_BINARY_DIR}/Testing/Temporary"
                 "--test-script=${CMAKE_CURRENT_SOURCE_DIR}/TestUI.xml"
                 "--exit")
set_tests_properties(TestUI PROPERTIES LABELS "PARAVIEW")

#------------------------------------------------------------------------------
# Simple test to test paraviewweb.
add_test(NAME Test-pvweb
         COMMAND "${PV_NIGHTLY_PVPYTHON}"
                 "${CMAKE_CURRENT_SOURCE_DIR}/basic_paraviewweb.py")
set_tests_properties(Test-pvweb PROPERTIES LABELS "PARAVIEW")

#------------------------------------------------------------------------------
# Simple test to test pvpython/pvbatch.
add_test(NAME Test-pvpython
         COMMAND "${PV_NIGHTLY_PVPYTHON}"
                 "${CMAKE_CURRENT_SOURCE_DIR}/basic_python.py")
set_tests_properties(Test-pvpython PROPERTIES LABELS "PARAVIEW")

add_test(NAME Test-pvbatch
         COMMAND "${PV_NIGHTLY_PVBATCH}"
                 "${CMAKE_CURRENT_SOURCE_DIR}/basic_python.py")
set_tests_properties(Test-pvbatch PROPERTIES LABELS "PARAVIEW")

if (RGG_BUILD_PACKAGE)
  add_test(NAME package
           COMMAND "${CMAKE_COMMAND}"
                   "--build" "${CMAKE_BINARY_DIR}"
                   "--target" "package"
                   "--config" "$<CONFIGURATION>")
endif ()

if (PARAVIEW_DATA_ROOT)
  # Test to load various data files to ensure reader support.
  #----------------------------------------------------------------------------
  add_test(NAME TestData-csg.silo
           COMMAND "${PV_NIGHTLY_PARAVIEW}"
                   "-dr"
                   "--disable-light-kit"
                   "--data=${PARAVIEW_DATA_ROOT}/Data/VisItBridge/csg.silo"
                   "--test-directory=${SuperBuild_BINARY_DIR}/Testing/Temporary"
                   "--test-script=${CMAKE_CURRENT_SOURCE_DIR}/TestData-cs_silo.xml"
                   "--exit")
  set_tests_properties(TestData-csg.silo PROPERTIES LABELS "PARAVIEW")

  #----------------------------------------------------------------------------
  add_test(NAME TestData-5blocks.cgns
           COMMAND "${PV_NIGHTLY_PARAVIEW}"
                   "-dr"
                   "--disable-light-kit"
                   "--data=${PARAVIEW_DATA_ROOT}/Data/VisItBridge/5blocks.cgns"
                   "--test-directory=${SuperBuild_BINARY_DIR}/Testing/Temporary"
                   "--test-script=${CMAKE_CURRENT_SOURCE_DIR}/TestData-5blocks_cgns.xml"
                   "--exit")
  set_tests_properties(TestData-5blocks.cgns PROPERTIES LABELS "PARAVIEW")

  #----------------------------------------------------------------------------
  add_test(NAME TestData-Scenario1_p1.xmf
           COMMAND "${PV_NIGHTLY_PARAVIEW}"
                   "-dr"
                   "--disable-light-kit"
                   "--data=${PARAVIEW_DATA_ROOT}/Data/Scenario1_p1.xmf"
                   "--test-directory=${SuperBuild_BINARY_DIR}/Testing/Temporary"
                   "--test-script=${CMAKE_CURRENT_SOURCE_DIR}/TestData.xml"
                   "--exit")
  set_tests_properties(TestData-Scenario1_p1.xmf PROPERTIES LABELS "PARAVIEW")

  #----------------------------------------------------------------------------
  add_test(NAME TestMatplotlib
           COMMAND "${PV_NIGHTLY_PARAVIEW}"
                   "-dr"
                   "--disable-light-kit"
                   "--test-directory=${SuperBuild_BINARY_DIR}/Testing/Temporary"
                   "--test-script=${CMAKE_CURRENT_SOURCE_DIR}/TestMatplotlib.xml"
                   "--test-baseline=${PARAVIEW_DATA_ROOT}/Baseline/Superbuild-TestMatplotlib.png"
                   "--exit")
  set_tests_properties(TestMatplotlib PROPERTIES LABELS "PARAVIEW")

  #----------------------------------------------------------------------------
  add_test(NAME TestFindData
           COMMAND "${PV_NIGHTLY_PARAVIEW}"
                   "-dr"
                   "--disable-light-kit"
                   "--test-directory=${SuperBuild_BINARY_DIR}/Testing/Temporary"
                   "--test-script=${CMAKE_CURRENT_SOURCE_DIR}/TestFindData.xml"
                   "--test-baseline=${PARAVIEW_DATA_ROOT}/Baseline/Superbuild-TestFindData.png"
                   "--exit")
  set_tests_properties(TestFindData PROPERTIES LABELS "PARAVIEW")

endif()

{'fraction_non_alphanumeric': 0.22644235731241613, 'fraction_numerical': 0.0020641965115078954, 'mean_word_length': 1.5764424355224673, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, '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': '2202345', 'n_tokens_mistral': 2845, 'n_tokens_neox': 2664, 'n_words': 348}