2019-03-17 22:03:27 +08:00
|
|
|
# This is part of the netCDF package. Copyright 2005-2019 University
|
2018-08-25 02:48:42 +08:00
|
|
|
# Corporation for Atmospheric Research/Unidata See COPYRIGHT file for
|
|
|
|
# conditions of use.
|
|
|
|
#
|
|
|
|
# This directory holds tests for netCDF-4. It is skipped if netCDF-4
|
|
|
|
# is not enabled.
|
2015-05-13 03:00:22 +08:00
|
|
|
#
|
2017-12-07 06:07:54 +08:00
|
|
|
# Ed Hartnett, Ward Fisher
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2011-03-15 18:19:08 +08:00
|
|
|
# Put together AM_CPPFLAGS and AM_LDFLAGS.
|
|
|
|
include $(top_srcdir)/lib_flags.am
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2018-01-17 02:00:09 +08:00
|
|
|
# Un comment to use a more verbose test driver
|
2018-11-16 01:00:38 +08:00
|
|
|
#SH_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
|
|
|
|
#LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
|
2018-01-17 02:00:09 +08:00
|
|
|
|
2019-01-02 20:31:15 +08:00
|
|
|
TEST_EXTENSIONS = .sh
|
2018-08-23 20:32:04 +08:00
|
|
|
|
2011-03-15 18:19:08 +08:00
|
|
|
# Link to our assembled library.
|
2011-06-03 06:46:15 +08:00
|
|
|
AM_LDFLAGS += ${top_builddir}/liblib/libnetcdf.la
|
2018-08-07 00:57:19 +08:00
|
|
|
LDADD = ${top_builddir}/liblib/libnetcdf.la
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2017-11-25 01:50:07 +08:00
|
|
|
# These are netCDF-4 C test programs which are built and run.
|
2019-01-02 20:31:15 +08:00
|
|
|
NC4_TESTS = tst_dims tst_dims2 tst_dims3 tst_files tst_files4 \
|
2017-10-26 18:49:57 +08:00
|
|
|
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_interops5 \
|
|
|
|
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_xplatform tst_xplatform2 tst_endian_fill tst_atts \
|
2011-03-15 18:19:08 +08:00
|
|
|
t_type cdm_sea_soundings tst_camrun tst_vl tst_atts1 tst_atts2 \
|
2017-11-17 02:30:35 +08:00
|
|
|
tst_vars2 tst_files5 tst_files6 tst_sync tst_h_scalar tst_rename \
|
2019-02-02 20:53:45 +08:00
|
|
|
tst_rename2 tst_rename3 tst_h5_endians tst_atts_string_rewrite \
|
2018-02-13 01:08:59 +08:00
|
|
|
tst_hdf5_file_compat tst_fill_attr_vanish tst_rehash tst_filterparser \
|
2019-01-02 21:21:11 +08:00
|
|
|
tst_bug324 tst_types tst_atts3 tst_put_vars tst_elatefill tst_udf
|
2010-06-22 21:25:14 +08:00
|
|
|
|
2019-03-12 23:23:49 +08:00
|
|
|
# Temporary I hoped, but hoped in vain.
|
2017-06-01 05:01:02 +08:00
|
|
|
if !ISCYGWIN
|
2017-04-04 11:39:44 +08:00
|
|
|
NC4_TESTS += tst_h_strbug tst_h_refs
|
|
|
|
endif
|
|
|
|
|
2017-11-25 01:50:07 +08:00
|
|
|
# Build test programs plus programs used in test scripts.
|
2019-01-02 21:21:11 +08:00
|
|
|
check_PROGRAMS = $(NC4_TESTS) tst_empty_vlen_unlim
|
|
|
|
TESTS = $(NC4_TESTS) run_empty_vlen_test.sh
|
2010-06-15 23:24:28 +08:00
|
|
|
|
2011-03-15 18:19:08 +08:00
|
|
|
# Add these if large file tests are turned on.
|
|
|
|
if LARGE_FILE_TESTS
|
|
|
|
check_PROGRAMS += tst_large tst_large2
|
2017-11-25 01:50:07 +08:00
|
|
|
TESTS += tst_large tst_large2
|
2011-03-15 18:19:08 +08:00
|
|
|
endif
|
|
|
|
|
2016-09-01 05:38:59 +08:00
|
|
|
if BUILD_UTILITIES
|
2019-01-02 21:21:11 +08:00
|
|
|
check_PROGRAMS += renamegroup
|
2017-11-18 22:36:24 +08:00
|
|
|
TESTS += run_grp_rename.sh tst_misc.sh
|
2016-09-01 05:38:59 +08:00
|
|
|
endif
|
|
|
|
|
2011-03-15 18:19:08 +08:00
|
|
|
# If the v2 API was built, add its test program.
|
2010-06-22 21:25:14 +08:00
|
|
|
if BUILD_V2
|
2015-05-13 03:00:22 +08:00
|
|
|
check_PROGRAMS += tst_v2
|
2010-06-22 21:25:14 +08:00
|
|
|
TESTS += tst_v2
|
|
|
|
endif # BUILD_V2
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2017-09-05 08:37:13 +08:00
|
|
|
# Szip Tests (requires ncdump)
|
2017-08-28 10:38:37 +08:00
|
|
|
if USE_SZIP
|
2017-09-05 08:37:13 +08:00
|
|
|
if BUILD_UTILITIES
|
2017-08-29 08:11:24 +08:00
|
|
|
check_PROGRAMS += test_szip h5testszip
|
2017-08-29 04:56:01 +08:00
|
|
|
TESTS += tst_szip.sh
|
2017-08-28 10:38:37 +08:00
|
|
|
endif
|
2017-09-05 08:37:13 +08:00
|
|
|
endif
|
2017-08-28 10:38:37 +08:00
|
|
|
|
2018-01-17 02:00:09 +08:00
|
|
|
# Filter Tests (requires ncdump and ncgen)
|
|
|
|
if ENABLE_FILTER_TESTING
|
|
|
|
if BUILD_UTILITIES
|
2019-01-02 20:31:15 +08:00
|
|
|
extradir =
|
2018-01-17 08:49:21 +08:00
|
|
|
extra_PROGRAMS = test_filter test_filter_misc
|
2018-01-17 02:00:09 +08:00
|
|
|
TESTS += tst_filter.sh
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2010-06-03 21:24:43 +08:00
|
|
|
# This are extra tests that will only be run if netcdf-4 is configured
|
|
|
|
# with --enable-parallel-tests.
|
2015-08-16 06:26:35 +08:00
|
|
|
if TEST_PARALLEL4
|
2018-05-14 22:11:32 +08:00
|
|
|
check_PROGRAMS += tst_mpi_parallel tst_parallel tst_parallel3 \
|
2018-08-18 19:22:07 +08:00
|
|
|
tst_parallel4 tst_parallel5 tst_nc4perf tst_mode tst_simplerw_coll_r \
|
|
|
|
tst_mode
|
2010-06-03 21:24:43 +08:00
|
|
|
TESTS += run_par_test.sh
|
|
|
|
endif
|
|
|
|
|
2019-03-19 00:15:18 +08:00
|
|
|
EXTRA_DIST = run_par_test.sh.in ref_tst_compounds.nc \
|
|
|
|
ref_tst_xplatform2_1.nc ref_tst_xplatform2_2.nc ref_tst_dims.nc \
|
|
|
|
ref_tst_interops4.nc CMakeLists.txt run_grp_rename.sh \
|
2019-03-18 22:30:14 +08:00
|
|
|
tst_h5_endians.c tst_atts_string_rewrite.c \
|
2018-08-25 02:48:42 +08:00
|
|
|
tst_put_vars_two_unlim_dim.c tst_empty_vlen_unlim.c \
|
|
|
|
run_empty_vlen_test.sh ref_hdf5_compat1.nc ref_hdf5_compat2.nc \
|
|
|
|
ref_hdf5_compat3.nc tst_misc.sh tdset.h5 tst_szip.sh ref_szip.h5 \
|
2019-03-18 01:17:29 +08:00
|
|
|
ref_szip.cdl tst_filter.sh bzip2.cdl ref_filtered.cdl \
|
2019-03-18 22:30:14 +08:00
|
|
|
ref_unfiltered.cdl ref_bzip2.c findplugin.in ref_unfilteredvv.cdl \
|
|
|
|
ref_filteredvv.cdl
|
2017-11-17 02:30:35 +08:00
|
|
|
|
2018-08-23 22:21:55 +08:00
|
|
|
CLEANFILES = tst_mpi_parallel.bin cdm_sea_soundings.nc bm_chunking.nc \
|
2018-08-24 22:59:58 +08:00
|
|
|
tst_floats_1D.cdl floats_1D_3.nc floats_1D.cdl tst_*.nc \
|
2019-03-19 00:15:18 +08:00
|
|
|
tst_elena_*.cdl tst_simple*.cdl tst_chunks.cdl pr_A1.* tauu_A1.* \
|
|
|
|
usi_01.* thetau_01.* tst_*.h5 tst_grp_rename.cdl tst_grp_rename.dmp \
|
|
|
|
ref_grp_rename.cdl foo1.nc tst_*.h4 test.nc testszip.nc test.h5 \
|
|
|
|
szip_dump.cdl *.gz MSGCPP_*.nc
|
2010-06-11 01:18:48 +08:00
|
|
|
|
2019-03-18 01:17:29 +08:00
|
|
|
DISTCLEANFILES = findplugin.sh run_par_test.sh
|
2018-01-17 02:00:09 +08:00
|
|
|
|
2018-03-29 03:54:05 +08:00
|
|
|
# If valgrind is present, add valgrind targets.
|
|
|
|
@VALGRIND_CHECK_RULES@
|