mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-15 08:30:11 +08:00
3db4f013bf
Specific changes: 1. Add dap4 code: libdap4 and dap4_test. Note that until the d4ts server problem is solved, dap4 is turned off. 2. Modify various files to support dap4 flags: configure.ac, Makefile.am, CMakeLists.txt, etc. 3. Add nc_test/test_common.sh. This centralizes the handling of the locations of various things in the build tree: e.g. where is ncgen.exe located. See nc_test/test_common.sh for details. 4. Modify .sh files to use test_common.sh 5. Obsolete separate oc2 by moving it to be part of netcdf-c. This means replacing code with netcdf-c equivalents. 5. Add --with-testserver to configure.ac to allow override of the servers to be used for --enable-dap-remote-tests. 6. There were multiple versions of nctypealignment code. Try to centralize in libdispatch/doffset.c and include/ncoffsets.h 7. Add a unit test for the ncuri code because of its complexity. 8. Move the findserver code out of libdispatch and into a separate, self contained program in ncdap_test and dap4_test. 9. Move the dispatch header files (nc{3,4}dispatch.h) to .../include because they are now shared by modules. 10. Revamp the handling of TOPSRCDIR and TOPBUILDDIR for shell scripts. 11. Make use of MREMAP if available 12. Misc. minor changes e.g. - #include <config.h> -> #include "config.h" - Add some no-install headers to /include - extern -> EXTERNL and vice versa as needed - misc header cleanup - clean up checking for misc. unix vs microsoft functions 13. Change copyright decls in some files to point to LICENSE file. 14. Add notes to RELEASENOTES.md
109 lines
2.5 KiB
Makefile
109 lines
2.5 KiB
Makefile
## This is a automake file, part of Unidata's netCDF package.
|
|
# Copyright 2011, see the COPYRIGHT file for more information.
|
|
|
|
# This file builds and runs DAP tests.
|
|
|
|
# This will not work until we get a new remotetest server set up
|
|
|
|
# Put together AM_CPPFLAGS and AM_LDFLAGS.
|
|
include $(top_srcdir)/lib_flags.am
|
|
|
|
LDADD = ${top_builddir}/liblib/libnetcdf.la
|
|
AM_CPPFLAGS += -I$(top_srcdir)/liblib
|
|
AM_CPPFLAGS += -DTOPSRCDIR=${abs_top_srcdir}
|
|
AM_CPPFLAGS += -DTOPBINDIR=${abs_top_bindir}
|
|
|
|
# Set up the tests; do the .sh first, then .c
|
|
check_PROGRAMS =
|
|
TESTS =
|
|
|
|
t_dap3a_SOURCES = t_dap3a.c t_srcdir.h
|
|
test_cvt3_SOURCES = test_cvt.c t_srcdir.h
|
|
test_vara_SOURCES = test_vara.c t_srcdir.h
|
|
|
|
if ENABLE_DAP
|
|
check_PROGRAMS += t_dap3a test_cvt3 test_vara
|
|
TESTS += t_dap3a test_cvt3 test_vara
|
|
TESTS += tst_ncdap3.sh
|
|
|
|
# remote tests are optional
|
|
# because the server may be down or inaccessible
|
|
|
|
if ENABLE_DAP_REMOTE_TESTS
|
|
check_PROGRAMS += findtestserver
|
|
findtestserver_SOURCES = findtestserver.c
|
|
|
|
if BUILD_UTILITIES
|
|
TESTS += tst_remote3.sh tst_formatx.sh
|
|
endif
|
|
|
|
TESTS += test_partvar testurl.sh
|
|
|
|
if ENABLE_DAP_LONG_TESTS
|
|
TESTS += tst_longremote3.sh
|
|
endif
|
|
|
|
test_partvar_SOURCES = test_partvar.c
|
|
test_varm3_SOURCES = test_varm3.c
|
|
test_nstride_cached_SOURCES = test_nstride_cached.c
|
|
|
|
#t_auth_SOURCES = t_auth.c
|
|
t_misc_SOURCES = t_misc.c
|
|
|
|
TESTS += test_varm3
|
|
#TESTS += t_ncf330
|
|
TESTS += test_nstride_cached
|
|
TESTS += t_misc
|
|
|
|
check_PROGRAMS += test_partvar
|
|
check_PROGRAMS += test_nstride_cached
|
|
check_PROGRAMS += t_misc
|
|
check_PROGRAMS += test_varm3
|
|
check_PROGRAMS += t_ncf330
|
|
|
|
if ENABLE_DAP_AUTH_TESTS
|
|
#check_PROGRAMS += t_auth t_auth1
|
|
#TESTS += t_auth
|
|
TESTS += testauth.sh
|
|
endif
|
|
|
|
endif #ENABLE_DAP_REMOTE_TESTS
|
|
|
|
endif #ENABLE_DAP
|
|
|
|
# Need to add subdirs
|
|
SUBDIRS = testdata3 expected3 expectremote3
|
|
|
|
EXTRA_DIST = tst_ncdap3.sh \
|
|
tst_remote3.sh \
|
|
tst_longremote3.sh \
|
|
tst_ncdap.sh tst_ncdap_shared.sh tst_remote.sh \
|
|
t_dap.c CMakeLists.txt tst_formatx.sh testauth.sh testurl.sh \
|
|
t_ncf330.c
|
|
|
|
CLEANFILES = test_varm3 test_cvt3 results/*.dmp results/*.das results/*.dds datadds* t_dap3a test_nstride_cached *.exe
|
|
|
|
# This rule are used if someone wants to rebuild t_dap3a.c
|
|
# Otherwise never invoked, but records how to do it.
|
|
t_dap3a.c: t_dap.c
|
|
echo "#define NETCDF3ONLY" > ./t_dap3a.c
|
|
cat t_dap.c >> t_dap3a.c
|
|
|
|
t_dap4a.c: t_dap.c
|
|
cat t_dap.c >> ./t_dap4a.c
|
|
|
|
# One last thing
|
|
BUILT_SOURCES = .dodsrc
|
|
|
|
.dodsrc:
|
|
echo "#DODSRC" >.dodsrc
|
|
|
|
clean-local: clean-local-check
|
|
|
|
.PHONY: clean-local-check
|
|
|
|
clean-local-check:
|
|
-rm -rf results
|
|
-rm .dodsrc
|
|
|