<commit_before>#
# Copyright (c) 2016 <NAME> (<EMAIL>)
#
# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
# or copy at http://opensource.org/licenses/MIT)
#

FIND_PACKAGE(VALGRIND)

# Test dependencies
ADD_SUBDIRECTORY(getopt)
ADD_SUBDIRECTORY(Unity)

# Set locations of test saves.
SET(POKEMON_SAVE_DIR "${PKSAV_SOURCE_DIR}/testing/pksav-test-saves")

SET(POKEMON_RED_SAV     "${POKEMON_SAVE_DIR}/red_blue/pokemon_red.sav")
SET(POKEMON_YELLOW_SAV  "${POKEMON_SAVE_DIR}/yellow/pokemon_yellow.sav")
SET(POKEMON_GOLD_SAV    "${POKEMON_SAVE_DIR}/gold_silver/pokemon_gold.sav")
SET(POKEMON_CRYSTAL_SAV "${POKEMON_SAVE_DIR}/crystal/pokemon_crystal.sav")
SET(POKEMON_RUBY_SAV    "${POKEMON_SAVE_DIR}/ruby_sapphire/pokemon_ruby.sav")
SET(POKEMON_EMERALD_SAV "${POKEMON_SAVE_DIR}/emerald/pokemon_emerald.sav")
SET(POKEMON_FIRERED_SAV "${POKEMON_SAVE_DIR}/firered_leafgreen/pokemon_firered.sav")

# Fix Windows paths
IF(WIN32)
    FILE(TO_CMAKE_PATH "${POKEMON_RED_SAV}" POKEMON_RED_SAV)
    FILE(TO_CMAKE_PATH "${POKEMON_YELLOW_SAV}" POKEMON_YELLOW_SAV)
    FILE(TO_CMAKE_PATH "${POKEMON_GOLD_SAV}" POKEMON_GOLD_SAV)
    FILE(TO_CMAKE_PATH "${POKEMON_CRYSTAL_SAV}" POKEMON_CRYSTAL_SAV)
    FILE(TO_CMAKE_PATH "${POKEMON_RUBY_SAV}" POKEMON_RUBY_SAV)
    FILE(TO_CMAKE_PATH "${POKEMON_EMERALD_SAV}" POKEMON_EMERALD_SAV)
    FILE(TO_CMAKE_PATH "${POKEMON_FIRERED_SAV}" POKEMON_FIRERED_SAV)
ENDIF(WIN32)

# Tests
ADD_SUBDIRECTORY(save-tests)
ADD_SUBDIRECTORY(unit-tests)<commit_msg>cmake: fix Windows save paths<commit_after>#
# Copyright (c) 2016 <NAME> (<EMAIL>)
#
# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
# or copy at http://opensource.org/licenses/MIT)
#

FIND_PACKAGE(VALGRIND)

# Test dependencies
ADD_SUBDIRECTORY(getopt)
ADD_SUBDIRECTORY(Unity)

# Set locations of test saves.
SET(POKEMON_SAVE_DIR "${PKSAV_SOURCE_DIR}/testing/pksav-test-saves")

SET(POKEMON_RED_SAV     "${POKEMON_SAVE_DIR}/red_blue/pokemon_red.sav")
SET(POKEMON_YELLOW_SAV  "${POKEMON_SAVE_DIR}/yellow/pokemon_yellow.sav")
SET(POKEMON_GOLD_SAV    "${POKEMON_SAVE_DIR}/gold_silver/pokemon_gold.sav")
SET(POKEMON_CRYSTAL_SAV "${POKEMON_SAVE_DIR}/crystal/pokemon_crystal.sav")
SET(POKEMON_RUBY_SAV    "${POKEMON_SAVE_DIR}/ruby_sapphire/pokemon_ruby.sav")
SET(POKEMON_EMERALD_SAV "${POKEMON_SAVE_DIR}/emerald/pokemon_emerald.sav")
SET(POKEMON_FIRERED_SAV "${POKEMON_SAVE_DIR}/firered_leafgreen/pokemon_firered.sav")

# Fix Windows paths
IF(WIN32)
    FILE(TO_NATIVE_PATH "${POKEMON_RED_SAV}" POKEMON_RED_SAV)
    FILE(TO_NATIVE_PATH "${POKEMON_YELLOW_SAV}" POKEMON_YELLOW_SAV)
    FILE(TO_NATIVE_PATH "${POKEMON_GOLD_SAV}" POKEMON_GOLD_SAV)
    FILE(TO_NATIVE_PATH "${POKEMON_CRYSTAL_SAV}" POKEMON_CRYSTAL_SAV)
    FILE(TO_NATIVE_PATH "${POKEMON_RUBY_SAV}" POKEMON_RUBY_SAV)
    FILE(TO_NATIVE_PATH "${POKEMON_EMERALD_SAV}" POKEMON_EMERALD_SAV)
    FILE(TO_NATIVE_PATH "${POKEMON_FIRERED_SAV}" POKEMON_FIRERED_SAV)
ENDIF(WIN32)

# Tests
ADD_SUBDIRECTORY(save-tests)
ADD_SUBDIRECTORY(unit-tests)
{'fraction_non_alphanumeric': 0.11891354753229547, 'fraction_numerical': 0.005299768135144088, 'mean_word_length': 8.179331306990882, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6237699', 'n_tokens_mistral': 1407, 'n_tokens_neox': 1407, 'n_words': 153}