Commit Graph

99 Commits

Author SHA1 Message Date
Ward Fisher
31dee0c4da
Revert "Revert "Fix nczarr-experimental: improve build support, disengage hdf5 vs netcdf4 flags, and find AWS libraries"" 2020-08-17 19:15:47 -06:00
Ward Fisher
16c27ca13f
Revert "Fix nczarr-experimental: improve build support, disengage hdf5 vs netcdf4 flags, and find AWS libraries" 2020-08-17 15:51:01 -06:00
Dennis Heimbigner
d85bb6fe20 The big change for this commit is complete the
disengagement of enable-netcdf4 from enable-hdf5.
That is, with the advent of nczarr, it is possible
to turn off hdf5 but still need netcdf-4 enabled
because nczarr uses libsrc4, but not libhdf5.
This change involves a bunch of things:
1. Modify configure.ac and CMakelist to make enable_hdf5
   control if hdf5 support is provided. For back compatibility,
   disable-netcdf4 is treated as disable-hdf5. But internally,
   netcdf4 support is controlled only by the enabling of formats
   that require it.
2. In support of #1, modify .travis.yml to use enable/disable-hdf5
   instead of enable/disable-netcdf4.
3. test_common.in is modified to track selected features,
   including enable-hdf5 and enable-s3-tests. This is used in
   selected tests that mix netcdf-3 and netcdf4 tests.
4. The conflation of USE_HDF5 and USE_NETCDF4 is common in
   code, tests, and build files, so all of those had to be weeded out.
5. It turns out that some of the NC4_dim functions really are HDF5 specific,
   but are not treated as such. So they are moved from nc4dim.c to
   hdf5dim.c or hdf5dispatch.c
6. Some generic functions in libhdf5 can be (and were) moved to libsrc4.
2020-08-12 15:42:50 -06:00
Ward Fisher
3d669e5817 Turned off hdf4 explicitly when no NetCDF-4 support is available. 2020-01-07 18:04:30 -07:00
Ward Fisher
4cb0aa75a0 Fixing the typo I introduced when fixing the typo. 2020-01-07 12:59:20 -07:00
Ward Fisher
58ab71cd05 Correct a typo. 2020-01-06 15:11:52 -07:00
Ward Fisher
f05fd9afae Addressing some issues in the travis configuration file related to how environmental arguments/values are passed and interpreted. 2019-08-06 15:00:43 -06:00
Ward Fisher
103e5a3ff5
Merge pull request #1385 from Unidata/mmapfix.dmh
Fix cmake wrt mmap
2019-05-02 11:09:12 -06:00
Ward Fisher
31d9826ea8 Added the missing USE_CC invocation for travis. 2019-05-01 10:56:46 -06:00
Dennis Heimbigner
c9d16d82d6 Fix cmake X mmap
supercede PR: https://github.com/Unidata/netcdf-c/pull/1384

Since we have an mmap user, undeprecate it and make sure
it works. Other changes:

