Commit Graph

213 Commits

Author SHA1 Message Date
Wei-keng Liao
9cf01256cf revise sunroutine equal, add equal2 for matched ityep and xtype APIs, and add nc_err_code_name 2016-10-09 22:16:09 -05:00
Wei-keng Liao
ecc851b21c borrow PnetCDF test_put.m4 2016-10-09 22:13:40 -05:00
Wei-keng Liao
aacb3c2e11 borrow PnetCDF test_get.m4 2016-10-09 22:13:30 -05:00
Wei-keng Liao
0eff6cb128 add CDF format checking in hash4 to exclude the NC_BYTE-to-uchar exception fro CDF-5 format 2016-10-08 13:48:22 -05:00
Wei-keng Liao
e1643f9fd8 handle special case when calling _uchar APIs to access NC_BYTE attributes/variables in CDF-2 file format (no NC_ERANGE check) 2016-10-06 00:50:52 -05:00
Wei-keng Liao
f8813bbd04 handle special case when calling _uchar APIs to access NC_BYTE attributes in CDF-2 file format 2016-10-06 00:49:13 -05: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
Greg Sjaardema
2bfd984fad Update testing -- not error if start==size 2016-07-21 09:30:18 -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
baec7157a3 Clean up lingering 'make distcheck' errors. 2016-04-12 09:48:21 -06:00
Ward Fisher
33e43e15f1 Merge branch 'master' into gh240 in preparation for final merge. 2016-04-05 20:28:03 +00:00
Ward Fisher
d8592ef380 Updated tests now that things are passing. Added some true failures to test for as well. 2016-04-05 20:25:49 +00:00
Ward Fisher
829036ab7f Corrected an issue with out-of-source-tree builds, in support of https://github.com/Unidata/netcdf-c/issues/242 2016-04-04 15:27:22 -06:00
Ward Fisher
aa6a3969b7 Included expected failures for netcdf-3 files and nc_inq_type. 2016-03-30 15:03:20 -06:00
Ward Fisher
7adad14ec7 Further fleshing out the test. 2016-03-28 19:19:21 +00:00
Ward Fisher
5a5295406d Updated test. 2016-03-28 19:12:11 +00:00
Ward Fisher
a369ddb0bb Fleshed out test for nc_inq_type 2016-03-28 18:49:56 +00:00
Ward Fisher
93641eb2d6 Refactored types test. 2016-03-28 18:29:47 +00:00
Ward Fisher
69911758a9 Made a small change to ifFail to accomodate PGI compilers. 2016-03-23 16:48:15 -06:00
Ward Fisher
79c021712a Removed generated tests from source control. Ensuring generated files are regenerated if m4 is present. 2016-01-22 12:03:28 -07:00
Ward Fisher
2d25f9b915 Updated CMakeLists to explicitely look for static or shared hdf5 libraries. Required as part of hdf5 1.8.16, and is documented in https://github.com/Unidata/netcdf-c/issues/186 2016-01-07 14:11:44 -07:00
Ward Fisher
023356ba9b Fixed typos. 2015-12-29 12:39:35 -07:00
Ward Fisher
19cfaa9308 A bit of cleaning up for the merge into master. 2015-12-29 11:12:50 -07:00
Ward Fisher
cee769cc1e Converting CHAR_IS_SIGNED over to autoconf-style __CHAR_UNSIGNED__ 2015-12-28 21:27:27 +00:00
Ward Fisher
90541e6c17 Cleanup: Removing temporary tests. 2015-12-28 21:17:25 +00:00
Ward Fisher
8e4a8f4225 Chasing down implicit char cast which rounds a value to 0 when a negative value is cast to a different unsigned type. 2015-12-28 20:24:56 +00:00
Ward Fisher
bd92caa176 More changes towards fixing the issue where the file is read incorrectly. 2015-12-28 17:36:05 +00:00
Ward Fisher
925da14d2a Some additional errors reared up after fixing the main frustrating one. Working towards fixing them. 2015-12-24 01:37:42 +00:00
Ward Fisher
d10688a6fb Issue identified, see https://github.com/Unidata/netcdf-c/issues/159 for specifics. Also see http://stackoverflow.com/questions/10541200/is-the-behaviour-of-casting-a-negative-double-to-unsigned-int-defined-in-the-c-s for some background info that lead me to the fix. 2015-12-23 22:08:13 +00:00
Ward Fisher
3e2a1cc540 Tweaking the test a little bit 2015-12-23 21:29:30 +00:00
Ward Fisher
8e3c7febf3 More tweaks during debugging. 2015-12-23 21:21:57 +00:00
Ward Fisher
bd6f4909cf Captured a conversion error. 2015-12-23 21:17:53 +00:00
Ward Fisher
4d9cb910ca Closer to replicating I think. 2015-12-23 13:00:16 -07:00
Ward Fisher
f83ec50bd0 I think we have this recreated as we would expect. 2015-12-23 19:40:05 +00:00
Ward Fisher
a0de63bcce Additional tweaking of the test. 2015-12-22 23:08:20 +00:00
Ward Fisher
7bf5012481 Duplicating the issue we've observed by forcing an overflow error. 2015-12-22 23:04:16 +00:00
Ward Fisher
5cb4efe02a Tweaked new test. 2015-12-22 15:48:05 -07:00
Ward Fisher
52f0fc8986 Added a test derived from nc_test2 cdf5 test data, for github issue http://github.com/Unidata/netcdf-c/issues/159 2015-12-22 15:44:57 -07:00
Ward Fisher
4055a81b57 Fixed a dangling issue with writing text. 2015-12-22 21:07:30 +00:00
Ward Fisher
b66e37755f Fixed an unsigned-char related issue in test_nc_rename_att. 2015-12-22 13:13:45 -07:00
Ward Fisher
c6fd79dd3a Fixed unsigned char issue in check_atts. 2015-12-22 13:12:31 -07:00
Ward Fisher
92d374cbad Addressed an issue in check_vars when -funsigned-chars 2015-12-22 13:10:09 -07:00
Ward Fisher
60fc0f1181 Fixed an implicit cast in nc2dbl that caused problems when char was unsigned by default. 2015-12-22 13:07:00 -07:00
Ward Fisher
b40f10ee7e nc_test2 is now fixed, but we are seeing issues related to text attributes in nc_test, when -funsigned-char is set in CFLAGS. 2015-12-22 12:59:07 -07:00
Ward Fisher
c0e32ddb80 Fixed text-related range error, now observing value read not expected. 2015-12-22 12:39:16 -07:00
Ward Fisher
f41058c5d4 Fixed range error for signed char test, now we have a range error for nc_get_var_text. 2015-12-22 12:17:00 -07:00
Ward Fisher
2ea988f84d Added a check for signed char. 2015-12-22 12:02:18 -07:00
Ward Fisher
9d4e72e75f Added a test case for bug. 2015-12-22 11:39:24 -07:00
Ward Fisher
612b35a84c Merge branch 'master' into cdf-5, in preparation for merging the CDF-5 functionality into the master branch. This will be the key new feature for netcdf 4.4.0. 2015-11-05 13:40:35 -07:00