Commit Graph

484 Commits

Author SHA1 Message Date
Ed Hartnett
843db9798f finally got my distcheck act together by moving hdf4 file test to nc_test4 2017-11-23 04:41:03 -07:00
Ed Hartnett
0c7684b1ac removed tst_filters from CMake build 2017-11-22 12:42:59 -07:00
Ed Hartnett
2b3e1b1c86 trying to get cmake build to work 2017-11-22 10:21:51 -07:00
Ed Hartnett
d64550d3f0
Merge branch 'master' into ejh_notbuilt_errors 2017-11-22 17:14:24 +00:00
Ed Hartnett
74a895a394 fixed copy of HDF4 file in CMake build with nc_test/tst_formats.c 2017-11-22 09:52:40 -07:00
Ed Hartnett
365bd0cef2 added new test to CMake build 2017-11-22 08:26:53 -07:00
Ed Hartnett
845355e91b added hdf4 test for inq_format calls 2017-11-22 08:21:24 -07:00
Ed Hartnett
d4495e8e86 more testing 2017-11-22 07:46:03 -07:00
Ed Hartnett
b5ed095f36 makefile cleanup 2017-11-22 07:05:10 -07:00
Ed Hartnett
70c739858b fixed SEGFAULT for NULL parameter for nc_inq_format(), added testing, improved documentation 2017-11-22 06:53:23 -07:00
Ward Fisher
2ab3e56747 Added error message for new error NC_ENULLPAD. [skip ci] 2017-11-20 17:31:08 -07:00
Ed Hartnett
eecade6af9
Merge branch 'master' into ejh_notbuilt_errors 2017-11-18 21:24:11 +00:00
Ed Hartnett
03753c0344 now return NC_ENOTBUILT for not built library features 2017-11-13 08:09:15 -07:00
Ed Hartnett
ca49633a64
Merge branch 'master' into ejh_fix_test 2017-11-10 02:43:32 -07:00
Ed Hartnett
4f7fb907f6 removed unused files 2017-11-08 04:13:03 -07:00
Ed Hartnett
d4c1fd5d80
Merge branch 'master' into ejh_delete_ncx 2017-11-07 18:35:05 -07:00
Ward Fisher
b92ae0cdbc Merge branch 'ejh_fix_use_cdf' of https://github.com/NetCDF-World-Domination-Council/netcdf-c into more_ejh_pulls 2017-11-07 14:14:10 -07:00
Ed Hartnett
59217fe8ac cleaned up, fixed comments 2017-11-06 06:19:34 -07:00
Ed Hartnett
f8c77f0692 refurbished tst_cdf5format.c 2017-11-06 05:35:34 -07:00
Ed Hartnett
b40e5d32f0
Merge branch 'master' into ejh_delete_ncx 2017-11-05 10:08:26 -07:00
Ed Hartnett
c920f48c49 fixed ENABLE_CDF5 issue in some tests 2017-11-05 09:08:39 -07:00
Ed Hartnett
6ce15853d6 fixed ENABLE_CDF5 issue in some tests 2017-11-05 09:06:48 -07:00
Ward Fisher
1bd71f0375 Merge remote-tracking branch 'origin/testp2.dmh' into dmh_multi_merge 2017-11-03 12:42:12 -06:00
Ward Fisher
f98635be1b Merge remote-tracking branch 'origin/h5offset.dmh' into dmh_multi_merge 2017-11-03 12:40:52 -06:00
Ward Fisher
91865a3cbc Merge branch 'NC_MAX_VAR_DIMS' of https://github.com/wkliao/netcdf-c into multi-merge 2017-11-02 11:20:54 -06:00
Ed Hartnett
c71e4dde09 removed historic file no longer used: nc_test/ncx.c 2017-11-01 05:09:29 -06:00
Ward Fisher
d7f0919c12
Merge branch 'master' into NC_MAX_VAR_DIMS 2017-10-31 14:06:41 -06:00
Ward Fisher
2987fb0bed
Merge branch 'master' into master 2017-10-31 14:01:08 -06:00
Ward Fisher
1acafdc668 Updated in support of https://github.com/Unidata/netcdf-c/issues/556 2017-10-31 11:13:05 -06:00
Ed Hartnett
78a44214aa
Merge branch 'master' into ejh_file_mem 2017-10-30 07:35:39 -06:00
Dennis Heimbigner
261ed4c99d Merge branch 'master' into h5offset.dmh 2017-10-27 12:33:17 -06:00
Dennis Heimbigner
682ad6a463
Merge branch 'master' into testp2.dmh 2017-10-27 11:17:39 -06:00
Ed Hartnett
433a2a6e36 fixed leaks in tests 2017-10-26 14:50:21 -06:00
Ward Fisher
bacdef88fe Merge branch 'master' into NC_MAX_VAR_DIMS 2017-10-26 14:31:22 -06:00
Ed Hartnett
5fba557bdf fixed leak in tst_utf8_validate.c 2017-10-26 14:28:41 -06:00
Ward Fisher
3247b637b7 Merge remote-tracking branch 'origin/testp2.dmh' into ejh_more_merges 2017-10-26 14:26:32 -06:00
Dennis Heimbigner
d9b60fef03 change to use Wei-kings' solution 2017-10-25 13:07:17 -06:00
Ward Fisher
5d4b81af8f Merge branch 'ejh_nc_test_warning_fix_2' of https://github.com/NetCDF-World-Domination-Council/netcdf-c into merge_small_pulls 2017-10-25 11:13:38 -06:00
Ed Hartnett
50408acec0 fixed more warnings 2017-10-25 06:22:58 -06:00
Ed Hartnett
fb4437e584 fixed warnings 2017-10-25 06:12:59 -06:00
Dennis Heimbigner
ea9d685a7b Modify nc_test/tst_parallel2.c to remove a failure.
The failure comes at the end when each processor tries to
remove() the created file. The second one appears to fail
-- possibly because of a race condition. In any case, if I
move the remove() call past MPI_Finalize(), the error goes away.

