Wei-keng Liao
87fab92924
match type of a subroutine argument
2016-10-25 13:28:38 -05:00
Wei-keng Liao
d78ec898e5
SCHAR_MAX is 127, not 128
2016-10-25 13:21:54 -05:00
Ward Fisher
b37784ed7f
Corrected parallel tests in support of https://github.com/Unidata/netcdf-c/issues.321
2016-10-24 22:45:15 +00:00
Ward Fisher
1c11fc5d59
More refactoring, pushing to avoid accidental loss.
2016-10-21 19:24:40 +00:00
Ward Fisher
157af11bc2
Refactoring tests to separate out error macros from tests, in support of fixing http://github.com/Unidata/netcdf-c/issues/321
2016-10-21 17:17:39 +00:00
Wei-keng Liao
08afcf1f88
add missing tests from the original netCDF
2016-10-13 13:25:16 -05:00
Wei-keng Liao
6737a38a24
add back a fix for NC_EDIMSIZE
2016-10-13 03:26:08 -05:00
Wei-keng Liao
beac085c7d
more updates due to renaming test_read.c and test_write.c to m4 files
2016-10-13 02:56:50 -05:00
Wei-keng Liao
ac86d8c9fb
Update CMakeLists.txt due to test_read.c and test_write.c have been renamed to m4 files
2016-10-13 02:25:21 -05:00
Wei-keng Liao
3a93d84a67
borrow some m4 files from PnetCDF
2016-10-13 02:17:31 -05:00
Wei-keng Liao
fbbed1f9ff
move ncid check to the first and add varid check before name check
2016-10-13 02:12:26 -05:00
Wei-keng Liao
c4a148e136
type cast (char) before comparison
2016-10-10 00:20:23 -05:00
Wei-keng Liao
835ff7cd1e
make test subroutine return nok, add comments on X_CHAR_MIN and X_CHAR_MAX
2016-10-09 22:18:46 -05:00
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
Ward Fisher
bf02ded6f4
Merge branch 'ncf344' of https://github.com/Unidata/netcdf-c into ncf344
2015-11-02 12:15:19 -07:00
Ward Fisher
acc4993b19
Changes to modified files.
2015-11-02 12:14:19 -07:00
Ward Fisher
f330e6f11a
[NCF-344] Modified addvar test to return 0 when called without an argument. Test doesn't run unless passed a file, but it isn't a failure. The test is run properly through a shell script already.
2015-10-30 17:11:27 +00:00
Ward Fisher
32eee4bbdb
Removed a stray backslash.
2015-10-30 17:01:33 +00:00
Ward Fisher
4e60400275
Changing some cmake infrastructure re: how tests are built.
2015-10-29 19:50:48 +00:00
Ward Fisher
b7a4f1c7b5
Updated tests so that tst_addvar.c is run after tst_pnetcdf.c
2015-10-29 10:27:31 -06:00
Ward Fisher
d8835b7f35
Replaced my test program with one provided by Wei-keng.
2015-10-29 10:07:33 -06:00
Ward Fisher
4fb7dc9092
Corrected usage of nc_open_par
2015-10-28 11:28:55 -06:00
Ward Fisher
a28a1f865a
Corrected usage of nc_open_par
2015-10-28 11:28:30 -06:00
Ward Fisher
07625e39c2
Fixed an MPI error.
2015-10-28 11:27:36 -06:00
Ward Fisher
117708f464
More work on the parallel bug.
2015-10-28 11:26:23 -06:00
Ward Fisher
183d2b3db0
Using a pre-existing file for a new pnetcdf test.
2015-10-28 11:06:49 -06:00
Ward Fisher
ccad3765ca
Adding a new test for a particular pnetcdf bug. See YRZ-543552.
2015-10-28 10:51:53 -06:00
Ward Fisher
390cd7b892
Updated test files.
2015-10-27 12:25:18 -06:00
Ward Fisher
4aca5795ac
Regenerated source files from m4 to make things work on Windows.
2015-10-21 11:27:41 -06:00
Ward Fisher
a359cb6a53
Reverted some of the spelling corrections. Some misspellings were intentional
2015-10-16 14:36:17 -06:00
Ward Fisher
519a56019f
Merge branch 'fix-typos' of https://github.com/tbeu/netcdf-c into tbeu-fix-typos
2015-10-16 14:16:09 -06:00
dmh
39ccdc5ee3
conflicts
2015-10-11 13:43:19 -06:00
dmh
ed57a337ec
add ptrdiff_t checks
2015-10-11 13:35:44 -06:00
Ward Fisher
490198e03c
Cleaned up generated files.
2015-10-09 17:08:46 -06:00
Ward Fisher
76621d3ae2
Regenerated files.
2015-10-09 13:06:41 -06:00
Dennis Heimbigner
554034b712
1. Added temporary work-around for cygwin where
...
AC_CHECK_SIZEOF is not working because anti-virus
will not allow very rapid creation/deletion of a
file with same name.
2. modified some test baselines to attempt to fix
Ward's issue
2015-10-09 10:33:40 -06:00
Dennis Heimbigner
dccbc87d24
1. Added temporary work-around for cygwin where
...
AC_CHECK_SIZEOF is not working because anti-virus
will not allow very rapid creation/deletion of a
file with same name.
2. modified some test baselines to attempt to fix
Ward's issue
2015-10-09 10:14:45 -06:00
dmh
087ae58ffd
cleanup and squash changes vav master
2015-10-09 10:12:11 -06:00
dmh
49597a64af
merge-squash
2015-10-09 10:12:11 -06:00
tbeu
e2820e4d8a
Fix common typos
...
Detected by https://github.com/vlajos/misspell_fixer
2015-08-20 11:42:05 +02:00
Ward Fisher
5349c99e8a
Removed tst_swap4b for now, it is causing difficulties that are proving problematic to work around.
2015-08-17 16:57:31 -06:00
dmh
fab66699d1
Moved libsrc5 to libsrcp
...
because pnetcdf is used for
more than CDF-5 files.
2015-08-14 20:39:56 -06:00
Russ Rew
6a6cbf4005
More clang warnings eliminated.
2015-08-02 17:19:35 -06:00
Ward Fisher
58573722b6
Corrected an issue with the [NCF-338] test, when using an out-of-source build with autotools.
2015-07-31 15:37:01 -06:00
Ward Fisher
95cbe52b37
Additional changes to hopefully get autotools and tst_swap4b working together in service of addressing [NCF-338]
2015-07-28 13:43:15 -06:00
Ward Fisher
2664eca9e5
Wired the refactored tst_swap4b into autotools and cmake.
2015-07-28 12:24:13 -06:00
Ward Fisher
da82e6dbbb
Refactoring of tst_swap4b
2015-07-28 11:14:07 -06:00
Ward Fisher
ac18154e98
Added test for function swap4b.
2015-07-27 15:31:23 -06:00
Ward Fisher
b2bdd83a7f
Added skeleton of new test for [NCF338].
2015-07-27 11:20:44 -06:00
Ward Fisher
64e0d2a44e
Added a new test for h4 endianness. [NCF332]
2015-05-28 17:13:15 -06:00
Ward Fisher
6ed4770e0a
Added a typedef int pid_t for Windows platforms, solves a unix compatibility issue.
2015-05-28 10:14:45 -06:00