Mercurial > hg > freeDiameter
view tests/CMakeLists.txt @ 1486:eeb5706333c3
Update to 3GPP TS 29.061 V15.5.0 (2018-12)
Add AVPs:
- TWAN-Identifier, OctetString, code 29, section 16.4.7
- 3GPP-User-Location-Info-Time, OctetString, code 30, section 16.4.7
- 3GPP-Secondary-RAT-Usage, OctetString, code 31, section 16.4.7
- MBMS-Access-Indicator, Enumerated, code 923, section 20.5a.1
- MBMS-GW-SSM-IP-Address, OctetString, code 924, section 20.5a.2
- MBMS-GW-SSM-IPv6-Address, OctetString, code 925, section 20.5a.3
- MBMS-BMSC-SSM-UDP-Port, OctetString, code 926, section 20.5a.4
- MBMS-GW-UDP-Port, OctetString, code 927, section 20.5a.5
- MBMS-GW-UDP-Port-Indicator, Enumerated, code 928, section 20.5a.6
- MBMS-Data-Transfer-Start, Unsigned64, code 929, section 20.5a.7
- MBMS-Data-Transfer-Stop, Unsigned64, code 930, section 20.5a.8
- MBMS-Flag, Unsigned32, code 931, section 20.5a.9
- Restart-Counter, Unsigned32, code 932, section 20.5a.10
- Diagnostic-Info, Unsigned32, code 933, section 20.5a.11
- MBMS-Cell-List, OctetString, code 934, section 20.5a.12
Update notes and comments to reflect current style.
author | Luke Mewburn <luke@mewburn.net> |
---|---|
date | Fri, 27 Mar 2020 10:30:27 +1100 |
parents | 3ae22e5dc56c |
children |
line wrap: on
line source
# Test directory PROJECT("freeDiameter tests" C) # give the possibility to configure the timeout duration for the tests OPTION(TEST_TIMEOUT "Timeout for the tests, in seconds (default: 120)?") IF(TEST_TIMEOUT) ADD_DEFINITIONS(-DTEST_TIMEOUT=${TEST_TIMEOUT}) ENDIF(TEST_TIMEOUT) # default command line for the tests OPTION(OPT_TEST_ARGUMENTS "Specify the default arguments for the tests" OFF) IF(OPT_TEST_ARGUMENTS) SET(TEST_ARGUMENTS ${OPT_TEST_ARGUMENTS}) ELSE(OPT_TEST_ARGUMENTS) SET(TEST_ARGUMENTS "") ENDIF(OPT_TEST_ARGUMENTS) ############################# # List the test cases SET(TEST_LIST testsctp testostr testfifo testpeers testdict testmesg testmesg_stress testsess testdisp testcnx testloadext ) ############################# # Some parameters for the tests ADD_DEFINITIONS(-DTEST_DEBUG) ADD_DEFINITIONS(-DBUILD_DIR="${CMAKE_BINARY_DIR}") INCLUDE_DIRECTORIES( "../libfdproto" ) INCLUDE_DIRECTORIES( "../libfdcore" ) INCLUDE_DIRECTORIES(${LFDCORE_INCLUDES}) SET(testcnx_ADDITIONAL_LIB ${CLOCK_GETTIME_LIBS}) SET(testfifo_ADDITIONAL_LIB ${CLOCK_GETTIME_LIBS}) SET(testsess_ADDITIONAL_LIB ${CLOCK_GETTIME_LIBS}) SET(testloadext_ADDITIONAL_LIB ${CMAKE_DL_LIBS}) SET(testmesg_stress_ADDITIONAL_LIB ${CLOCK_GETTIME_LIBS} ${CMAKE_DL_LIBS}) ############################## # App_acct test IF(BUILD_APP_ACCT OR ALL_EXTENSIONS) OPTION(TEST_APP_ACCT "Test app_acct extension? (Requires a configured database, see testappacct.c for details)" OFF) IF(TEST_APP_ACCT) OPTION(TEST_APP_ACCT_CONNINFO "The connection string to the database") IF(TEST_APP_ACCT_CONNINFO) ADD_DEFINITIONS(-DTEST_CONNINFO="${TEST_APP_ACCT_CONNINFO}") ENDIF(TEST_APP_ACCT_CONNINFO) SET(TEST_LIST ${TEST_LIST} testappacct) # Extension dependencies FIND_PACKAGE(PostgreSQL REQUIRED) INCLUDE_DIRECTORIES(${POSTGRESQL_INCLUDE_DIR}) SET(testappacct_ADDITIONAL_LIB ${POSTGRESQL_LIBRARIES}) # List of source files, copied from the extension CMakeLists. BISON_FILE(../extensions/app_acct/acct_conf.y) FLEX_FILE(../extensions/app_acct/acct_conf.l) #SET_SOURCE_FILES_PROPERTIES(lex.acct_conf.c acct_conf.tab.c PROPERTIES COMPILE_FLAGS "-I ${CMAKE_CURRENT_SOURCE_DIR}") SET( APP_ACCT_SRC app_acct.h app_acct.c acct_db.c acct_records.c ) SET( APP_ACCT_SRC_GEN lex.acct_conf.c acct_conf.tab.c acct_conf.tab.h ) # The extension headers INCLUDE_DIRECTORIES( "../extensions/app_acct" ) SET(testappacct_ADDITIONAL "") FOREACH( SRC_FILE ${APP_ACCT_SRC}) SET(testappacct_ADDITIONAL ${testappacct_ADDITIONAL} "../extensions/app_acct/${SRC_FILE}") ENDFOREACH(SRC_FILE) FOREACH( SRC_FILE ${APP_ACCT_SRC_GEN}) SET(testappacct_ADDITIONAL ${testappacct_ADDITIONAL} "${CMAKE_CURRENT_BINARY_DIR}/../extensions/app_acct/${SRC_FILE}") ENDFOREACH(SRC_FILE) ENDIF(TEST_APP_ACCT) ENDIF(BUILD_APP_ACCT OR ALL_EXTENSIONS) ############################# # Compile each test FOREACH( TEST ${TEST_LIST} ) ADD_EXECUTABLE(${TEST} ${TEST}.c tests.h ${${TEST}_ADDITIONAL}) TARGET_LINK_LIBRARIES(${TEST} libfdproto libfdcore ${GNUTLS_LIBRARIES} ${GCRYPT_LIBRARY} ${${TEST}_ADDITIONAL_LIB}) ADD_TEST(${TEST} ${EXECUTABLE_OUTPUT_PATH}/${TEST} ${TEST_ARGUMENTS}) ENDFOREACH( TEST ) #### ## INSTALL section ## # we do not install the tests