Commit 9ae004a0 authored by Bednárek David RNDr. Ph.D.'s avatar Bednárek David RNDr. Ph.D.
Browse files

prefixed test names

parent 4fdf1b76
function(MAKE_TEST ANUM NAME)
set(TEST_NAME_RUN "A${ANUM}T${NAME}R")
set(TEST_NAME_JUDGE "A${ANUM}T${NAME}J")
set(TEST_EXE "cecko${ANUM}")
set(TEST_NAME_RUN "${SOL_PREFIX}A${ANUM}T${NAME}R")
set(TEST_NAME_JUDGE "${SOL_PREFIX}A${ANUM}T${NAME}J")
set(TEST_EXE "${SOL_PREFIX}cecko${ANUM}")
set(TEST_MESSAGE "cecko${ANUM}")
set(TEST_INPUT "${NAME}.c")
set(TEST_OUTPUT "${NAME}.out")
set(TEST_GOLD "${NAME}.${TEST_EXE}.gold")
add_test(NAME "${TEST_NAME_RUN}" COMMAND "${TEST_EXE}" "${TEST_INPUT}" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
set_tests_properties("${TEST_NAME_RUN}" PROPERTIES PASS_REGULAR_EXPRESSION ".*${TEST_EXE} done.*")
set_tests_properties("${TEST_NAME_RUN}" PROPERTIES PASS_REGULAR_EXPRESSION ".*${TEST_MESSAGE} done.*")
set_tests_properties("${TEST_NAME_RUN}" PROPERTIES FIXTURES_SETUP "${TEST_OUTPUT}")
set_tests_properties("${TEST_NAME_RUN}" PROPERTIES TIMEOUT "5")
set_tests_properties("${TEST_NAME_RUN}" PROPERTIES LABELS "${TEST_EXE}")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment