Files
MagicSetEditor2/test/tests.cmake
T
Twan van Laarhoven 60c392a068 Moved locale validation to a compile time test, instead of a runtime check performed by MSE itself.
This also removes perl as a build dependency for people who don't want to run the test suite.
2020-04-18 19:08:35 +02:00

18 lines
380 B
CMake

# Use CTest for tests
enable_testing()
set(test_dir "${PROJECT_SOURCE_DIR}/test")
set(CTEST_OUTPUT_ON_FAILURE 1)
# Validate locales
file(GLOB locales data/*.mse-locale)
add_test(
NAME "validate-locales"
COMMAND perl "${test_dir}/locale/validate_locale.pl" "${PROJECT_SOURCE_DIR}/src" ${locales}
)
# Scripting language tests
# TODO
# Rendering tests
# TODO