<commit_before># These tests are part of the girder_ansible label
file(GLOB examples "${PROJECT_SOURCE_DIR}/devops/ansible/examples/girder-*")

foreach (EXAMPLE_DIR ${examples})
  get_filename_component(EXAMPLE_NAME ${EXAMPLE_DIR} NAME)

  add_test(NAME "ansible_example_${EXAMPLE_NAME}_vagrant_up"
    WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
    COMMAND ${VAGRANT_EXECUTABLE} up)
  set_tests_properties("ansible_example_${EXAMPLE_NAME}_vagrant_up"
    PROPERTIES
    ENVIRONMENT "GIRDER_EXAMPLE=${EXAMPLE_NAME}"
    RUN_SERIAL ON
    LABELS girder_ansible)

  add_test(NAME "ansible_example_${EXAMPLE_NAME}_vagrant_destroy"
    WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
    COMMAND ${VAGRANT_EXECUTABLE} destroy -f)
  set_tests_properties("ansible_example_${EXAMPLE_NAME}_vagrant_destroy"<commit_msg>Test the provisioning, not vagrant up<commit_after># These tests are part of the girder_ansible label
file(GLOB examples "${PROJECT_SOURCE_DIR}/devops/ansible/examples/girder-*")

foreach (EXAMPLE_DIR ${examples})
  get_filename_component(EXAMPLE_NAME ${EXAMPLE_DIR} NAME)

  add_test(NAME "ansible_example_${EXAMPLE_NAME}_vagrant_up"
    WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
    COMMAND ${VAGRANT_EXECUTABLE} up --no-provision)
  set_tests_properties("ansible_example_${EXAMPLE_NAME}_vagrant_up"
    PROPERTIES
    ENVIRONMENT "GIRDER_EXAMPLE=${EXAMPLE_NAME}"
    RUN_SERIAL ON
    LABELS girder_ansible)

  add_test(NAME "ansible_example_${EXAMPLE_NAME}_vagrant_provision"
    WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
    COMMAND ${VAGRANT_EXECUTABLE} provision)
  set_tests_properties("ansible_example_${EXAMPLE_NAME}_vagrant_provision"
    PROPERTIES
    ENVIRONMENT "GIRDER_EXAMPLE=${EXAMPLE_NAME}"
    RUN_SERIAL ON
    DEPENDS "ansible_example_${EXAMPLE_NAME}_vagrant_up"
    LABELS girder_ansible)

  add_test(NAME "ansible_example_${EXAMPLE_NAME}_vagrant_destroy"
    WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
    COMMAND ${VAGRANT_EXECUTABLE} destroy -f)
  set_tests_properties("ansible_example_${EXAMPLE_NAME}_vagrant_destroy"
{'fraction_non_alphanumeric': 0.09335288367546432, 'fraction_numerical': 0.0, 'mean_word_length': 7.389344262295082, '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': '2462956', 'n_tokens_mistral': 787, 'n_tokens_neox': 729, 'n_words': 106}