2018-12-07 06:36:53 +08:00
|
|
|
# Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
|
|
|
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014,
|
|
|
|
# 2015, 2016, 2017, 2018
|
|
|
|
# University Corporation for Atmospheric Research/Unidata.
|
|
|
|
|
|
|
|
# See netcdf-c/COPYRIGHT file for more info.
|
2019-11-08 06:46:50 +08:00
|
|
|
add_definitions(-D"TOPSRCDIR=${CMAKE_CURRENT_SOURCE_DIR}/../")
|
|
|
|
add_definitions(-D"TOPBINDIR=${CMAKE_CURRENT_BINARY_DIR}/../")
|
2012-08-22 04:08:53 +08:00
|
|
|
|
|
|
|
remove_definitions(-DDLL_EXPORT)
|
2019-11-07 00:43:49 +08:00
|
|
|
# add_definitions(-D"TOPSRCDIR=${CMAKE_CURRENT_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
|
|
|
|
2019-02-16 02:36:29 +08:00
|
|
|
IF(ENABLE_DAP_REMOTE_TESTS)
|
|
|
|
BUILD_BIN_TEST(findtestserver)
|
2020-01-01 06:42:58 +08:00
|
|
|
BUILD_BIN_TEST(pingurl)
|
2019-02-16 02:36:29 +08:00
|
|
|
ENDIF()
|
|
|
|
|
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
|
|
|
|
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)
|
2019-01-30 06:23:03 +08:00
|
|
|
add_sh_test(ncdap tst_zero_len_var)
|
2020-12-05 06:49:30 +08:00
|
|
|
MESSAGE(WARNING "ncdap_test/tst_encode temporarily disabled.")
|
|
|
|
#add_sh_test(ncdap tst_encode)
|
|
|
|
# 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)
|
2018-12-07 06:36:53 +08:00
|
|
|
|
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)
|
2020-01-01 06:42:58 +08:00
|
|
|
add_bin_test(ncdap test_nstride_cached)
|
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}")
|