Mercurial > hg > freeDiameter
comparison tests/CMakeLists.txt @ 737:03bcd4870f44
Set default output to CHECK only in nightly tests
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Wed, 02 Mar 2011 16:28:14 +0900 |
parents | b2bc31410425 |
children | 1f721af3cac3 |
comparison
equal
deleted
inserted
replaced
736:9af507b1bd23 | 737:03bcd4870f44 |
---|---|
4 # give the possibility to configure the timeout duration for the tests | 4 # give the possibility to configure the timeout duration for the tests |
5 OPTION(TEST_TIMEOUT "Timeout for the tests, in seconds (default: 120)?") | 5 OPTION(TEST_TIMEOUT "Timeout for the tests, in seconds (default: 120)?") |
6 IF(TEST_TIMEOUT) | 6 IF(TEST_TIMEOUT) |
7 ADD_DEFINITIONS(-DTEST_TIMEOUT=${TEST_TIMEOUT}) | 7 ADD_DEFINITIONS(-DTEST_TIMEOUT=${TEST_TIMEOUT}) |
8 ENDIF(TEST_TIMEOUT) | 8 ENDIF(TEST_TIMEOUT) |
9 | |
10 # default command line for the tests | |
11 OPTION(OPT_TEST_ARGUMENTS "Specify the default arguments for the tests" OFF) | |
12 IF(OPT_TEST_ARGUMENT) | |
13 SET(TEST_ARGUMENTS ${OPT_TEST_ARGUMENTS}) | |
14 ELSE(OPT_TEST_ARGUMENT) | |
15 SET(TEST_ARGUMENTS "") | |
16 ENDIF(OPT_TEST_ARGUMENT) | |
9 | 17 |
10 | 18 |
11 ############################# | 19 ############################# |
12 # List the test cases | 20 # List the test cases |
13 SET(TEST_LIST | 21 SET(TEST_LIST |
95 ############################# | 103 ############################# |
96 # Compile each test | 104 # Compile each test |
97 FOREACH( TEST ${TEST_LIST} ) | 105 FOREACH( TEST ${TEST_LIST} ) |
98 ADD_EXECUTABLE(${TEST} ${TEST}.c tests.h ${${TEST}_ADDITIONAL}) | 106 ADD_EXECUTABLE(${TEST} ${TEST}.c tests.h ${${TEST}_ADDITIONAL}) |
99 TARGET_LINK_LIBRARIES(${TEST} libfdproto libfdcore ${GNUTLS_LIBRARIES} ${GCRYPT_LIBRARY} ${${TEST}_ADDITIONAL_LIB}) | 107 TARGET_LINK_LIBRARIES(${TEST} libfdproto libfdcore ${GNUTLS_LIBRARIES} ${GCRYPT_LIBRARY} ${${TEST}_ADDITIONAL_LIB}) |
100 ADD_TEST(${TEST} ${EXECUTABLE_OUTPUT_PATH}/${TEST}) | 108 ADD_TEST(${TEST} ${EXECUTABLE_OUTPUT_PATH}/${TEST} ${TEST_ARGUMENTS}) |
101 ENDFOREACH( TEST ) | 109 ENDFOREACH( TEST ) |
102 | 110 |
103 | 111 |
104 #### | 112 #### |
105 ## INSTALL section ## | 113 ## INSTALL section ## |