2017-03-09 08:01:10 +08:00
|
|
|
## This is a automake file, part of Unidata's netCDF package.
|
2020-12-17 11:48:02 +08:00
|
|
|
# Copyright 2018v, see the COPYRIGHT file for more information.
|
2017-03-09 08:01:10 +08:00
|
|
|
|
2020-12-17 11:48:02 +08:00
|
|
|
# This file builds and runs DAP tests.
|
2017-03-09 08:01:10 +08:00
|
|
|
|
|
|
|
# Put together AM_CPPFLAGS and AM_LDFLAGS.
|
|
|
|
include $(top_srcdir)/lib_flags.am
|
2022-10-19 04:27:12 +08:00
|
|
|
LDADD = ${top_builddir}/liblib/libnetcdf.la
|
2017-03-09 08:01:10 +08:00
|
|
|
|
2020-12-17 11:48:02 +08:00
|
|
|
# Un comment to use a more verbose test driver
|
2018-09-05 01:27:47 +08:00
|
|
|
#SH_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
|
2018-06-27 03:58:45 +08:00
|
|
|
#LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
|
2020-12-17 11:48:02 +08:00
|
|
|
#TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
|
2022-03-16 05:33:13 +08:00
|
|
|
#TESTS_ENVIRONMENT = export SETX=1;
|
2020-12-17 11:48:02 +08:00
|
|
|
|
|
|
|
# Note which tests depend on other tests. Necessary for make -j check.
|
|
|
|
TEST_EXTENSIONS = .sh
|
2018-11-21 23:26:21 +08:00
|
|
|
|
2022-10-19 04:27:12 +08:00
|
|
|
|
2020-12-17 11:48:02 +08:00
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/liblib
|
2021-01-07 04:35:59 +08:00
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/libdap4
|
2020-12-17 11:48:02 +08:00
|
|
|
AM_CPPFLAGS += -DTOPSRCDIR=${abs_top_srcdir}
|
2022-05-10 02:10:53 +08:00
|
|
|
AM_CPPFLAGS += -DTOPBINDIR=${abs_top_builddir}
|
2017-03-09 08:01:10 +08:00
|
|
|
|
|
|
|
# Set up the tests; do the .sh first, then .c
|
|
|
|
check_PROGRAMS =
|
|
|
|
TESTS =
|
|
|
|
|
2021-01-07 04:35:59 +08:00
|
|
|
check_PROGRAMS += test_parse test_meta test_data
|
|
|
|
|
2020-12-17 11:48:02 +08:00
|
|
|
noinst_PROGRAMS =
|
2020-05-31 07:36:25 +08:00
|
|
|
|
2021-01-07 04:35:59 +08:00
|
|
|
TESTS += test_parse.sh test_meta.sh test_data.sh test_fillmismatch.sh test_raw.sh
|
|
|
|
|
|
|
|
# Note tst_curlopt.sh is intended to be run manually; see comments in file.
|
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
# Note: This program name was changed to findtestserver4
|
|
|
|
# to avoid cmake complaint about duplicate targets.
|
2020-05-31 07:36:25 +08:00
|
|
|
noinst_PROGRAMS += findtestserver4 pingurl4
|
2017-03-09 08:01:10 +08:00
|
|
|
findtestserver4_SOURCES = findtestserver4.c
|
2020-01-01 06:42:58 +08:00
|
|
|
pingurl4_SOURCES = pingurl4.c
|
2021-01-07 04:35:59 +08:00
|
|
|
|
|
|
|
# Disable Dap4 Remote Tests until the test server is working
|
|
|
|
if ENABLE_DAP_REMOTE_TESTS
|
2017-03-09 08:01:10 +08:00
|
|
|
if BUILD_UTILITIES
|
|
|
|
# relies on ncdump
|
2021-05-22 10:46:56 +08:00
|
|
|
TESTS += test_hyrax.sh test_thredds.sh
|
2021-01-15 12:39:08 +08:00
|
|
|
if AX_IGNORE
|
2018-11-22 08:54:29 +08:00
|
|
|
TESTS += test_remote.sh
|
2017-03-09 08:01:10 +08:00
|
|
|
endif
|
|
|
|
endif
|
2021-01-07 04:35:59 +08:00
|
|
|
endif
|
2018-11-21 23:34:22 +08:00
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
EXTRA_DIST = test_parse.sh test_meta.sh test_data.sh \
|
2021-05-22 10:46:56 +08:00
|
|
|
test_raw.sh test_remote.sh test_hyrax.sh test_thredds.sh test_fillmismatch.sh \
|
2018-08-27 07:04:46 +08:00
|
|
|
tst_curlopt.sh d4test_common.sh \
|
2018-10-02 05:51:43 +08:00
|
|
|
daptestfiles dmrtestfiles cdltestfiles nctestfiles misctestfiles \
|
2021-05-22 10:46:56 +08:00
|
|
|
baseline baselineraw baselineremote baselinehyrax baselinethredds CMakeLists.txt test_common.h
|
2017-03-09 08:01:10 +08:00
|
|
|
|
|
|
|
CLEANFILES = *.exe
|
2017-11-24 01:55:24 +08:00
|
|
|
# This should only be left behind if using parallel io
|
|
|
|
CLEANFILES += tmp_*
|
2022-07-13 05:19:07 +08:00
|
|
|
CLEANFILES += ${execdir}/baselinethredds/GOES16_CONUS_20170821_020218_0.47_1km_33.3N_91.4W.nc4.thredds
|
|
|
|
|
2020-01-23 19:40:37 +08:00
|
|
|
DISTCLEANFILES = findtestserver4.c pingurl4.c
|
2018-09-05 01:27:47 +08:00
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
# One last thing
|
|
|
|
BUILT_SOURCES = .daprc
|
|
|
|
|
|
|
|
.daprc:
|
|
|
|
echo "#DAPRC" >.daprc
|
|
|
|
|
|
|
|
clean-local: clean-local-check
|
|
|
|
|
|
|
|
.PHONY: clean-local-check
|
|
|
|
|
|
|
|
clean-local-check:
|
2021-05-22 10:46:56 +08:00
|
|
|
-rm -rf results results_test_*
|
2017-03-09 08:01:10 +08:00
|
|
|
-rm -f .dodsrc .daprc
|
|
|
|
|
|
|
|
# The shell file maketests.sh is used to build the testdata
|
|
|
|
# for dap4 testing. It creates and fills the directories
|
|
|
|
# daptestfiles, dmrtestfiles, and cdltestfiles
|
|
|
|
# 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
|