blob: d0f8d55a0069f292aa7a42f0c3d709657d5bf845 [file] [log] [blame]
cmake_minimum_required(VERSION 2.8)
get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
project(${PROJECT_NAME})
include(../../scripts/common.cmake)
include_directories("../../doctest/")
add_executable(${PROJECT_NAME} main.cpp test.cpp)
# queries
add_test(NAME help COMMAND $<TARGET_FILE:${PROJECT_NAME}> -dt-h)
add_test(NAME version COMMAND $<TARGET_FILE:${PROJECT_NAME}> -v)
add_test(NAME count COMMAND $<TARGET_FILE:${PROJECT_NAME}> -c)
add_test(NAME list_test_cases COMMAND $<TARGET_FILE:${PROJECT_NAME}> -ltc)
add_test(NAME list_test_suites COMMAND $<TARGET_FILE:${PROJECT_NAME}> -lts)
# options
add_test(NAME successful COMMAND $<TARGET_FILE:${PROJECT_NAME}> -success=true -exit=Off)
add_test(NAME abort_after COMMAND $<TARGET_FILE:${PROJECT_NAME}> -aa=3 -no-colors)
add_test(NAME first_last COMMAND $<TARGET_FILE:${PROJECT_NAME}> -f=2 -l=5)
add_test(NAME filter_1 COMMAND $<TARGET_FILE:${PROJECT_NAME}> -tc=assert**)
add_test(NAME filter_2 COMMAND $<TARGET_FILE:${PROJECT_NAME}> -tce=???ert*)
add_test(NAME filter_3 COMMAND $<TARGET_FILE:${PROJECT_NAME}> -sf=*test*)
add_test(NAME filter_4 COMMAND $<TARGET_FILE:${PROJECT_NAME}> -sfe=*test*)
add_test(NAME filter_5 COMMAND $<TARGET_FILE:${PROJECT_NAME}> -ts=ts1)
add_test(NAME filter_6 COMMAND $<TARGET_FILE:${PROJECT_NAME}> -tse=ts1)
add_test(NAME order_1 COMMAND $<TARGET_FILE:${PROJECT_NAME}> -ob=suite)
add_test(NAME order_2 COMMAND $<TARGET_FILE:${PROJECT_NAME}> -ob=name)
add_test(NAME order_3 COMMAND $<TARGET_FILE:${PROJECT_NAME}> -ob=rand -rs=324)