Ward Fisher
399a43ae89
Updated nc_test to respect USE_CDF5
2017-09-18 13:24:11 -06:00
Ward Fisher
d2cdc4cb5a
Working on getting cdf5 tests running.
2017-09-15 18:00:28 -06:00
Ward Fisher
c740f47895
Corrected for no CDF5 support.
2017-09-15 17:29:10 -06:00
Ward Fisher
e006ea5e07
Fixed a simple mistake in test organization.
2017-08-11 18:36:44 -06:00
Ward Fisher
85e9aaf368
Wiring in a large test to check against a regression for the issue described in https://github.com/Unidata/netcdf-c/pull/457
2017-08-11 18:18:11 -06:00
Wei-keng Liao
7992242a39
Call nc_close, which calls MPI_File_close, to avoid MPI wraning messages on MPI objects are still allocated.
2017-08-08 16:54:38 -05:00
Greg Sjaardema
1503013e33
Eliminate NC_MAX_VARS|DIMS|ATTRS limits
2017-07-20 09:32:29 -06:00
Ward Fisher
e4f81a1611
Fixed issue on 32-bit systems.
2017-07-05 14:57:12 -06:00
Ward Fisher
12d224eeef
Corrected an issue in support of https://github.com/Unidata/netcdf-c/issues/420
2017-06-09 12:46:37 -06:00
Ward Fisher
b73c81697c
Removed a line in configure.ac that is potentially redundant and throws an error on some systems. In support of https://github.com/Unidata/netcdf-c/issues/413
2017-06-08 12:38:43 -06:00
Ward Fisher
4097dd9826
Change to address issue reported in https://github.com/Unidata/netcdf-c/issues/413
2017-06-08 11:55:00 -06:00
Ward Fisher
f8c7df70b3
Corrected an issue where run_diskless2.sh was not properly configured.
2017-05-10 16:55:47 -06:00
Ward Fisher
051bd3b81a
Merge branch 'master' into open_check_vlens
2017-05-05 17:02:36 -06:00
Ward Fisher
ce20f3bf53
Corrected a build issue on windows for tst_diskless5, and updated release notes.
2017-05-04 10:58:18 -06:00
Dennis Heimbigner
455f3b9976
typo
2017-05-03 10:19:35 -06:00
Dennis Heimbigner
5a0c7abb8f
Add testcase
2017-05-03 09:58:49 -06:00
Ward Fisher
8dddd222a3
Merged master, DAP4 support into branch.
2017-04-19 09:29:35 -06:00
Ward Fisher
b5b99cbebb
Merge branch 'master' into ghpull-375
2017-04-05 16:24:55 -06:00
Dennis Heimbigner
6d8809100f
Fix pull request https://github.com/Unidata/netcdf-c/pull/374 (dap4.dmh)
...
1. When running under windows (as opposed to cygwin)
we need to make sure to not user /cygdrive/ file paths.
This was ocurring in libdap4/d4read.c, but may occur
elsewhere.
2. Shell scripts in the git repo are not being checked-out
with the executable mode set. Had core.filemode set to false.
Was a major hassle to fix.
2017-04-03 21:39:44 -06:00
Wei-keng Liao
1af2643fb8
rename macro ERR to ERR_CHK, as ERR is already defined in err_macros.h
2017-04-03 22:17:36 -05:00
Dennis Heimbigner
5f15c9e777
1) master merge 2)fix uname -o problem
2017-03-30 16:21:31 -06:00
Ward Fisher
45e30475f6
Updated release notes to reflect new return, modified test to check for proper expected return value.
2017-03-29 15:47:48 -06:00
Ward Fisher
92ef49d4ed
Updated release notes.
2017-03-29 15:43:45 -06:00
Ward Fisher
16169a27af
Wiring in test in support of https://github.com/Unidata/netcdf-c/issues/388
2017-03-29 15:25:38 -06:00
Ward Fisher
e5fb53f996
Restored line that was accidentally removed.
2017-03-29 11:38:59 -06:00
Ward Fisher
6b036cfc28
Adding test in support of https://github.com/Unidata/netcdf-c/issues/384
2017-03-29 11:23:47 -06:00
Ward Fisher
2bf5f09bcc
Corrected an issue on *nix systems
2017-03-16 15:13:38 -06:00
Ward Fisher
80d2b914a1
Updates for Visual-Studio-based builds.
2017-03-16 14:34:33 -06:00
Ward Fisher
53c018a3f6
Attempting to fix visual studio errors in support of https://github.com/Unidata/netcdf-c/pull/375
2017-03-13 15:12:47 -06:00
Wei-keng Liao
01cf5f4339
silence warnings from Travis CI
2017-03-11 12:51:04 -06:00
Wei-keng Liao
af258dcec9
update for arm to use char as much as possible, instead of signed char
2017-03-10 12:00:59 -06:00
Ward Fisher
8e3790f7ce
Merged master.
2017-03-09 12:53:28 -07:00
Dennis Heimbigner
3db4f013bf
Primary change: add dap4 support
...
Specific changes:
1. Add dap4 code: libdap4 and dap4_test.
Note that until the d4ts server problem is solved, dap4 is turned off.
2. Modify various files to support dap4 flags:
configure.ac, Makefile.am, CMakeLists.txt, etc.
3. Add nc_test/test_common.sh. This centralizes
the handling of the locations of various
things in the build tree: e.g. where is
ncgen.exe located. See nc_test/test_common.sh
for details.
4. Modify .sh files to use test_common.sh
5. Obsolete separate oc2 by moving it to be part of
netcdf-c. This means replacing code with netcdf-c
equivalents.
5. Add --with-testserver to configure.ac to allow
override of the servers to be used for --enable-dap-remote-tests.
6. There were multiple versions of nctypealignment code. Try to
centralize in libdispatch/doffset.c and include/ncoffsets.h
7. Add a unit test for the ncuri code because of its complexity.
8. Move the findserver code out of libdispatch and into
a separate, self contained program in ncdap_test and dap4_test.
9. Move the dispatch header files (nc{3,4}dispatch.h) to
.../include because they are now shared by modules.
10. Revamp the handling of TOPSRCDIR and TOPBUILDDIR for shell scripts.
11. Make use of MREMAP if available
12. Misc. minor changes e.g.
- #include <config.h> -> #include "config.h"
- Add some no-install headers to /include
- extern -> EXTERNL and vice versa as needed
- misc header cleanup
- clean up checking for misc. unix vs microsoft functions
13. Change copyright decls in some files to point to LICENSE file.
14. Add notes to RELEASENOTES.md
2017-03-08 17:01:10 -07:00
Dennis Heimbigner
47daf33074
Resolves Github issue https://github.com/Unidata/netcdf-c/issues/349 .
...
Update utf8proc.[ch] to use the version now
maintained by the Julia Language project
(https://github.com/JuliaLang/utf8proc/blob/master/LICENSE.md ).
The license for the previous version was
unacceptable for the Debian and Ubuntu release
systems. The new version both updates the code
and addresses the license issue.
It turns out that the utf8proc software we are using
was turned over to the Julia Language developers
and the license terms changed to allow modification.
(https://github.com/JuliaLang/utf8proc/blob/master/LICENSE.md ).
So the fix here is as follows:
1. Wrap the library with a fixed interface: libdispatch/dutf8.c
and include/ncutf8.h.
2. Replace the existing utf8proc code with the new version
from https://github.com/JuliaLang/utf8proc .
3. Add a couple more test cases: nc_test/tst_utf8_validate.c
and nc_test_utf8_phrases.c. If/when I can find a usable
normalization test, I will incorporate that later.
2017-02-16 14:27:54 -07:00
Ward Fisher
9db19d75ec
Found what appears to be the issue in testing attributes. The code was casting a negative double to a char (unsigned, on ARM), resulting in a value of 0 instead of the expected value of -128.
2017-02-14 16:53:38 -07:00
Ward Fisher
047760bbf1
Changing data types to get tests to run on ARM. Once all tests are running (albeit as signed char instead of unsigned char) we can worry about modifying the tests so that what we want to test is what's being tested.
2017-02-14 16:48:52 -07:00
Ward Fisher
50155b0170
More debugging in support of https://github.com/Unidata/netcdf-c/issues/319 .
2017-02-14 12:34:31 -07:00
Ward Fisher
e100aaf6b0
We cannot assume char is signed or unsigned.
2017-02-07 14:20:59 -07:00
Ward Fisher
7a0e61f97c
Corrected first test failure in nc_test. Cannot assume MAX_CHAR is 255, as char is not universally unsigned by default.
2017-02-07 11:41:55 -07:00
Wei-keng Liao
340f0d2a91
Classic Format Specification says: Header padding uses null (\x00) bytes
2016-11-28 11:54:16 -06:00
Wei-keng Liao
ab73a57fca
Merge branch 'master' into issue258
2016-11-25 10:49:03 -06:00
Ward Fisher
b4785f4081
Housekeeping on large file tests.
2016-11-18 15:48:58 -07:00
Wei-keng Liao
33865dfbf8
skip tests that are incompatible with the earlier PnetCDF versions, eg. 1.6.0, 1.6.1 and 1.7.0
2016-11-18 01:29:59 -06:00
Wei-keng Liao
38e40a14d2
sync with PnetCDF nc_test files (add a few more testings)
2016-11-14 11:19:23 -06:00
Wei-keng Liao
2081ae7099
add configure option --enable-relax-coord-bound for issue #243
2016-11-12 23:58:09 -06:00
Wei-keng Liao
e357696c8d
sync with PnetCDF on use of NC_ENULLSTART and NC_ENULLCOUNT
2016-11-04 17:29:40 -05:00
Wei-keng Liao
06c1f744e8
silence gcc compile warnings when using -Wconversion
2016-10-30 00:44:28 -05:00
Wei-keng Liao
04e5ff4c74
sync with master branch
2016-10-28 11:54:25 -05:00
Wei-keng Liao
309303e34e
remove argument fillv for get APIs as we use default fill values for fillv
2016-10-28 10:34:51 -05:00
Wei-keng Liao
f19e4ce81e
sync m4 files with PnetCDF
2016-10-25 15:11:16 -05:00
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