<commit_before># --------------------------------------------------------------------------------------------------------------------
# Copyright (C) Microsoft Corporation.  All rights reserved.
# --------------------------------------------------------------------------------------------------------------------

set( SAMPLE_MISSIONS
  classroom/basic.xml
  classroom/obstacles.xml
  classroom/simpleMaze.xml
  classroom/vertical.xml
  classroom/medium.xml
  classroom/hard.xml
  classroom/complexity_usage.xml
  classroom/specification_usage.xml
  cliff_walking_1.xml
  default_mission.xml
)

# add tests to validate each sample file
if( INCLUDE_PYTHON ) # (TODO: validate in C++ instead)
    foreach( file ${SAMPLE_MISSIONS} )

      get_filename_component( test_name "${file}" NAME_WE )
      set( test_name "ValidationTests_${test_name}" )
      
      add_test(NAME ${test_name}<commit_msg>XML file missing from validation: Python_examples/tutorial_6.xml.<commit_after># --------------------------------------------------------------------------------------------------------------------
# Copyright (C) Microsoft Corporation.  All rights reserved.
# --------------------------------------------------------------------------------------------------------------------

set( SAMPLE_MISSIONS
  classroom/basic.xml
  classroom/obstacles.xml
  classroom/simpleMaze.xml
  classroom/vertical.xml
  classroom/medium.xml
  classroom/hard.xml
  classroom/complexity_usage.xml
  classroom/specification_usage.xml
  cliff_walking_1.xml
  default_mission.xml
)

set( XML_MISSION_FILES
  ${SAMPLE_MISSIONS}
  ../Malmo/samples/Python_examples/tutorial_6.xml
)

# add tests to validate each mission file
if( INCLUDE_PYTHON ) # (TODO: validate in C++ instead)
    foreach( file ${XML_MISSION_FILES} )

      get_filename_component( test_name "${file}" NAME_WE )
      set( test_name "ValidationTests_${test_name}" )
      
      add_test(NAME ${test_name}
{'fraction_non_alphanumeric': 0.3103802672147996, 'fraction_numerical': 0.0020554984583761563, 'mean_word_length': 1.6029411764705883, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 22}, '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': '338091', 'n_tokens_mistral': 505, 'n_tokens_neox': 500, 'n_words': 100}