mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 12:00:17 +02:00
Add support for question mark and plus mark in regex, supply testing for star Added more characters to the regex alphabets, add more test case Added support for regex matching of configs, awaiting reviews Rename variable to CamelCase Addresses PR reviews Remove unnecessary features and test cases Rewrite to naive regex with dp Addresses PR reviews Build fixes Code Review
30 lines
751 B
CMake
30 lines
751 B
CMake
set(TESTS
|
|
Allocator
|
|
ArgumentParser
|
|
ExtendedVolatileMetadata
|
|
fextl_function
|
|
FileMappingBaseAddress
|
|
Filesystem
|
|
InterruptableConditionVariable
|
|
StringUtils
|
|
WildcardMatcher)
|
|
|
|
list(APPEND LIBS Common FEXCore FEXCore_Base JemallocLibs)
|
|
|
|
foreach(API_TEST ${TESTS})
|
|
add_executable(${API_TEST} ${API_TEST}.cpp)
|
|
target_link_libraries(${API_TEST} PRIVATE ${LIBS} Catch2::Catch2WithMain)
|
|
|
|
catch_discover_tests(${API_TEST}
|
|
TEST_SUFFIX ".${API_TEST}.APITest")
|
|
endforeach()
|
|
|
|
add_custom_target(api_tests
|
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
|
|
USES_TERMINAL
|
|
COMMAND "ctest" "--output-on-failure" "--timeout" "302" ${TEST_JOB_FLAG} "-R" "\.*.APITest")
|
|
|
|
foreach(API_TEST ${TESTS})
|
|
add_dependencies(api_tests ${API_TEST})
|
|
endforeach()
|