Commit Graph

272 Commits

Author SHA1 Message Date
Wei-keng Liao
dd19b27b44 handle special case when calling _uchar APIs to access NC_BYTE attributes/variables in CDF-2 file format 2016-10-06 00:48:01 -05:00
Ward Fisher
c179cf0c5f Updated cmakelists.txt for the final test failure. 2016-08-31 15:53:34 -06:00
Ward Fisher
486f69522c Merged utility-based tests fix into cmake-based builds. 2016-08-31 15:48:10 -06:00
Ward Fisher
b2e4b74e3a Restricted tests from running when they require the utilities but the utilities were not built, in autoconf-based tests. See https://github.com/Unidata/netcdf-c/issues/313 for more information. 2016-08-31 15:38:59 -06:00
tbeu
eae6d75d47 Test all three files for compatibility 2016-07-18 22:18:42 +02:00
Ward Fisher
2fe943d32e Wiring in test contributed by Greg Sjaardema in support of https://github.com/Unidata/netcdf-c/issues/282 2016-07-12 16:58:49 -06:00
Ward Fisher
5452f7f1ab Added new test to autoconf-based builds and make dist, in support of https://github.com/Unidata/netcdf-c/issues/281 2016-06-30 12:11:05 -06:00
Ward Fisher
46c63344f7 Added comments where needed. 2016-06-14 10:47:24 -06:00
Ward Fisher
1ebb104f74 Tentatively fixed https://github.com/Unidata/netcdf-c/issues/239 but the test needs to be extended. 2016-06-10 17:03:08 -06:00
Ward Fisher
f248ef7714 Merge branch 'master' into gh239 2016-06-10 13:16:10 -06:00
Ward Fisher
b2b8499f53 Got distcheck working, corrected some parallel test logic in cmakelists. 2016-06-09 13:21:28 -06:00
Ward Fisher
ea2e9959f5 Corrected a typo. 2016-06-09 13:08:18 -06:00
Ward Fisher
54b57d0e60 Gave the modified test a unique test file name. 2016-06-09 11:28:03 -06:00
Ward Fisher
2610b58a5d Corrected a typo. 2016-06-09 11:26:06 -06:00
Ward Fisher
10061af1b9 Wiring in parallel test. 2016-06-09 11:23:14 -06:00
Ward Fisher
d3b6512606 Fleshing out test, we now have it failing as one would expect. 2016-06-06 22:10:10 +00:00
Ward Fisher
aae3526b75 Fleshing out the test. 2016-06-06 21:44:38 +00:00
Ward Fisher
0dae521f13 Trying to sort out what's going on with the test. 2016-06-06 15:08:20 -06:00
Ward Fisher
dc1a9c34d8 Added a document to catalog what the various tests are. 2016-06-06 14:51:57 -06:00
Ward Fisher
305f5b352d Corrected an issue with running the hdf4 test. 2016-06-02 14:34:13 -06:00
Ward Fisher
f19749425f Wired hdf4 per-variable test into autoconf. 2016-06-02 14:22:42 -06:00
Ward Fisher
2d0de087fa Fleshed out test script, wired into cmakelists.txt 2016-06-02 14:19:36 -06:00
Ward Fisher
ab43f75416 added blank file for testing that hdf4 file can be read a var at a time. 2016-06-02 14:09:35 -06:00
Dennis Heimbigner
835511eaeb HDF5 is generating unnecessary error messages when netcdf4 logging is enabled
re: github netcdf-c issue #271

