2017-03-09 08:01:10 +08:00
|
|
|
add_definitions(-D"TOPSRCDIR=${CMAKE_SOURCE_DIR}")
|
|
|
|
add_definitions(-D"TOPBINDIR=${CMAKE_BINARY_DIR}")
|
2012-08-22 04:08:53 +08:00
|
|
|
|
|
|
|
remove_definitions(-DDLL_EXPORT)
|
2012-09-28 06:50:41 +08:00
|
|
|
add_definitions(-D"TOPSRCDIR=${CMAKE_SOURCE_DIR}")
|
2012-08-22 06:52:40 +08:00
|
|
|
|
2013-06-04 00:42:04 +08:00
|
|
|
FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.sh)
|
2012-08-22 04:08:53 +08:00
|
|
|
|
2015-05-16 06:08:48 +08:00
|
|
|
FILE(COPY ${COPY_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/ FILE_PERMISSIONS OWNER_WRITE OWNER_READ OWNER_EXECUTE)
|
2012-08-22 04:08:53 +08:00
|
|
|
|
|
|
|
IF(ENABLE_TESTS)
|
2014-03-14 00:06:12 +08:00
|
|
|
# Base tests
|
|
|
|
# The tests are set up as a combination of shell scripts and executables that
|
|
|
|
# must be run in a particular order. It is painful but will use macros to help
|
|
|
|
# keep it from being too bad.
|
|
|
|
# Binary Test Macro
|
2015-05-16 06:08:48 +08:00
|
|
|
|
2014-03-14 00:06:12 +08:00
|
|
|
add_sh_test(ncdap tst_ncdap3)
|
2014-12-28 11:42:01 +08:00
|
|
|
|
2014-03-14 00:06:12 +08:00
|
|
|
IF(NOT MSVC)
|
|
|
|
add_bin_env_test(ncdap t_dap3a)
|
|
|
|
add_bin_env_test(ncdap test_cvt)
|
|
|
|
add_bin_env_test(ncdap test_vara)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
IF(ENABLE_DAP_REMOTE_TESTS)
|
2017-03-09 08:01:10 +08:00
|
|
|
|
|
|
|
BUILD_BIN_TEST(findtestserver)
|
|
|
|
|
2016-09-01 05:48:10 +08:00
|
|
|
IF(BUILD_UTILITIES)
|
2017-07-15 06:44:50 +08:00
|
|
|
add_sh_test(ncdap tst_ber)
|
2016-09-01 05:48:10 +08:00
|
|
|
add_sh_test(ncdap tst_remote3)
|
2017-03-09 08:01:10 +08:00
|
|
|
# not yet add_sh_test(ncdap tst_hyrax)
|
2018-10-02 05:51:43 +08:00
|
|
|
add_sh_test(ncdap tst_fillmismatch)
|
2018-03-21 11:31:31 +08:00
|
|
|
IF(ENABLE_DAP_LONG_TESTS)
|
|
|
|
add_sh_test(ncdap tst_longremote3)
|
|
|
|
ENDIF(ENABLE_DAP_LONG_TESTS)
|
|
|
|
|
2016-09-07 02:41:48 +08:00
|
|
|
ENDIF(BUILD_UTILITIES)
|
2015-05-16 06:08:48 +08:00
|
|
|
|
2014-03-14 00:06:12 +08:00
|
|
|
IF(ENABLE_DAP_AUTH_TESTS)
|
2015-05-29 09:23:33 +08:00
|
|
|
##obsolete add_bin_test(ncdap t_auth)
|
2015-01-01 13:53:03 +08:00
|
|
|
add_sh_test(ncdap testauth)
|
2014-03-14 00:06:12 +08:00
|
|
|
ENDIF()
|
2015-05-16 06:08:48 +08:00
|
|
|
|
2014-03-14 00:06:12 +08:00
|
|
|
add_bin_test(ncdap test_varm3)
|
2015-05-16 06:08:48 +08:00
|
|
|
|
2015-05-09 03:43:59 +08:00
|
|
|
###
|
|
|
|
# This test relates to NCF-330 in
|
|
|
|
# the Unidata JIRA system.
|
|
|
|
###
|
2015-05-16 06:08:48 +08:00
|
|
|
#add_bin_test(ncdap t_ncf330)
|
2015-05-02 05:28:59 +08:00
|
|
|
|
2014-04-22 01:15:33 +08:00
|
|
|
ENDIF()
|
2012-08-22 04:08:53 +08:00
|
|
|
ENDIF()
|
2014-12-28 11:42:01 +08:00
|
|
|
|
2014-02-07 02:13:45 +08:00
|
|
|
ADD_SUBDIRECTORY(testdata3)
|
2013-06-04 00:42:04 +08:00
|
|
|
ADD_SUBDIRECTORY(expected3)
|
|
|
|
ADD_SUBDIRECTORY(expectremote3)
|
|
|
|
|
|
|
|
## Specify files to be distributed by 'make dist'
|
|
|
|
FILE(GLOB CUR_EXTRA_DIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.c ${CMAKE_CURRENT_SOURCE_DIR}/*.h ${CMAKE_CURRENT_SOURCE_DIR}/*.sh)
|
2018-09-05 01:27:47 +08:00
|
|
|
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} findtestserver.c.in CMakeLists.txt Makefile.am)
|
2013-11-16 04:44:27 +08:00
|
|
|
ADD_EXTRA_DIST("${CUR_EXTRA_DIST}")
|