It is not clear of the exact circumstances that cause the
failure, but I encountered it with the following env.
- automake on centos7 64-bit.
- compiling with -O1 for gcc.
- The pnetcdf version is 1.8.1
- The command "mpiexec --version" gives:
  Version: 3.0.4
  Release Date: Wed Apr 24 10:08:10CDT2013
2017-10-24 19:12:07 -06:00
Dennis Heimbigner
9983b9d911 re e-support UBS-599337
re pull request https://github.com/Unidata/netcdf-c/pull/405
re pull request https://github.com/Unidata/netcdf-c/pull/446

Notes:
1. This branch is a cleanup of the magic.dmh branch.
2. magic.dmh was originally merged, but caused problems with parallel IO.
   It was re-issued as pull request https://github.com/Unidata/netcdf-c/pull/446.
3. This branch + pull request replace any previous pull requests and magic.dmh branch.

Given an otherwise valid netCDF file that has a corrupted header,
the netcdf library currently crashes. Instead, it should return
NC_ENOTNC.

Additionally, the NC_check_file_type code does not do the
forward search required by hdf5 files. It currently only looks
at file position 0 instead of 512, 1024, 2048,... Also, it turns
out that the HDF4 magic number is assumed to always be at the
beginning of the file (unlike HDF5).
The change is localized to libdispatch/dfile.c See
https://support.hdfgroup.org/release4/doc/DSpec_html/DS.pdf

Also, it turns out that the code in NC_check_file_type is duplicated
(mostly) in the function libsrc4/nc4file.c#nc_check_for_hdf.

This branch does the following.
1. Make NC_check_file_type return NC_ENOTNC instead of crashing.
2. Remove nc_check_for_hdf and centralize all file format checking
   NC_check_file_type.
3. Add proper forward search for HDF5 files (but not HDF4 files)
   to look for the magic number at offsets of 0, 512, 1024...
4. Add test tst_hdf5_offset.sh. This tests that hdf5 files with
   an offset are properly recognized. It does so by prefixing
   a legal file with some number of zero bytes: 512, 1024, etc.
5. Off-topic: Added -N flag to ncdump to force a specific output dataset name.
2017-10-24 16:25:09 -06:00
Dennis Heimbigner
c8b2184409 Fix dap4 related warnings in https://github.com/Unidata/netcdf-c/issues/501.
The nc_test/util.c error is a typo. The libdap4/d4meta.c error only is shown
when using a 64 bit machine because then |size_t| == 64 bits
and |int| = 32bits.
2017-10-20 21:17:12 -06:00
Wei-keng Liao
fa77d51c30 change ENABLE_CDF5 to USE_CDF5 2017-10-20 10:16:19 -05:00
Wei-keng Liao
faa01cf1af add condition check for CDF5 2017-10-19 16:42:22 -05:00
Wei-keng Liao
8dc83d4e48 utr8proc has legalized two code positions 2017-10-19 12:37:00 -05:00
Ward Fisher
9e240e6c9a Modified t_nc.c to only test cdf5 if it has been enabled. 2017-10-16 11:19:24 -06:00
Ward Fisher
61f628b988 reverted test. 2017-10-06 12:58:49 -06:00
Greg Sjaardema
9964cee7cd Merge branch 'master' into master 2017-09-26 11:06:04 -06:00
Wei-keng Liao
2cc30c16be check against NC_MAX_VAR_DIMS (but using NC_EMAXDIMS, maybe a new error code NC_EMAXVARDIMS is needed) 2017-09-21 12:37:33 -05:00
Ward Fisher
223b1f968a Updated tst_small 2017-09-18 15:08:49 -06:00
Ward Fisher
399a43ae89 Updated nc_test to respect USE_CDF5 2017-09-18 13:24:11 -06:00
Wei-keng Liao
85c3222de0 run tst_large_cdf5 and tst_cdf5_begin only when LARGE_FILE_TESTS is enabled 2017-09-16 19:15:09 -05:00
Wei-keng Liao
f7ee463119 disable CDF5 tests when size_t is less than 8 bytes 2017-09-16 17:35:52 -05:00
Wei-keng Liao
e67cbed81c forgot to add run_cdf5.sh to EXTRA_DIST 2017-09-16 15:22:59 -05:00
Wei-keng Liao
e397001bfe add another test program to check if a CDF-5 file has a corrupted header 2017-09-16 14:30:09 -05:00
Wei-keng Liao
f00c43fc04 add a test program to read a CDF-5 file with a corrupted header 2017-09-16 14:04:39 -05: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
Wei-keng Liao
b47180c5be fix error reporting 2017-09-08 02:41:06 -05:00
Wei-keng Liao
2f239d34df add test program, tst_err_enddef.c 2017-09-07 20:29:40 -05: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
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