netcdf-c/ncdap_test/Makefile.am

97 lines
2.2 KiB
Makefile
Raw Normal View History

2010-06-03 21:24:43 +08:00
## This is a automake file, part of Unidata's netCDF package.
# Copyright 2011, see the COPYRIGHT file for more information.
2010-06-03 21:24:43 +08:00
# This file builds and runs DAP tests.
2010-06-03 21:24:43 +08:00
# Put together AM_CPPFLAGS and AM_LDFLAGS.
include $(top_srcdir)/lib_flags.am
2010-06-03 21:24:43 +08:00
LDADD = ${top_builddir}/liblib/libnetcdf.la
2010-06-03 21:24:43 +08:00
AM_CPPFLAGS += -I$(top_builddir)/liblib
# Set up the tests; do the .sh first, then .c
check_PROGRAMS =
TESTS =
2010-12-16 05:45:05 +08:00
TESTS_ENVIRONMENT=TOPSRCDIR=${abs_top_srcdir}
2011-10-09 11:41:37 +08:00
#TESTS += tst_ncdap3.sh
2010-06-03 21:24:43 +08:00
if USE_NETCDF4
TESTS += tst_ncdap4.sh
endif # USE_NETCDF4
# remote tests are optional
# because the server may be down
if ENABLE_DAP_REMOTE_TESTS
TESTS += tst_remote3.sh
if ENABLE_DAP_LONG_TESTS
TESTS += tst_longremote3.sh
endif
if USE_NETCDF4
TESTS += tst_remote4.sh
if ENABLE_DAP_LONG_TESTS
TESTS += tst_longremote4.sh
endif
endif
endif #REMOTE_TESTS
# Do the programmatic tests last; all are part of the remote test set
if ENABLE_DAP_REMOTE_TESTS
# Conversion tests
if USE_NETCDF4
2010-12-16 05:45:05 +08:00
test_cvt4_SOURCES = test_cvt.c
t_dap4_SOURCES = t_dap4.c
check_PROGRAMS += test_cvt4 t_dap4
TESTS += test_cvt4 t_dap4
2010-12-16 05:45:05 +08:00
else
test_cvt3_SOURCES = test_cvt.c
test_vara_SOURCES = test_vara.c
2011-10-07 04:04:06 +08:00
check_PROGRAMS += t_dap3a test_cvt3 test_vara
TESTS += t_dap3a test_cvt3 test_vara
#test_varm3_SOURCES = test_varm3.c
#TESTS += test_varm3
#check_PROGRAMS += test_varm3
2010-06-03 21:24:43 +08:00
endif
t_dap3a_SOURCES = t_dap3a.c
check_PROGRAMS += t_dap3a
TESTS += t_dap3a
2010-06-03 21:24:43 +08:00
endif ENABLE_DAP_REMOTE_TESTS
# Need to add subdirs
SUBDIRS = testdata3 expected3 expected4 expectremote3 expectremote4
EXTRA_DIST = tst_ncdap3.sh tst_ncdap4.sh \
tst_remote3.sh tst_remote4.sh \
tst_longremote3.sh tst_longremote4.sh \
tst_ncdap.sh tst_ncdap_shared.sh tst_remote.sh \
t_dap.c
2010-06-03 21:24:43 +08:00
CLEANFILES = test_varm3 test_cvt3 results/*.dmp results/*.das results/*.dds datadds* t_dap3a
2010-06-03 21:24:43 +08:00
if USE_NETCDF4
CLEANFILES += test_cvt4 t_dap4
2010-06-03 21:24:43 +08:00
endif
# 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
DISTCLEANFILES = .dodsrc