mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
62a4cc1ae0
As it was, nccopy -c dim/x was sometimes being ignored. So modify nccopy to properly take into account. This also required a change to the nczarr code because it was not applying default chunking in the same way as libhdf5. Modify ncdump/tst_nccopy4.sh to test this feature properly. Also add a similar test to nczarr_test. Additionally, fix some other things that were causing Visual Studio builds with testing to not work. * fix curl testing under CMake to properly handle case where DAP is disabled, but byterange support is enabled. * properly test and/or define uintptr_t * Convert _O_XXX to O_XXX flags used by open();
109 lines
3.1 KiB
Makefile
109 lines
3.1 KiB
Makefile
## This is a automake file, part of Unidata's netCDF package.
|
|
# Copyright 2018, see the COPYRIGHT file for more information.
|
|
|
|
# This file builds and runs DAP4 tests.
|
|
|
|
# Put together AM_CPPFLAGS and AM_LDFLAGS.
|
|
include $(top_srcdir)/lib_flags.am
|
|
|
|
TESTS_ENVIRONMENT =
|
|
|
|
#TEST_EXTENSIONS = .sh
|
|
|
|
#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;
|
|
|
|
AM_CFLAGS += -I${top_srcdir} -I${top_srcdir}/libnczarr
|
|
AM_LDFLAGS += ${top_builddir}/liblib/libnetcdf.la
|
|
LDADD = ${top_builddir}/liblib/libnetcdf.la
|
|
|
|
# Set up the tests; do the .sh first, then .c
|
|
check_PROGRAMS =
|
|
TESTS =
|
|
|
|
# Unit Tests
|
|
check_PROGRAMS += ut_map ut_mapapi ut_json ut_projections ut_chunking
|
|
|
|
commonsrc = ut_util.c ut_test.c ut_includes.h ut_test.h ut_util.h test_nczarr_utils.h
|
|
|
|
ut_map_SOURCES = ut_map.c ${commonsrc}
|
|
ut_mapapi_SOURCES = ut_mapapi.c ${commonsrc}
|
|
ut_json_SOURCES = ut_json.c ${commonsrc}
|
|
ut_projections_SOURCES = ut_projections.c ${commonsrc}
|
|
ut_chunking_SOURCES = ut_chunking.c ${commonsrc}
|
|
|
|
check_PROGRAMS += tst_chunks tst_chunks2 tst_chunks3
|
|
|
|
TESTS += run_ut_map.sh
|
|
TESTS += run_ut_mapapi.sh
|
|
TESTS += run_ut_misc.sh
|
|
TESTS += run_ut_chunk.sh
|
|
|
|
if BUILD_UTILITIES
|
|
if USE_HDF5
|
|
TESTS += tst_nccopyz.sh
|
|
TESTS += run_it_test1.sh
|
|
endif
|
|
TESTS += run_it_test2.sh
|
|
endif
|
|
|
|
ignorec = ut_allslices.c ut_transfer.c ut_vars.c ut_walk.c
|
|
ignoresh = run_meta_tests.sh run_unittests.sh
|
|
ignoreh = ut_varstest.h
|
|
|
|
# These programs are used by the test cases
|
|
noinst_PROGRAMS = zmapio
|
|
zmapio_SOURCES = zmapio.c
|
|
noinst_PROGRAMS += zhex
|
|
zhex_SOURCES = zhex.c
|
|
noinst_PROGRAMS += zisjson
|
|
zisjson_SOURCES = zisjson.c
|
|
noinst_PROGRAMS += zs3parse
|
|
zs3parse_SOURCES = zs3parse.c
|
|
|
|
|
|
EXTRA_DIST = \
|
|
run_ut_map.sh run_ut_mapapi.sh run_ut_misc.sh run_ut_chunk.sh run_it_test1.sh run_it_test2.sh \
|
|
test_nczarr.sh tst_nccopyz.sh \
|
|
ref_ut_map_readmeta_nzf.txt \
|
|
ref_ut_map_writedata_nzf.cdl \
|
|
ref_ut_map_writemeta_nzf.cdl \
|
|
ref_ut_map_writemeta_nz4.cdl \
|
|
ref_ut_map_writedata_nz4.cdl \
|
|
ref_ut_map_write2meta_nzf.cdl \
|
|
ref_ut_map_write2meta_nz4.cdl \
|
|
ref_ut_map_search_nzf.txt \
|
|
ref_ut_map_search_nz4.txt \
|
|
ref_ut_map_readmeta_nz4.txt \
|
|
ref_ut_map_readdata_nz4.txt \
|
|
ref_ut_map_create_nz4.cdl \
|
|
ref_ut_json_parse.txt \
|
|
ref_ut_json_build.txt \
|
|
ref_t_meta_var1.cdl \
|
|
ref_t_meta_dim1.cdl \
|
|
ref_ut_testmap_create_nz4.cdl \
|
|
ref_ut_proj.txt \
|
|
ref_ut_map_create_nzf.cdl \
|
|
ref_ut_mapapi_create_nz4.cdl \
|
|
ref_ut_mapapi_create_nzf.cdl \
|
|
ref_ut_mapapi_create_s3.cdl \
|
|
ref_ut_mapapi_data_nz4.cdl \
|
|
ref_ut_mapapi_data_nzf.cdl \
|
|
ref_ut_mapapi_data_s3.cdl \
|
|
ref_ut_mapapi_meta_nz4.cdl \
|
|
ref_ut_mapapi_meta_nzf.cdl \
|
|
ref_ut_mapapi_meta_s3.cdl \
|
|
ref_ut_mapapi_search_nz4.txt \
|
|
ref_ut_mapapi_search_nzf.txt \
|
|
ref_ut_mapapi_search_s3.txt \
|
|
ref_perdimspecs.cdl
|
|
|
|
CLEANFILES = test.nzf test.nz4 test.nz4 tst_chunks.nc.nzf tst_chunks.nc.nz4 \
|
|
testmap.nzf testmap.nz4 testmapapi.nzf testmapapi.nz4 \
|
|
tst_chunks.nz4 tst_chunks.nzf tst_chunks2.nc.nz4 \
|
|
ut_*.txt ut*.cdl tmp*.nc tmp*.cdl
|
|
|
|
#tst_group_data.dmp tst_nans.dmp tst_solar_1.dmp tst_nul4.dmp dimscope.dmp
|