summaryrefslogtreecommitdiff
path: root/source/test/programs/CMakeLists.txt
blob: 641aa16cd36023ca0b51bae840120c41f4ea01b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
if(KIT_ENABLE_TESTING)
  add_executable(too_many_tests too_many_tests.c)
  target_link_libraries(too_many_tests ${KIT_TEST_LIBRARY})
  add_test(
    NAME too_many_tests_test
    COMMAND too_many_tests)
  set_tests_properties(
    too_many_tests_test
    PROPERTIES
    TIMEOUT "30")

  add_executable(too_many_assertions too_many_assertions.c)
  target_link_libraries(too_many_assertions ${KIT_TEST_LIBRARY})
  add_test(
    NAME too_many_assertions_test
    COMMAND too_many_assertions)
  set_tests_properties(
    too_many_assertions_test
    PROPERTIES
    TIMEOUT "30")

  add_executable(cpp cpp.cpp)
  target_link_libraries(cpp ${KIT_TEST_LIBRARY})
  add_test(
    NAME cpp_test
    COMMAND cpp)
  set_tests_properties(
    cpp_test
    PROPERTIES
    TIMEOUT "30")
endif()