mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-27 08:49:16 +08:00
d2316f866c
Primary Fixes: * Add a whole variable optimization -- used in the rare case that nc_get/put_vara covers the whole of a variable and the variable has a single chunk. * Fix chunking error when stride causes whole chunks to be skipped. * Fix some memory leaks * Add test cases * Add one performance test to nczarr_test/. This uses the timer utils from unit_test: timer_utils.[ch]. * Move ncdumpchunks utility from ncdump to nczarr_test Misc. Other Changes: * Make check for aws libraries conditional on --enable-nczarr-s3 * Remove all but one bm tests from nczarr_test until they are working. * Remove another dependency on HDF5 from supposedly non-HDF5 specific code; specifically hdf5_log_hdf5. * Make the BAIL2 macro be hdf5 specific and replace elsewhere with an HDF5 independent equivalent. * Move hdf5cache.c to libsrc4/nc4cache.c because it is used by nczarr. * Modify unit_tests so that some of them are run even if using Windows. * Misc. small bug fixes and refactors and memory leaks. * Rename some conflicting tests for cmake. * Attempted to make nc_perf work with cmake and failed.
36 lines
1.0 KiB
Makefile
36 lines
1.0 KiB
Makefile
## This is a automake file, part of Unidata's netCDF package.
|
|
# Copyright 2019, see the COPYRIGHT file for more information.
|
|
|
|
# This file builds and runs the unit tests. These tests are not run in
|
|
# the CMake build, because we would then have to extern these internal
|
|
# functions, to allow Windows to work. Since we have not extern'd
|
|
# these functions, they will only be run under the autotools build.
|
|
|
|
# Ed Hartnett 8/9/19
|
|
|
|
# Put together AM_CPPFLAGS and AM_LDFLAGS.
|
|
include $(top_srcdir)/lib_flags.am
|
|
|
|
# Find and link to the netcdf-c library.
|
|
LDADD = ${top_builddir}/liblib/libnetcdf.la
|
|
|
|
check_PROGRAMS =
|
|
|
|
check_PROGRAMS += tst_nclist test_ncuri test_pathcvt
|
|
|
|
# Performance tests
|
|
check_PROGRAMS += tst_exhash tst_xcache
|
|
tst_exhash_SOURCES = tst_exhash.c timer_utils.c timer_utils.h
|
|
tst_xcache_SOURCES = tst_xcache.c timer_utils.c timer_utils.h
|
|
|
|
if USE_NETCDF4
|
|
check_PROGRAMS += tst_nc4internal
|
|
endif # USE_NETCDF4
|
|
|
|
TESTS = ${check_PROGRAMS}
|
|
|
|
EXTRA_DIST = CMakeLists.txt
|
|
|
|
# If valgrind is present, add valgrind targets.
|
|
@VALGRIND_CHECK_RULES@
|