mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
21 lines
484 B
CMake
21 lines
484 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
|
|
add_test(
|
|
NAME script-functions
|
|
COMMAND magicseteditor ${test_dir}/script/script-functions.mse-script
|
|
)
|
|
|
|
# Rendering tests
|
|
# TODO
|