2019-08-09 23:31:24 +08:00
|
|
|
## This is a automake file, part of Unidata's netCDF package.
|
|
|
|
# Copyright 2019, see the COPYRIGHT file for more information.
|
|
|
|
|
2019-08-14 01:09:53 +08:00
|
|
|
# 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.
|
2019-08-09 23:31:24 +08:00
|
|
|
|
|
|
|
# Ed Hartnett 8/9/19
|
|
|
|
|
|
|
|
# Put together AM_CPPFLAGS and AM_LDFLAGS.
|
|
|
|
include $(top_srcdir)/lib_flags.am
|
|
|
|
|
2021-12-24 13:18:56 +08:00
|
|
|
#SH_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
|
|
|
|
#sh_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
|
|
|
|
#LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
|
|
|
|
#TESTS_ENVIRONMENT = export SETX=1;
|
|
|
|
|
2019-08-14 01:09:53 +08:00
|
|
|
# Find and link to the netcdf-c library.
|
2019-08-14 01:06:06 +08:00
|
|
|
LDADD = ${top_builddir}/liblib/libnetcdf.la
|
2019-08-09 23:31:24 +08:00
|
|
|
|
2020-12-17 11:48:02 +08:00
|
|
|
check_PROGRAMS =
|
2021-09-28 08:36:33 +08:00
|
|
|
TESTS =
|
2019-08-21 23:48:50 +08:00
|
|
|
|
2020-12-17 11:48:02 +08:00
|
|
|
check_PROGRAMS += tst_nclist test_ncuri test_pathcvt
|
2020-12-07 09:19:53 +08:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2021-09-28 08:36:33 +08:00
|
|
|
TESTS += tst_nclist test_ncuri test_pathcvt tst_exhash tst_xcache
|
|
|
|
|
2020-12-17 11:48:02 +08:00
|
|
|
if USE_NETCDF4
|
|
|
|
check_PROGRAMS += tst_nc4internal
|
2021-09-28 08:36:33 +08:00
|
|
|
TESTS += tst_nc4internal
|
2020-12-17 11:48:02 +08:00
|
|
|
endif # USE_NETCDF4
|
|
|
|
|
2021-12-24 13:18:56 +08:00
|
|
|
if ENABLE_NCZARR_S3_TESTS
|
2021-09-28 08:36:33 +08:00
|
|
|
check_PROGRAMS += test_aws
|
|
|
|
TESTS += run_aws.sh
|
2021-12-24 13:18:56 +08:00
|
|
|
endif
|
2019-08-09 23:31:24 +08:00
|
|
|
|
2021-09-28 08:36:33 +08:00
|
|
|
EXTRA_DIST = CMakeLists.txt run_aws.sh
|
2021-12-24 13:18:56 +08:00
|
|
|
EXTRA_DIST += nctest_netcdf4_classic.nc
|
2019-08-22 04:50:09 +08:00
|
|
|
|
2019-08-09 23:31:24 +08:00
|
|
|
# If valgrind is present, add valgrind targets.
|
|
|
|
@VALGRIND_CHECK_RULES@
|