|
1 | 1 |
|
2 | | -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/test_project_root_containers.sh.in |
3 | | - ${CMAKE_CURRENT_BINARY_DIR}/test_project_root_containers.sh |
| 2 | +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/test_project.sh.in |
| 3 | + ${CMAKE_CURRENT_BINARY_DIR}/test_project.sh |
4 | 4 | @ONLY) |
5 | | -add_test(NAME project_root_containers |
6 | | - COMMAND ${CMAKE_CURRENT_BINARY_DIR}/test_project_root_containers.sh) |
7 | | -set_tests_properties(project_root_containers PROPERTIES |
8 | | - TIMEOUT "300" |
9 | | - PASS_REGULAR_EXPRESSION "Test successful." |
10 | | -) |
11 | | -add_test(NAME project_root_containers_double |
12 | | - COMMAND ${CMAKE_CURRENT_BINARY_DIR}/test_project_root_containers.sh --double-configure) |
13 | | -set_tests_properties(project_root_containers_double PROPERTIES |
14 | | - TIMEOUT "300" |
15 | | - PASS_REGULAR_EXPRESSION "Test successful." |
16 | | -) |
17 | 5 |
|
18 | | -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/test_project_stl_containers.sh.in |
19 | | - ${CMAKE_CURRENT_BINARY_DIR}/test_project_stl_containers.sh |
20 | | - @ONLY) |
21 | | -add_test(NAME project_stl_containers |
22 | | - COMMAND ${CMAKE_CURRENT_BINARY_DIR}/test_project_stl_containers.sh) |
23 | | -set_tests_properties(project_stl_containers PROPERTIES |
24 | | - TIMEOUT "300" |
25 | | - PASS_REGULAR_EXPRESSION "Test successful." |
26 | | -) |
27 | | -add_test(NAME project_stl_containers_double |
28 | | - COMMAND ${CMAKE_CURRENT_BINARY_DIR}/test_project_stl_containers.sh --double-configure) |
29 | | -set_tests_properties(project_stl_containers_double PROPERTIES |
30 | | - TIMEOUT "300" |
31 | | - PASS_REGULAR_EXPRESSION "Test successful." |
32 | | -) |
| 6 | +foreach(container_type IN ITEMS root stl) |
| 7 | + add_test(NAME project_${container_type}_containers |
| 8 | + COMMAND ${CMAKE_CURRENT_BINARY_DIR}/test_project.sh ${container_type}) |
| 9 | + set_tests_properties(project_${container_type}_containers PROPERTIES |
| 10 | + TIMEOUT "300" |
| 11 | + PASS_REGULAR_EXPRESSION "Test successful." |
| 12 | + ) |
| 13 | + |
| 14 | + add_test(NAME project_${container_type}_containers_double |
| 15 | + COMMAND ${CMAKE_CURRENT_BINARY_DIR}/test_project.sh ${container_type} --double-configure) |
| 16 | + set_tests_properties(project_${container_type}_containers_double PROPERTIES |
| 17 | + TIMEOUT "300" |
| 18 | + PASS_REGULAR_EXPRESSION "Test successful." |
| 19 | + ) |
| 20 | +endforeach() |
0 commit comments