diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-05-10 09:59:04 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-05-10 09:59:04 (GMT) |
commit | 3d2d61a4e08fe565f5e2fb0e519e1c767a127297 (patch) | |
tree | a0a0d27b17f919cbfad3978ad4e2f6a77624ec59 /test | |
parent | 0202a8780179c710b2596e25567d4cf480dca277 (diff) | |
download | uscxml-3d2d61a4e08fe565f5e2fb0e519e1c767a127297.zip uscxml-3d2d61a4e08fe565f5e2fb0e519e1c767a127297.tar.gz uscxml-3d2d61a4e08fe565f5e2fb0e519e1c767a127297.tar.bz2 |
Split tests for ecma and xpath
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 51bce49..4f803e7 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -73,22 +73,23 @@ set_target_properties(scxml-test-framework-client PROPERTIES FOLDER "Tests") # add_test(test-curl-multi-api ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test-completion) # set_target_properties(test-curl-multi-api PROPERTIES FOLDER "Tests") -if (RUN_W3C_TESTS) - add_executable(test-w3c src/test-w3c.cpp ${PROJECT_SOURCE_DIR}/contrib/src/getopt/XGetopt.cpp) target_link_libraries(test-w3c uscxml) set_target_properties(test-w3c PROPERTIES FOLDER "Tests") - file(GLOB_RECURSE W3C_TESTS - samples/w3c/*.scxml - ) - - foreach( W3C_TEST ${W3C_TESTS} ) - string(REGEX MATCH "[^//]+/[^//]+.scxml" TEST_NAME ${W3C_TEST}) - #message("TEST_NAME: ${TEST_NAME}") - if (NOT TEST_NAME MATCHES ".*sub.*") +file(GLOB_RECURSE W3C_TESTS + samples/w3c/*.scxml +) + +foreach( W3C_TEST ${W3C_TESTS} ) + string(REGEX MATCH "[^//]+/[^//]+.scxml" TEST_NAME ${W3C_TEST}) + #message("TEST_NAME: ${TEST_NAME}") + if (NOT TEST_NAME MATCHES ".*sub.*") + if (RUN_W3C_ECMA_TESTS AND TEST_NAME MATCHES "^ecma\\/.*") + add_test(${TEST_NAME} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test-w3c ${W3C_TEST}) + endif() + if (RUN_W3C_XPATH_TESTS AND TEST_NAME MATCHES "^xpath\\/.*") add_test(${TEST_NAME} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test-w3c ${W3C_TEST}) endif() - endforeach() - -endif()
\ No newline at end of file + endif() +endforeach() |