|
|
@ -27,10 +27,10 @@ add_executable(ushell script_exe/main.cpp) |
|
|
|
target_link_libraries(ushell PUBLIC UserScript) |
|
|
|
include_directories(include) |
|
|
|
|
|
|
|
add_executable(tests tests/lexer_test.cpp tests/parser_test.cpp) |
|
|
|
target_link_libraries(tests PUBLIC UserScript Catch2::Catch2WithMain) |
|
|
|
add_executable(userscript_tests tests/lexer_test.cpp tests/parser_test.cpp) |
|
|
|
target_link_libraries(userscript_tests PUBLIC UserScript Catch2::Catch2WithMain) |
|
|
|
|
|
|
|
catch_discover_tests(tests) |
|
|
|
catch_discover_tests(userscript_tests) |
|
|
|
|
|
|
|
function(add_script_test [testname filename resultname]) |
|
|
|
message("Added test: ${ARGV0}") |
|
|
|