2010-06-03 21:24:43 +08:00
|
|
|
## This is a automake file, part of Unidata's netCDF package.
|
2018-12-07 06:47:47 +08:00
|
|
|
# Copyright 2018, see the COPYRIGHT file for more information.
|
2010-06-03 21:24:43 +08:00
|
|
|
|
|
|
|
# This file builds and runs the nctest program, which tests the netCDF
|
|
|
|
# version 2 interface.
|
|
|
|
|
2021-12-24 13:18:56 +08:00
|
|
|
#SH_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
|
|
|
|
#sh_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
|
|
|
|
#LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
|
|
|
|
#TESTS_ENVIRONMENT = export SETX=1;
|
|
|
|
|
2011-05-18 03:14:35 +08:00
|
|
|
# Put together AM_CPPFLAGS and AM_LDFLAGS.
|
|
|
|
include $(top_srcdir)/lib_flags.am
|
|
|
|
|
2018-12-07 06:47:47 +08:00
|
|
|
AM_LDFLAGS += ${top_builddir}/liblib/libnetcdf.la
|
2010-06-03 21:24:43 +08:00
|
|
|
|
|
|
|
# Running nctest results in a file testfile.nc, which is then checked
|
|
|
|
# to make sure it matches testfile_nc.sav, which was generated under
|
|
|
|
# precisely controlled conditions at the netCDF Test Facility,
|
|
|
|
# (located in sub-basement 42 of UCAR Compound 4). testfile_nc.sav was
|
|
|
|
# generated in a pressurized chamber that exactly simulated the
|
|
|
|
# atmosphere on the surface of Mars.
|
|
|
|
EXTRA_DIST = ref_nctest_classic.nc ref_nctest_64bit_offset.nc \
|
2018-02-27 23:36:12 +08:00
|
|
|
compare_test_files.sh CMakeLists.txt
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2017-11-13 02:23:04 +08:00
|
|
|
CLEANFILES = nctest_*.nc test2.nc temp.tmp tst_*.nc \
|
2016-05-04 11:17:06 +08:00
|
|
|
nctest_classic.cdl ref_nctest_classic.cdl
|
2010-06-03 21:24:43 +08:00
|
|
|
|
|
|
|
# Run nctest and the script that compares the output with the
|
|
|
|
# reference file.
|
2010-11-23 00:47:14 +08:00
|
|
|
TESTPROGRAMS = nctest tst_rename
|
2010-06-03 21:24:43 +08:00
|
|
|
check_PROGRAMS = $(TESTPROGRAMS)
|
2022-04-10 03:28:01 +08:00
|
|
|
|
|
|
|
# This test requires that the utilites also be built.
|
|
|
|
if BUILD_UTILITIES
|
2010-06-03 21:24:43 +08:00
|
|
|
TESTS = $(TESTPROGRAMS) compare_test_files.sh
|
2022-04-10 03:28:01 +08:00
|
|
|
# compare_test_files depends on nctest executing first.
|
|
|
|
compare_test_files.log: nctest.log
|
|
|
|
endif
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2017-11-18 01:16:17 +08:00
|
|
|
# Note which tests depend on other tests. Necessary for make -j check.
|
|
|
|
TEST_EXTENSIONS = .sh
|
|
|
|
|
2010-06-03 21:24:43 +08:00
|
|
|
# These are the source files for the nctest program.
|
|
|
|
nctest_SOURCES = add.c add.h atttests.c cdftests.c dimtests.c driver.c \
|
|
|
|
emalloc.c emalloc.h error.c error.h misctest.c rec.c slabs.c testcdf.h \
|
|
|
|
tests.h val.c val.h vardef.c varget.c vargetg.c varput.c varputg.c \
|
|
|
|
vartests.c vputget.c vputgetg.c
|
|
|
|
|
2018-03-29 03:54:05 +08:00
|
|
|
# If valgrind is present, add valgrind targets.
|
|
|
|
@VALGRIND_CHECK_RULES@
|