2010-06-03 21:24:43 +08:00
|
|
|
## This is a automake file, part of Unidata's netCDF package.
|
|
|
|
# Copyright 2005, see the COPYRIGHT file for more information.
|
|
|
|
|
|
|
|
# This file builds and runs the nctest program, which tests the netCDF
|
|
|
|
# version 2 interface.
|
|
|
|
|
|
|
|
# One of the tests needs the math library for some reason.
|
|
|
|
LDADD = -lm
|
2010-06-04 04:22:55 +08:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/liblib @EXTERN_CPPFLAGS@
|
2011-05-12 01:09:12 +08:00
|
|
|
AM_LDFLAGS = ${top_builddir}/liblib/libnetcdf.la # @EXTERN_LDFLAGS@
|
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 \
|
|
|
|
compare_test_files.sh
|
|
|
|
|
|
|
|
CLEANFILES = nctest_classic.nc nctest_64bit_offset.nc \
|
2010-11-30 06:23:16 +08:00
|
|
|
nctest_netcdf4.nc test2.nc temp.tmp tst_*.nc
|
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)
|
|
|
|
TESTS = $(TESTPROGRAMS) compare_test_files.sh
|
|
|
|
|
2010-11-30 06:23:16 +08:00
|
|
|
# This will the test program with valgrind, the memory checking
|
|
|
|
# tool. (Valgrind must be present for this to work.)
|
2010-12-07 03:37:35 +08:00
|
|
|
if EXTRA_TESTS
|
2010-11-30 06:23:16 +08:00
|
|
|
if USE_VALGRIND_TESTS
|
|
|
|
TESTS += run_valgrind_tests.sh
|
|
|
|
endif # USE_VALGRIND_TESTS
|
2010-12-07 03:37:35 +08:00
|
|
|
endif # EXTRA_TESTS
|
2010-11-30 06:23:16 +08:00
|
|
|
|
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
|
|
|
|
|