2012-08-07 07:07:40 +08:00
|
|
|
# Some extra tests
|
2017-10-26 18:49:57 +08:00
|
|
|
SET(NC4_TESTS tst_dims tst_dims2 tst_dims3 tst_files tst_files4
|
|
|
|
tst_vars tst_varms tst_unlim_vars tst_converts tst_converts2
|
|
|
|
tst_grps tst_grps2 tst_compounds tst_compounds2 tst_compounds3
|
|
|
|
tst_opaques tst_strings tst_strings2 tst_interops tst_interops4
|
|
|
|
tst_interops6 tst_enums tst_coords tst_coords2 tst_coords3 tst_vars3
|
|
|
|
tst_vars4 tst_chunks tst_chunks2 tst_utf8 tst_fills tst_fills2
|
|
|
|
tst_fillbug tst_xplatform2 tst_endian_fill tst_atts t_type
|
|
|
|
cdm_sea_soundings tst_vl tst_atts1 tst_atts2 tst_vars2 tst_files5
|
|
|
|
tst_files6 tst_sync tst_h_strbug tst_h_refs tst_h_scalar tst_rename
|
|
|
|
tst_h5_endians tst_atts_string_rewrite tst_put_vars_two_unlim_dim
|
2017-11-14 02:15:02 +08:00
|
|
|
tst_hdf5_file_compat tst_fill_attr_vanish tst_rehash tst_filterparser)
|
|
|
|
|
2012-08-07 07:07:40 +08:00
|
|
|
|
2013-07-21 09:08:39 +08:00
|
|
|
# Note, renamegroup needs to be compiled before run_grp_rename
|
2016-09-01 05:48:10 +08:00
|
|
|
|
|
|
|
IF(BUILD_UTILITIES)
|
2016-09-01 05:53:34 +08:00
|
|
|
SET(NC4_TESTS ${NC4_TESTS} tst_xplatform)
|
2016-09-01 05:48:10 +08:00
|
|
|
build_bin_test(renamegroup)
|
|
|
|
add_sh_test(nc_test4 run_grp_rename)
|
|
|
|
ADD_SH_TEST(nc_test4 tst_misc)
|
|
|
|
ENDIF(BUILD_UTILITIES)
|
2013-07-21 09:08:39 +08:00
|
|
|
|
2016-02-20 01:16:42 +08:00
|
|
|
##
|
|
|
|
# The shell script, run_empty_vlen_test.sh,
|
|
|
|
# depends on the 'tst_empty_vlen_unlim' binary.
|
|
|
|
##
|
|
|
|
BUILD_BIN_TEST(tst_empty_vlen_unlim)
|
|
|
|
ADD_SH_TEST(nc_test4 run_empty_vlen_test)
|
|
|
|
|
2012-09-15 05:35:25 +08:00
|
|
|
IF(NOT MSVC)
|
2014-04-22 01:15:33 +08:00
|
|
|
SET(NC4_TESTS ${NC4_TESTS} tst_interops5 tst_camrun)
|
2012-09-15 05:35:25 +08:00
|
|
|
ENDIF()
|
|
|
|
|
2014-04-04 00:45:22 +08:00
|
|
|
# If the v2 API was built, add the test program.
|
|
|
|
IF(ENABLE_V2_API)
|
|
|
|
build_bin_test(tst_v2)
|
|
|
|
ENDIF()
|
|
|
|
|
2013-02-13 06:22:54 +08:00
|
|
|
IF(LARGE_FILE_TESTS)
|
2014-04-22 01:15:33 +08:00
|
|
|
SET(NC4_TESTS ${NC4_TESTS} tst_large tst_large2)
|
2013-02-13 06:22:54 +08:00
|
|
|
ENDIF()
|
2014-04-22 01:15:33 +08:00
|
|
|
|
2013-02-13 06:22:54 +08:00
|
|
|
|
2013-01-16 06:43:09 +08:00
|
|
|
IF(USE_HDF4)
|
2014-04-22 01:15:33 +08:00
|
|
|
SET(NC4_TESTS ${NC4_TESTS} tst_interops2)
|
2013-01-16 06:43:09 +08:00
|
|
|
ENDIF()
|
|
|
|
|
2017-08-28 05:51:45 +08:00
|
|
|
IF(USE_SZIP)
|
2017-08-31 02:06:23 +08:00
|
|
|
BUILD_BIN_TEST(test_szip)
|
|
|
|
BUILD_BIN_TEST(h5testszip)
|
|
|
|
IF(BUILD_UTILITIES)
|
|
|
|
add_sh_test(nc_test4 tst_szip)
|
|
|
|
ENDIF()
|
2017-08-28 05:51:45 +08:00
|
|
|
ENDIF()
|
|
|
|
|
2013-02-13 06:22:54 +08:00
|
|
|
IF(BUILD_BENCHMARKS)
|
2014-04-22 01:15:33 +08:00
|
|
|
add_sh_test(nc_test4 run_bm_test1)
|
|
|
|
add_sh_test(nc_test4 run_bm_elena)
|
|
|
|
add_sh_test(nc_test4 run_bm_test2)
|
|
|
|
add_sh_test(nc_test4 run_tst_chunks)
|
|
|
|
add_sh_test(nc_test4 run_bm_ar4)
|
|
|
|
add_sh_test(nc_test4 run_get_knmi_files)
|
|
|
|
|
|
|
|
SET(NC4_TESTS ${NC4_TESTS} tst_create_files bm_file tst_chunks3 tst_ar4 tst_ar4_3d tst_ar4_4d bm_many_objs tst_h_many_atts bm_many_atts tst_files2 tst_files3 tst_ar5 tst_h_files3 tst_mem tst_knmi bm_netcdf4_recs)
|
|
|
|
IF(TEST_PARALLEL)
|
|
|
|
add_sh_test(nc_test4 run_par_bm_test)
|
|
|
|
ENDIF()
|
2013-02-13 06:22:54 +08:00
|
|
|
ENDIF()
|
2012-08-10 01:07:41 +08:00
|
|
|
|
2012-08-08 04:21:44 +08:00
|
|
|
# Copy some test files from current source dir to out-of-tree build dir.
|
2017-09-05 08:37:13 +08:00
|
|
|
FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.nc ${CMAKE_CURRENT_SOURCE_DIR}/*.sh ${CMAKE_CURRENT_SOURCE_DIR}/*.hdf4 ${CMAKE_CURRENT_SOURCE_DIR}/*.h5 ${CMAKE_CURRENT_SOURCE_DIR}/*.cdl)
|
2012-08-07 07:07:40 +08:00
|
|
|
FILE(COPY ${COPY_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
|
2013-02-22 07:56:15 +08:00
|
|
|
IF(MSVC)
|
2014-04-22 01:15:33 +08:00
|
|
|
FILE(COPY ${COPY_FILES} DESTINATION ${RUNTIME_OUTPUT_DIRECTORY}/)
|
2013-02-22 07:56:15 +08:00
|
|
|
ENDIF()
|
|
|
|
|
2012-08-07 07:07:40 +08:00
|
|
|
|
2013-01-16 06:43:09 +08:00
|
|
|
FOREACH(CTEST ${NC4_TESTS})
|
2012-09-15 05:53:08 +08:00
|
|
|
add_bin_test(nc_test4 ${CTEST})
|
2012-08-07 07:07:40 +08:00
|
|
|
ENDFOREACH()
|
|
|
|
|
2014-08-30 06:30:28 +08:00
|
|
|
# This must go after the 'foreach' stanza
|
|
|
|
# immediately above this comment.
|
|
|
|
IF(USE_HDF4_FILE_TESTS AND NOT MSVC)
|
|
|
|
add_sh_test(nc_test4 run_get_hdf4_files)
|
|
|
|
add_bin_test(nc_test4 tst_interops3)
|
2017-11-17 02:57:39 +08:00
|
|
|
add_bin_test(nc_test4 tst_bug324)
|
2014-08-30 06:30:28 +08:00
|
|
|
add_sh_test(nc_test4 tst_formatx_hdf4)
|
|
|
|
build_bin_test(tst_chunk_hdf4)
|
|
|
|
add_sh_test(nc_test4 run_chunk_hdf4)
|
2015-05-29 07:13:15 +08:00
|
|
|
add_bin_test(nc_test4 tst_h4_lendian)
|
2016-06-03 04:19:36 +08:00
|
|
|
add_sh_test(nc_test4 tst_hdf4_read_var)
|
2014-08-30 06:30:28 +08:00
|
|
|
ENDIF()
|
|
|
|
|
2016-06-10 03:21:28 +08:00
|
|
|
IF(TEST_PARALLEL4)
|
2014-06-12 05:51:31 +08:00
|
|
|
build_bin_test(tst_mpi_parallel)
|
2014-04-22 01:15:33 +08:00
|
|
|
build_bin_test(tst_parallel)
|
|
|
|
build_bin_test(tst_parallel3)
|
|
|
|
build_bin_test(tst_parallel4)
|
|
|
|
build_bin_test(tst_nc4perf)
|
2016-02-05 03:12:15 +08:00
|
|
|
build_bin_test(tst_mode)
|
2016-06-10 01:26:06 +08:00
|
|
|
build_bin_test(tst_simplerw_coll_r)
|
2014-04-22 01:15:33 +08:00
|
|
|
add_sh_test(nc_test4 run_par_test)
|
2014-06-12 05:51:31 +08:00
|
|
|
ENDIF()
|
2017-04-28 03:01:59 +08:00
|
|
|
|
|
|
|
ADD_SUBDIRECTORY(filter_test)
|