2010-06-03 21:24:43 +08:00
|
|
|
## This is a automake file, part of Unidata's netCDF package.
|
2011-05-18 03:14:35 +08:00
|
|
|
# Copyright 2011, see the COPYRIGHT file for more information.
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2011-05-18 03:14:35 +08:00
|
|
|
# This file builds and runs DAP tests.
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
# This will not work until we get a new remotetest server set up
|
|
|
|
|
2011-05-18 03:14:35 +08:00
|
|
|
# Put together AM_CPPFLAGS and AM_LDFLAGS.
|
|
|
|
include $(top_srcdir)/lib_flags.am
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2017-07-16 10:21:24 +08:00
|
|
|
#LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
|
|
|
|
#TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
|
2017-07-16 04:32:21 +08:00
|
|
|
|
2015-05-09 04:27:19 +08:00
|
|
|
LDADD = ${top_builddir}/liblib/libnetcdf.la
|
2017-03-09 08:01:10 +08:00
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/liblib
|
|
|
|
AM_CPPFLAGS += -DTOPSRCDIR=${abs_top_srcdir}
|
|
|
|
AM_CPPFLAGS += -DTOPBINDIR=${abs_top_bindir}
|
2010-06-03 21:24:43 +08:00
|
|
|
|
|
|
|
# Set up the tests; do the .sh first, then .c
|
2015-05-09 04:27:19 +08:00
|
|
|
check_PROGRAMS =
|
|
|
|
TESTS =
|
2010-12-16 05:45:05 +08:00
|
|
|
|
2017-01-19 12:46:47 +08:00
|
|
|
t_dap3a_SOURCES = t_dap3a.c t_srcdir.h
|
2017-03-09 08:01:10 +08:00
|
|
|
test_cvt3_SOURCES = test_cvt.c t_srcdir.h
|
|
|
|
test_vara_SOURCES = test_vara.c t_srcdir.h
|
2014-03-09 11:41:30 +08:00
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
if ENABLE_DAP
|
2015-05-09 04:27:19 +08:00
|
|
|
check_PROGRAMS += t_dap3a test_cvt3 test_vara
|
2014-03-09 11:41:30 +08:00
|
|
|
TESTS += t_dap3a test_cvt3 test_vara
|
2017-03-09 08:01:10 +08:00
|
|
|
TESTS += tst_ncdap3.sh
|
2014-03-09 11:41:30 +08:00
|
|
|
|
2010-06-03 21:24:43 +08:00
|
|
|
# remote tests are optional
|
2011-11-14 12:20:19 +08:00
|
|
|
# because the server may be down or inaccessible
|
|
|
|
|
2010-06-03 21:24:43 +08:00
|
|
|
if ENABLE_DAP_REMOTE_TESTS
|
2017-03-09 08:01:10 +08:00
|
|
|
check_PROGRAMS += findtestserver
|
|
|
|
findtestserver_SOURCES = findtestserver.c
|
2017-01-19 12:46:47 +08:00
|
|
|
|
2016-09-01 05:38:59 +08:00
|
|
|
if BUILD_UTILITIES
|
2017-07-15 06:38:50 +08:00
|
|
|
TESTS += tst_ber.sh tst_remote3.sh tst_formatx.sh
|
2016-09-01 05:38:59 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
TESTS += test_partvar testurl.sh
|
2010-06-03 21:24:43 +08:00
|
|
|
|
|
|
|
if ENABLE_DAP_LONG_TESTS
|
2011-11-14 12:20:19 +08:00
|
|
|
TESTS += tst_longremote3.sh
|
2010-06-03 21:24:43 +08:00
|
|
|
endif
|
|
|
|
|
2012-03-15 07:26:48 +08:00
|
|
|
test_partvar_SOURCES = test_partvar.c
|
2017-03-09 08:01:10 +08:00
|
|
|
test_varm3_SOURCES = test_varm3.c
|
|
|
|
test_nstride_cached_SOURCES = test_nstride_cached.c
|
|
|
|
|
2014-12-27 03:27:54 +08:00
|
|
|
#t_auth_SOURCES = t_auth.c
|
2014-01-21 07:11:45 +08:00
|
|
|
t_misc_SOURCES = t_misc.c
|
2012-05-16 01:48:27 +08:00
|
|
|
|
2014-03-13 10:09:01 +08:00
|
|
|
TESTS += test_varm3
|
2015-05-16 06:08:48 +08:00
|
|
|
#TESTS += t_ncf330
|
2013-04-24 04:18:16 +08:00
|
|
|
TESTS += test_nstride_cached
|
2014-01-21 07:11:45 +08:00
|
|
|
TESTS += t_misc
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2014-03-09 11:41:30 +08:00
|
|
|
check_PROGRAMS += test_partvar
|
2013-04-24 04:18:16 +08:00
|
|
|
check_PROGRAMS += test_nstride_cached
|
2014-01-21 07:11:45 +08:00
|
|
|
check_PROGRAMS += t_misc
|
2014-03-13 10:09:01 +08:00
|
|
|
check_PROGRAMS += test_varm3
|
2015-05-09 04:27:19 +08:00
|
|
|
check_PROGRAMS += t_ncf330
|
2014-03-08 03:04:38 +08:00
|
|
|
|
|
|
|
if ENABLE_DAP_AUTH_TESTS
|
2014-12-25 01:22:47 +08:00
|
|
|
#check_PROGRAMS += t_auth t_auth1
|
|
|
|
#TESTS += t_auth
|
|
|
|
TESTS += testauth.sh
|
2014-03-08 03:04:38 +08:00
|
|
|
endif
|
|
|
|
|
2011-11-14 12:20:19 +08:00
|
|
|
endif #ENABLE_DAP_REMOTE_TESTS
|
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
endif #ENABLE_DAP
|
|
|
|
|
2010-06-03 21:24:43 +08:00
|
|
|
# Need to add subdirs
|
2017-02-22 06:13:37 +08:00
|
|
|
SUBDIRS = testdata3 expected3 expectremote3
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2017-02-22 06:13:37 +08:00
|
|
|
EXTRA_DIST = tst_ncdap3.sh \
|
|
|
|
tst_remote3.sh \
|
|
|
|
tst_longremote3.sh \
|
2011-05-13 01:51:32 +08:00
|
|
|
tst_ncdap.sh tst_ncdap_shared.sh tst_remote.sh \
|
2015-05-09 04:27:19 +08:00
|
|
|
t_dap.c CMakeLists.txt tst_formatx.sh testauth.sh testurl.sh \
|
2017-07-16 05:39:34 +08:00
|
|
|
t_ncf330.c tst_ber.sh
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
CLEANFILES = test_varm3 test_cvt3 results/*.dmp results/*.das results/*.dds datadds* t_dap3a test_nstride_cached *.exe
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2011-05-13 01:51:32 +08:00
|
|
|
# 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
|
|
|
|
|
|
|
|
# One last thing
|
|
|
|
BUILT_SOURCES = .dodsrc
|
|
|
|
|
|
|
|
.dodsrc:
|
|
|
|
echo "#DODSRC" >.dodsrc
|
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
clean-local: clean-local-check
|
|
|
|
|
|
|
|
.PHONY: clean-local-check
|
|
|
|
|
|
|
|
clean-local-check:
|
|
|
|
-rm -rf results
|
|
|
|
-rm .dodsrc
|
|
|
|
|