mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-15 08:30:11 +08:00
f0f0f39950
# Description Remove various obsolete build options. Also do some code movement. ## Specific Changes * The remotetest server is sometimes unstable, so provide a mechanism to force disabling calls to remotetest.unidata.ucar.edu. This is enabled by adding a repository variable named REMOTETESTDOWN with the value "yes". * Fix CMakeLists.txt to use the uname command as an alternate to using the hostname command (which does not work under cygwin). * Remove the JNA stuff as obsolete * Remove the ENABLE_CLIENTSIDE_FILTERS options since it has been disabled for a while. * Fix bad option flag in some github action .yml files: change --disable-xml2 to --disable-libxml2 * Collect globalstate definitions into nc4internal.h * Remove ENABLE_NCZARR_FILTERS_TESTING option as obsolete and replace with ENABLE_NCZARR_FILTERS * Move some dispatcher independent functions from libsrc4/nc4internal.c to libdispatch/ddispatch.c * As a long term goal, and because it is now the case that --enable-nczarr => USE_NETCDF4, make the external options --enable-netcdf-4 and --enable-netcdf4 obsolete in favor of --enable-hdf5 We will do the following for one more release cycle. 1. Make --enable-netcdf-4 be an alias for --enable-netcdf4. 2. Make --enable-netcdf4 an alias for --enable-hdf5. 3. Internally, convert most uses of USE_NETCDF_4 ad USE_NETCDF4 to USE_HDF5 After the next release, --enable-netcdf-4 and --enable-netcdf4 will be removed.
107 lines
3.0 KiB
Makefile
107 lines
3.0 KiB
Makefile
## This is a automake file, part of Unidata's netCDF package.
|
|
# Copyright 2018v, see the COPYRIGHT file for more information.
|
|
|
|
# This file builds and runs DAP tests.
|
|
|
|
# Put together AM_CPPFLAGS and AM_LDFLAGS.
|
|
include $(top_srcdir)/lib_flags.am
|
|
LDADD = ${top_builddir}/liblib/libnetcdf.la
|
|
|
|
# Un comment to use a more verbose test driver
|
|
#SH_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
|
|
#LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
|
|
#TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
|
|
#TESTS_ENVIRONMENT = export SETX=1;
|
|
|
|
# Note which tests depend on other tests. Necessary for make -j check.
|
|
TEST_EXTENSIONS = .sh
|
|
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/liblib
|
|
AM_CPPFLAGS += -I$(top_srcdir)/libdap4
|
|
AM_CPPFLAGS += -DTOPSRCDIR=${abs_top_srcdir}
|
|
AM_CPPFLAGS += -DTOPBINDIR=${abs_top_builddir}
|
|
|
|
# Set up the tests; do the .sh first, then .c
|
|
check_PROGRAMS =
|
|
TESTS =
|
|
|
|
check_PROGRAMS += test_parse test_meta test_data
|
|
|
|
noinst_PROGRAMS =
|
|
|
|
TESTS += test_parse.sh test_meta.sh test_data.sh test_raw.sh
|
|
|
|
# Note test_curlopt.sh is intended to be run manually; see comments in file.
|
|
|
|
# Note: This program name was changed to findtestserver4
|
|
# to avoid cmake complaint about duplicate targets.
|
|
noinst_PROGRAMS += findtestserver4 pingurl4 dump
|
|
findtestserver4_SOURCES = findtestserver4.c
|
|
pingurl4_SOURCES = pingurl4.c
|
|
dump_SOURCES = dump.c
|
|
|
|
# Disable Dap4 Remote Tests until the test server is working
|
|
if NETCDF_BUILD_UTILITIES
|
|
if NETCDF_ENABLE_DAP_REMOTE_TESTS
|
|
|
|
TESTS += test_remote.sh
|
|
TESTS += test_constraints.sh
|
|
TESTS += test_hyrax.sh
|
|
TESTS += test_dap4url.sh
|
|
|
|
# The following test can only be run by hand.
|
|
# It tests earthdata authorization.
|
|
# Before running it, one needs to do the following:
|
|
# export USERPWD="<username>:<password>"
|
|
# where the username and password are registered with urs.earthdata.nasa.gov.
|
|
if AX_MANUAL
|
|
TESTS += test_earthdata.sh
|
|
endif
|
|
|
|
if AX_MANUAL
|
|
TESTS += test_thredds.sh
|
|
endif
|
|
|
|
endif
|
|
endif
|
|
|
|
EXTRA_DIST = CMakeLists.txt test_common.h build.sh \
|
|
d4manifest.sh d4test_common.sh \
|
|
test_curlopt.sh test_data.sh test_hyrax.sh test_meta.sh \
|
|
test_parse.sh test_raw.sh \
|
|
test_remote.sh test_constraints.sh test_thredds.sh \
|
|
test_dap4url.sh test_earthdata.sh \
|
|
cdltestfiles rawtestfiles \
|
|
baseline baselineraw baselineremote baselinehyrax baselinethredds
|
|
|
|
CLEANFILES = *.exe
|
|
# This should only be left behind if using parallel io
|
|
CLEANFILES += tmp_*
|
|
CLEANFILES += ${srcdir}/baselinethredds/GOES16_CONUS_20170821_020218_0.47_1km_33.3N_91.4W.nc4.thredds
|
|
|
|
DISTCLEANFILES = findtestserver4.c pingurl4.c
|
|
|
|
# One last thing
|
|
BUILT_SOURCES = .daprc
|
|
|
|
.daprc:
|
|
echo "#DAPRC" >.daprc
|
|
|
|
clean-local: clean-local-check
|
|
|
|
.PHONY: clean-local-check
|
|
|
|
clean-local-check:
|
|
rm -rf results results_*
|
|
rm -f .dodsrc .daprc .ncrc .netrc
|
|
|
|
# The shell file maketests.sh is used to build the testdata
|
|
# for dap4 testing. It creates and fills the directories
|
|
# daptestfiles, dmrtestfiles, and testsrc
|
|
# As a rule, this will only be invoked if there was a change
|
|
# in the GenerateRaw.java program in the thredds tree.
|
|
maketests::
|
|
bash ./maketests.sh
|
|
|