This occurs for several reasons, including:
1. using H5Aopen_name instead of H5Aexists to test if attribute exists.
2. using H5Eset_auto instead of H5Eset_auto2.
There are probably others that will have to be extinguished as encountered.
p.s Hope I did not overdo this and kill too much.
2016-05-27 10:08:01 -06:00
Dennis Heimbigner
22a343292a Fix cmake build: 2016-05-24 20:26:09 -06:00
Dennis Heimbigner
c8572f0bee set tst_misc.sh executable 2016-05-24 19:37:21 -06:00
Dennis Heimbigner
8c1f8f57ee re: https://github.com/Unidata/netcdf-c/issues/269
The hash field for phony dimensions was not being set
(in nc4hdf.c). Also added test case (nc_test4/?).
Note that I searched for other similar failures and
did not find any, but I may have missed them.
2016-05-24 19:37:21 -06:00
Dennis Heimbigner
11a259ad86 Add provenance info for netcdf-4 files.
This consists of a persistent attribute named
_NCProperties plus two computed attributes
_IsNetcdf4 and _SuperblockVersion.
See the 'Provenance Attributes' section
of docs/attribute_conventions.md for details.
2016-05-07 14:32:07 -06:00
Ward Fisher
580b4aabe1 Integrated one-line pull request https://github.com/Unidata/netcdf-c/pull/249 2016-04-12 09:30:22 -06:00
Ward Fisher
4b2c9f29dd Wired in test for https://github.com/Unidata/netcdf-c/issues/250 for autotool based builds. 2016-04-08 15:53:17 -06:00
Ward Fisher
493a6e5d62 Found pre-existing call to H5Pset_libver_bounds, modified it so that the generated files would be created without the 1.10 specific things. 2016-04-08 21:36:08 +00:00
Ward Fisher
46b534d060 Roughed in test for checking that a netcdf installation can read specific files written by a netCDF4 library built against libhdf5 1.10.0 2016-04-08 20:58:20 +00:00
Ward Fisher
a75cb302df Removed an error in nc_test4/Makefile.am 2016-02-19 11:06:56 -07:00
Ward Fisher
dde10a7461 Corrected a missing suffix in Makefile.am 2016-02-19 10:52:16 -07:00
Ward Fisher
1affd12fc8 Wired tests for https://github.com/Unidata/netcdf-c/issues/221 into a shell script so that the generated files can be checked easily with ncdump. Added the test and associated files to both cmake and autotools build systems. 2016-02-19 10:16:42 -07:00
Ward Fisher
e2eda755e3 Tweaked empty test to check for limited, unlimited dimensions. Also added a gdb command file for ease of debugging. 2016-02-18 13:59:53 -07:00
Ward Fisher
0eff434098 Renamed test file to be more reflective for what it is doing. 2016-02-16 14:54:10 -07:00
Ward Fisher
4ccad07a6b Have duplicated issue reported in #221 at github. 2016-02-16 14:52:03 -07:00
Ward Fisher
654a6e39e3 Additional work debugging issue. 2016-02-16 14:40:09 -07:00
Ward Fisher
1807cb7aa2 Roughing in a test to create the failure described in https://github.com/Unidata/netcdf-c/issues/221 2016-02-16 11:00:09 -07:00
Ward Fisher
55b24e2964 Added tst_mode to CMakeLists.txt 2016-02-04 19:12:15 +00:00
Dennis Heimbigner
45572f5971 Fix github issue: https://github.com/Unidata/netcdf-c/issues/208
Return an error when specifying deflation (compression) or fletcher32 on
a file created for parallel IO in netcdf-4.
2016-02-01 16:15:58 -07:00
Ward Fisher
427577be8d Merge branch 'gsjaardema-patch-6' into pull-consolidation 2016-01-26 10:10:54 -07:00
Greg Sjaardema
e1696187ec Replace NC_MAX_DIMS with NC_MAX_VAR_DIMS
Same issue as in #197.
2016-01-25 14:55:29 -07:00
Greg Sjaardema
ba7d9c54bd Replace NC_MAX_DIMS with NC_TESTS_MAX_DIMS
Missed this file earlier somehow.  Same situation as fixed in fbc210f
2016-01-25 14:47:52 -07:00
Ward Fisher
fbc210f511 Alternative solution to https://github.com/Unidata/netcdf-c/pull/199 and https://github.com/Unidata/netcdf-c/pull/200. 2016-01-25 14:09:03 -07:00
Ward Fisher
f3cae2e6ce Merge branch 'master' of https://github.com/Unidata/netcdf-c 2016-01-25 11:29:12 -07:00
Greg Sjaardema
04f1231f48 Fix incorrect array size specification
The count and start arrays are dimensioned to NC_MAX_DIMS even though the maximum size should be NDIMS which is set to 3; possibly, the maximum size could be 2 since only indices 0 and 1 are used to access both start and count.  I left it at NDIMS since that matches the number of items in the initialization and is consistent with other uses in the file.
2016-01-22 21:03:48 -07:00
Greg Sjaardema
e13d976e27 Replace NC_MAX_DIMS with correct NC_MAX_VAR_DIMS
The constant NC_MAX_DIMS is used to dimension the `dimids` arrays which are use to retrieve the dimension ids corresponding to the variables dimensions.  By definition, the maximum number of dimension ids is `NC_MAX_VAR_DIMS` as is documented in the `nc_inq_var` documentation:
http://www.unidata.ucar.edu/software/netcdf/netcdf-4/newdocs/netcdf-c/nc_005finq_005fvar.html

dimids   Returned vector of *ndimsp dimension IDs corresponding to the variable dimensions. The caller must allocate enough space for a vector of at least *ndimsp integers to be returned. The maximum possible number of dimensions for a variable is given by the predefined constant NC_MAX_VAR_DIMS. 

Although the default or standard values of NC_MAX_DIMS and NC_MAX_VAR_DIMS are the same, the correct value to be used here is NC_MAX_VAR_DIMS and not NC_MAX_DIMS.  Even though this currently works, it could fail if either NC_MAX_VAR_DIMS or NC_MAX_DIMS is changed and it can also provide an incorrect function usage example that may mislead developers trying to determine the correct usage of the function.
2016-01-22 20:54:52 -07:00
Ward Fisher
bb332ac08a Added a missing file to EXTRA_DIST. 2016-01-13 10:25:18 -07:00