* fix test cases to work with make -j
* fix exposed ncgen error.
2019-04-19 20:32:26 -06:00
Ward Fisher
415c19dffe Corrected syntax error. 2019-02-27 16:50:07 -07:00
Ward Fisher
b933a31d0c Some .travis.yml scaffolding. 2019-02-27 13:48:41 -05:00
Ward Fisher
b65bd9fca5 Turning off fortran tests again for now. 2019-01-08 16:40:33 -07:00
Ward Fisher
9b02df9472 Updated travis.yml to enable filter testing as part of the travis CI tests. 2018-10-02 17:41:52 -06:00
Ward Fisher
82c9788bb8 Correcting #1057, also adding fortran tests to travis-ci for the time being. 2018-07-11 13:30:53 -06:00
Ward Fisher
246b56dedd
Revert "fix cdf5 configure option" 2018-06-29 14:23:40 -06:00
Wei-keng Liao
a2a33b3a53 cmake boolean type is ON or OFF, not TRUE or FALSE 2018-06-28 15:43:20 -05:00
Ward Fisher
7d6f1f827d Noticed a missing '-e' 2018-05-10 16:03:24 -06:00
Ward Fisher
7c582ea7e2 Noticed a missing '-e' 2018-05-10 15:57:56 -06:00
Ward Fisher
3ba5acec5c Attempt to fix travis failure. 2018-05-10 15:34:21 -06:00
Ward Fisher
d727a94f4d Explicitly turn off cp on ubuntu images. 2018-05-10 14:53:29 -06:00
Ward Fisher
09ed08ce56 Tighten up the travis script. 2018-05-09 15:27:31 -06:00
Ward Fisher
3f72d34159 Another tweak. 2018-05-09 14:50:50 -06:00
Ward Fisher
f05d4d6399 Travis tweak. 2018-05-09 14:43:20 -06:00
Ward Fisher
90f2ef5e21 Tweaking docker run_serial script to accomdate older versions of git packaged with centos and fedora, but without incurring the penalty for ubuntu and other distros which ship with a new git that can handle cloning a shallow copy. 2018-05-09 14:15:27 -06:00
Ward Fisher
21f4b5f18b Removed clang based tests to speed up Travis CI. 2018-05-03 17:10:33 -06:00
Ward Fisher
769ccc6b58 Added centos, fedora to travis. 2018-05-03 16:59:37 -06:00
Ward Fisher
c8b5a13abd Forgot that cdf5 doesn't work on 32 bit platforms currently, disabled in travis. 2017-12-20 13:05:04 -07:00
Ward Fisher
a367ab9ef7 Turned CDF5 on for travis tests. 2017-12-19 13:53:16 -07:00
Ward Fisher
2e45037e08 Push the limits of parallel test. 2017-12-07 16:30:31 -07:00
Ward Fisher
9229e41e10 Updated travis config file with 4 processors. 2017-12-07 15:46:07 -07:00
Ward Fisher
4a1ff04f84 Dial down to serial ci tests to make sure the issue is parallel related. 2017-12-06 16:11:54 -07:00
Ward Fisher
c42bbd0ea2 Removed old file, updated travis file to allow for tests to run in parallel. 2017-12-05 12:17:40 -07:00
Ward Fisher
7e084c2aa6 Restored blocklist for travis, added another suffix. 2017-12-01 13:42:50 -07:00
Dennis Heimbigner
4db4393e69 Begin changing over to use strlcat instead of strncat because
strlcat provides better protection against buffer overflows.

Code is taken from the FreeBSD project source code. Specifically:
https://github.com/freebsd/freebsd/blob/master/lib/libc/string/strlcat.c
License appears to be acceptable, but needs to be checked by e.g. Debian.

Step 1:
1. Add to netcdf-c/include/ncconfigure.h to use our version
   if not already available as determined by HAVE_STRLCAT in config.h.
2. Add the strlcat code to libdispatch/dstring.c
3. Turns out that strlcat was already defined in several places.
   So remove it from:
	ncgen3/genlib.c
	ncdump/dumplib.c
3. Define strlcat extern definition in ncconfigure.h.
4. Modify following directories to use strlcat:
	libdap2 libdap4 ncdap_test dap4_test
   Will do others in subsequent steps.
2017-11-23 10:55:24 -07:00
Dennis Heimbigner
bf560c2013 fix regexp 2017-11-02 13:39:13 -06:00
Dennis Heimbigner
6214bc6a06 travistest 2017-11-02 13:37:21 -06:00
Ward Fisher
4111dcfe9e Propegated autoconf options in travis.yml 2016-10-24 17:21:15 -06:00
Ward Fisher
6198af95ad Turned of netcdf-4 where appropriate for AC checks. 2016-08-18 11:21:19 -06:00
Ward Fisher
69c70e487f Further refinement. 2016-08-10 09:50:36 -06:00
Ward Fisher
5204c3728f Carrying cmake options into autotools based builds. 2016-08-10 09:40:15 -06:00
Ward Fisher
bd3450676a Added NC3-only build to travis-ci. 2016-05-05 13:44:32 -06:00
Ward Fisher
2a9e49d0f9 Updated .travis.yml to include distcheck, perply this time. 2016-04-15 11:23:13 -06:00
Ward Fisher
93afd48624 Added distcheck to travis-ci test matrix. 2016-04-13 15:27:17 -06:00
Dennis Heimbigner
39e9cd0ffe Fix issues with Github pull request 187
(https://github.com/Unidata/netcdf-c/pull/187)
Primary problem was cmake build errors.
2016-01-08 12:55:11 -07:00
Ward Fisher
6c415b4ac9 Turned off CDash dashboard submission in travis-ci, as it's currently timing out causing a false-negative for travis-ci. 2015-12-31 15:01:17 -07:00
Ward Fisher
86ecb2c5a1 Trying to add signed/unsigned char tests. 2015-12-29 15:29:29 -07:00
Ward Fisher
30d2b09374 Putting travis configuration back the way it was for now. 2015-12-24 17:58:52 +00:00
Ward Fisher
9e5c03bdc0 Updated travis.yml 2015-12-24 17:21:13 +00:00
Ward Fisher
fce2f87a3c Updated travis to test both signed and unsigned chars. 2015-12-24 16:58:19 +00:00