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
Ward Fisher
0c30751b58
Updated automake file so that 'make distcheck' would pass.
2015-05-18 12:21:40 -06:00
Ward Fisher
fa1d61b980
Additional debugging for [NCF-331]
2015-05-12 13:52:52 -06:00
Ward Fisher
c366bec8b3
Activated a couple new tests on MSVC builds when bash is available.
2015-04-20 16:06:20 -06:00
Ward Fisher
017f196628
Added the [NCF-326] test to CMake build system.
2015-03-10 09:53:13 -06:00
Russ Rew
67ad8d89a8
Fix and test resolution of NCF-326, Unlimited Dimensions NC_EEDGE error.
2015-03-10 06:13:07 -06:00
Ward Fisher
5b40f3a27e
Added a platform check for hostname on Windows. Updated how 'diff' is called in a diskless test to ignore whitespace when comparing files.
2015-02-04 09:11:27 -07:00
Ward Fisher
fe1b96cdd9
Updated CMakelists to remove debug, release subdirectories on Windows. Updating shell scripts to work with MSYS paths.
2015-02-02 14:46:50 -07:00
Russ Rew
db83a3be4c
Jira issue NCF-314, "Provide replacement for using numeric values of -k
...
option on nccopy and ncgen".
2014-12-29 13:07:28 -07:00
Russ Rew
9a60dc612f
Use short "-k" codes instead of deprecated version numbers for ncgen and nccopy tests
2014-12-28 22:42:05 -07:00
dmh
20720199c8
1. synch with oc
...
2. fix ocuri parameter handling
3. add ncdap_test/testuri.sh to test parameter handling.
2014-12-27 20:42:01 -07:00
dmh
f423f27693
Sync with oc project.
...
This supports better authorization
handling for DAP requests, especially redirection
based authorization. I also added a new test case
ncdap_tests/testauth.sh.
Specifically, suppose I have a netrc file /tmp/netrc
containing this.
machine uat.urs.earthdata.nasa.gov login xxxxxx password yyyyyy
Also suppose I have a .ocrc file containing these lines
HTTP.COOKIEJAR=/tmp/cookies
HTTP.NETRC=/tmp/netrc
Assume that .ocrc is in the local directory or HOME.
Then this command should work (assuming a valid login and password).
ncdump -h "https://54.86.135.31/opendap/data/nc/fnoc1.nc "
2014-12-24 10:22:47 -07:00
Rob Latham
af4eb0fb1d
sync lines for generated C files
...
m4 can emit 'sync lines' which tell the toolchain "hey, this code
actually came from this other file over here". Should help prevent
anyone accidentally editing a generated file.
2014-12-05 12:55:49 -06:00
Rob Latham
54affd88ff
synclines and IF macro can interract poorly
...
See parallel-netcdf revision 1912:
http://trac.mcs.anl.gov/projects/parallel-netcdf/changeset/1912
the IF macro and scanlines can interact in a way that makes gcc unhappy
2014-12-05 12:55:38 -06:00
Ward Fisher
4b7349885a
Merge branch 'link-what-you-use' of https://github.com/nschloe/netcdf-c into nschloe-link-what-you-use
2014-10-15 14:51:08 -06:00
dmh
d67d00ca7e
re NCF-319
...
The pnetcdf support was not
properly being used to provide
mpi parallel io for netcdf-3 classic
files. The wrong dispatch table was being
used. The fix was to modify
dfile.c#NC_check_file_type to properly
specify the pnetcdf dispatch table when
use_parallel was true.
2014-10-13 14:33:06 -06:00
Nico Schlömer
16ce3507f4
nc_test explicitly uses libm
2014-10-08 12:41:48 +02:00
Ward Fisher
1dae994c75
Removed a stray assignment in the test.
2014-10-06 10:08:36 -06:00
Ward Fisher
63c67fa2e5
Fixed an issue with out-of-source libtool builds related to the netcdf_meta test in nc_test/.
2014-09-22 13:38:34 -06:00
Ward Fisher
1593fccd69
Addressed issues related to running large file tests on machines < 4GB memory. Updated messages to indicate what the problem was specifically, so that I don't spend another day somewhere down the road figuring out the problem yet again.
2014-09-17 13:28:36 -06:00
Ward Fisher
069820158d
Added a test to catch errors introduced into netcdf_meta.h
2014-09-11 15:44:56 -06:00
Ward Fisher
2c6b2d8c5e
Added nc_test.c to EXTRA_DIST.
...
Rebuilding extra_dist in makefile.am
Cleaning up extra_dist stanza in makefile.am.
2014-09-03 14:46:35 -06:00
Ward Fisher
7bde03714a
Fixed an issue preventing make distcheck from working.
2014-09-03 13:11:09 -06:00
Ward Fisher
7c68518ce3
Removed dangling reference to tst_settings.c
2014-09-03 12:50:15 -06:00
dmh
be329e7a23
Add ability to programmatically
...
extract info from libnetcdf.settings
API is below.
I have made this API public yet
by adding it to netcdf.h. I will
do that when everyone is agreed on the
proper API.
extern const char* nc_settings(const char* key); /*get value of a specific key */
extern const char** nc_settings_all(); /*get all settings in envv format */
extern void nc_settings_reclaim(); /* reclaim all space and clean up */
Envv format is
{key,value}*,NULL
Also added test: nc_test/tst_settings.c
2014-08-29 14:51:14 -06:00
Ward Fisher
b43813d821
When using the '-ansi' flag with gcc, netcdf would fail to build because of the use of '//' for one-line comments. I've addressed this by replacing instances of // with enclosing comment blocks.
2014-08-26 11:19:32 -06:00
dmh
a23f750f5d
reduce # processors for run_pnetcdf_test.sh
2014-06-20 20:22:55 -06:00
Ward Fisher
7f812b367e
Manual merge of pull request https://github.com/Unidata/netcdf-c/pull/64 contributed by nschloe. Assorted CMake improvements.
2014-06-11 15:51:31 -06:00
Ward Fisher
44fae42214
Cleaned up indentation, white space in multiple CMakeLists.txt files.
2014-04-21 11:15:33 -06:00
Ward Fisher
a0c5a08bf7
Changed large_file.c so that overly large variables are allocated dynamically, not at link time.
2014-03-19 12:47:06 -06:00
dmh
582410a407
[NCF-273]/HZY-708311
...
Add a new function called nc_inq_format_extended that
returns more detailed format information (vis-a-vis
nc_inq_format) about an open dataset.
Note that the netcdf API will present the file as if it had
the format specified by nc_inq_format. The true file
format, however, may not even be a netcdf file; it might be
DAP, HDF4, or PNETCDF, for example. This function returns
that true file type. It also returns the effective mode for
the file.
signature: nc_inq_format_extended(int ncid, int* formatp, int* modep)
where
* ncid is the NetCDF ID from a previous call to nc_open() or
nc_create().
* formatp is a pointer to a location for returned true format.
* modep is a pointer to a location for returned mode flags.
Refer to the actual list in the file netcdf.h to see the
currently defined set.
Also added test cases (tst_formatx*).
2013-12-22 12:53:20 -07:00
Quincey Koziol
b3044de434
Refactored read_scale(), memio_new(), var_create_dataset() and makespecial()
...
to clean up resources properly on failure.
Refactored doubly-linked list code for objects in the libsrc4 directory,
cleaning up the add/del routines, breaking out the common next/prev
pointers into a struct and extracting the add/del operations on them,
changed the list of dims to add new dims in the same order as the other
types, made all add routines able to optionally return a pointer to the
newly created object.
Removed some dead code (pg_var(), nc4_pg_var1(), nc4_pg_varm(), misc. small
routines, etc)
Fixed fill value handling for string types in nc4_get_vara().
Changed many malloc()+strcpy() pairs into calls to strdup().
Cleaned up misc. other minor Coverity issues.
2013-12-08 03:29:26 -06:00
Ward Fisher
001d950548
Removed a debug statement.
2013-11-04 13:34:20 -07:00
Ward Fisher
bda59030cb
Replaced call to fstat with call to filelength, on apropriate system.
2013-11-01 16:30:33 -06:00
Ward Fisher
78d19f69fd
Updating for Windows Large File Support.
2013-10-16 16:44:11 -06:00
dmh
10b0ac536f
[NCF-267]/SAI-630695
...
Add support for embedded NUL characters
in character arrays and added some test cases.
Note that embedded NULs in netcdf-4
string constants are still illegal. This is
because strings are not counted in the netcdf
API, so they are implicitly NUL terminated.
2013-09-23 17:11:59 -06:00
Ward Fisher
55eed7ffa1
Removed stray (but harmless) debugging info. Updated windows-binaries documentation to allow both latest stable release as well as latest release candidate.
2013-08-29 15:48:03 -06:00
Ward Fisher
a595c62d7f
Updated RELEASE_NOTES with reference to LFS Jira ticket. Temporarily removed an LFS test on Windows.
2013-08-28 16:30:41 -06:00
Ward Fisher
e117af0ab7
Made H5_USE_16_API an option in CMakeLists.txt, added string to describe what it does.
2013-08-28 12:43:45 -06:00
Ward Fisher
8ae3105e32
Corrected invocation of a large file test in the CMake system, when large file tests are enabled.
2013-08-28 09:38:43 -06:00
Ward Fisher
b6e4715104
Added fixes to CMake-based system, when building pnetcdf.
2013-08-26 13:50:27 -06:00
Ward Fisher
33d3d06971
Added initial 'make dist', 'make distcheck' support to
...
CMake-based builds.
2013-06-03 16:42:04 +00:00
Russ Rew
946a7ab8b5
Fix contributed by Nath Gopalaswamy to large file problem reading
...
netCDF classic or 64-bit offset files that have a UINT32_MAX flag for
large last record size of a variable that has values larger than 1
byte. This problem had previously been fixed for *writing* such data,
but was only tested with an ncbyte variable. Fixed test to
demonstrate problem and the fix.
More updates to chunking documentation, cosmetic fixes for some
"--option=" documentation that doxygen turns into mdash.
2013-05-31 20:18:18 +00:00
Dennis Heimbigner
c583f91992
merge with trunk and fix conflicts
2013-05-10 17:04:28 +00:00
Dennis Heimbigner
f17e7324c1
Rebuilt the compose operation in dceconstraints.c. The
...
revisions are simpler, and I hope, clearer than the all
previous versions. Part of the code taken from the
ucar.nc2.Range.compose function. Modified to handle edge
cases not handled in the Range.compose function.
2013-04-19 19:55:43 +00:00
Dennis Heimbigner
4e41843740
1) fix some minor bugs when pnetcdf is enabled 2)Comment out some apparently unused procedures
2013-03-25 17:12:50 +00:00
Dennis Heimbigner
dea3c726c8
merge trunk into this branch
2013-03-15 20:31:07 +00:00
Ward Fisher
ddf3c31bb0
Corrected a handful of syntax issues in CMake config files,
...
probably introduced more.
Added CMake-related files to Makefile.am files for inclusion
when creating a distribution package.
2013-02-20 23:28:28 +00:00
Ward Fisher
49b144143d
CMake fixes for enabling MMAP tests.
2013-02-14 20:24:02 +00:00
Ward Fisher
51848614c3
Corrected parallel support in CMake, including
...
library checks and parallel IO tests. Updated
CMake-related documentation.
2013-02-12 22:22:54 +00:00
Russ Rew
3ef3b35a94
Refactor to share functions between ncdump and nccopy. Merge nccopy
...
enhancements, based on contributed code from Martin van Driel, to
support -v, -g, -V, and -G options for selecting groups and variables
in output. Fix all clang warnings from nccopy and ncdump sources, as
well as a few other cleanup changes to testing code.
2013-01-23 17:45:29 +00:00
Ward Fisher
91188cea7a
Merging CMake branch into trunk. Changes include:
...
CMake related changes in CMakeLists.txt files,
cmake_config.h.in. Other changes relate to
Windows-specific issues, and changes made
when regenerating generated source files.
2013-01-15 22:43:09 +00:00
Ward Fisher
cf0d0b54f2
Merged latest changes from cmake branch. Fixed a test file, and changed a deallocation call to avoid throwing an error on Windows related to cross-dll memory-management.
2012-12-07 23:21:27 +00:00
Ward Fisher
81280c7878
Merge from latest netcdf-cmake branch.
...
- Fixes for Windows.
- CMake-based changes (functionality, tests).
- Smattering of coverity-informed bug-fixes.
2012-12-05 18:35:42 +00:00
Ward Fisher
d0a665f83f
Including .c files generated from .m4 to accomodate
...
Windows users (who generally will lack m4). This policy
can be re-evaluated if need be.
2012-10-02 16:45:27 +00:00
Ward Fisher
c271c81ac4
2012-09-14 21:35:25 +00:00
Ward Fisher
235fc6bb13
Merged latest trunk into branch
2012-08-22 19:52:24 +00:00
Ward Fisher
5ebda8c08f
Correcting an arithmetic error present in nc_test under gcc on Windows.
2012-08-22 19:19:04 +00:00
Russ Rew
24a1cd0718
Fix test of H5Tget_size() return so it can actually detect an error.
...
Remove some dead code. Fix declaration of X_INT_MIN in tests.h.
2012-08-22 14:57:30 +00:00
Ward Fisher
e8453be1e5
Merged from trunk into branch
2012-08-20 18:30:04 +00:00
Russ Rew
8d53da4826
Fixed bug "adding a bad _FillValue" bug (NCF-190). Fixed minor bugs
...
reported by static analysis, including memory leak in ncdump, missing
size_t cast for chunk cache. Fixed various doc problems, including
byte vs. char issues, missing NC_UBYTE in type list, needed link to
"Building with Windows" page.
2012-08-16 18:31:48 +00:00
Ward Fisher
c8febf92ed
Modified related to m4 file conversion macro.
2012-08-13 16:10:36 +00:00
Ward Fisher
14619ec4c4
2012-08-09 18:40:41 +00:00
Ward Fisher
0607b62375
Added coverage test flags to CMakeLists.txt files.
2012-08-09 17:07:41 +00:00
Ward Fisher
5e16f2c80c
2012-08-09 16:39:13 +00:00
Ward Fisher
0a964ad8b1
Updated CMake files, added a few changes to fix linux-based compile warnings.
2012-08-07 21:34:55 +00:00
Ward Fisher
02828e917a
Integrated more tests, added additional CMake functionality
2012-08-06 23:07:40 +00:00
Ward Fisher
e2293a4368
Begin integrating CTest and CDash functionality.
2012-08-06 20:53:34 +00:00
Ward Fisher
59960fcc20
Minor fixes (dead code) to correct errors found by Coverity
2012-07-30 21:49:16 +00:00
Dennis Heimbigner
a6b932826b
add NC_MMAP flag and tests
2012-06-23 19:25:49 +00:00
Russ Rew
79cde861ac
Delete obsolete libdiskless directory, replaced by new diskless
...
implementation. Deleted obsolete win32, soon to be replaced by Ward's
Windows 32- and 64-bit fixes for building with MSYS/MinGW. Made
cosmetic cleanup to output of "make check" to make it easier for users
to interpret. Fixed bug NCF-175: ncdump -t incorrectly interpreting
units attribute (such as "days") without a base time (such as "since
2007-01-01") as a time unit.
Changed name to 4.2.1-beta.
2012-06-12 21:50:02 +00:00
Russ Rew
d6d38094c2
Cleaned up tst_atts3.c test program. Fixed several bugs in detection
...
of NC_ERANGE errors, especially with unsigned types, resolving most
NCF-172 issues and confusion between long and long long types in
llibsrc/ncx.m4. Eliminated some unnecessary tests, e.g. tests
for negative values for unsigned types.
2012-05-31 01:28:42 +00:00
Russ Rew
1f4eeafcb9
Fixed doxygen installation guide source file to preserve line breaks
...
in code and scripts.
Fixed bug NCF-171: error reading external int into longlong or writing
from longlong array to external int on 32-bit platforms and classic
format files.
Promoted test demonstrating NCF-171 bug from longlong array from
"extra test" to "test".
2012-05-29 15:50:15 +00:00
Russ Rew
dbaf62f5e6
Updated some links in Doxygen version of user guide. Fixed some
...
range_error checks in netCDF-4 type conversion code. Made netCDF
attribute tests with type conversion more comprehensive and stringent,
fixing bugs identified with better tests. Changed a test in
nc_test/tst_atts.c to use netCDF-3 file instead of netCDF-4 file,
because that directory is supposed to be for tests that work with
--disable-netcdf-4. Added test demonstrating NCF-171 bug on 32-bit
platforms, only run when configured with --enable-extra-tests.
2012-05-24 16:29:22 +00:00
Dennis Heimbigner
5b2aee44a7
windows support fixes plus add --disable-diskless
2012-05-15 17:48:27 +00:00
Dennis Heimbigner
14c3dae49e
more win32 fixes
2012-05-15 03:47:52 +00:00
Dennis Heimbigner
4f68d6c5f8
win32/mingw fixes
2012-05-15 03:13:08 +00:00
Russ Rew
c6f399c731
Fix non-portable test that depends on nonstandardized floating-point format using e+08, not e+008. Fixes for some problems reported in scan-build static analysis.
2012-04-23 23:59:24 +00:00
Dennis Heimbigner
00e50f5a44
1. changed from using port 8080 to 8081 for motherlode
...
2. Fixed Ward's IGNORE problem with oc
3. Mmap support now works.
4. Fix an uninitialized variable pointed out by Russ in dnclog.c
2012-04-22 20:34:21 +00:00
Russ Rew
85743d97f0
Fix ncopy so it actually uses -r option instead of ignoring it. Remove a large number of dead assignments found by clang in nc_test/tt_atts.c.
2012-04-13 02:52:30 +00:00
Dennis Heimbigner
3e444c39d8
made run_diskless2 only run when doing large file tests
2012-04-09 22:43:30 +00:00
Dennis Heimbigner
48ca394d2e
diskless: make read and write loop to read/write whole file when persisting
2012-04-09 22:03:02 +00:00
Dennis Heimbigner
5536bccee1
allow NC_DISKLESS with nc_open() to operate as a in-memory cache
2012-04-08 22:47:38 +00:00
Russ Rew
8a9599c850
Merge my branch back into trunk!
2012-04-01 23:42:53 +00:00
Dennis Heimbigner
7e27052f87
- Implemented diskless files for both netcdf classic and extended.
...
The in-memory files can be made persistent if nc_create is called with
NC_DISKLESS|NC_WRITE flags set. Initial test case also included.
- Modified ncio mechanism to support
multiple ncio packages; this is so we
can have posixio and memio operating
at the same time.
- cleanup up a bunch of lint issues (unused variables, etc).
2012-03-26 01:34:32 +00:00
Dennis Heimbigner
82287e3a37
conditional testnc3perf.c
2012-02-03 21:30:43 +00:00
Dennis Heimbigner
e3c5364ab8
missed file cleanup
2012-01-23 19:25:47 +00:00
Dennis Heimbigner
434e7d91bc
added nc3 performance test
2012-01-19 20:17:40 +00:00
Russ Rew
2d46d44e96
Remove windows incompatibility in nc_test test program (NCF-121)
2012-01-07 23:24:53 +00:00
Dennis Heimbigner
efd9808b0a
completely rewritten constraint system
2011-11-14 04:20:19 +00:00
Dennis Heimbigner
1578ddac0c
2011-09-20 20:39:04 +00:00
Ed Hartnett
fde5e75730
removed diskless files for non-netcdf-4 builds
2011-08-23 15:07:24 +00:00
Ed Hartnett
d58c18c623
added diskless files API, subsetting not working, classic model only
2011-08-16 21:04:33 +00:00
Russ Rew
75af04d4a8
Fix NCF-101 bug, and add test for fix. Delete debugging leftover in nccopy.c. Fix typo in installation guide.
2011-07-18 19:11:28 +00:00
Dennis Heimbigner
4f30d3694c
cleanup misc. issues
2011-07-14 22:24:02 +00:00
Russ Rew
ba59f198bf
Add nofill bug test that uses nc_create() rather than nc__create().
2011-05-17 21:02:28 +00:00
Ed Hartnett
e2685a1475
changes to remove EXTERN_LDFLAG from build, also to fix netCDF-4 sync bug
2011-05-17 19:14:35 +00:00
Russ Rew
2d766790fe
Add nofill bug test that just uses nc_create() rather than nc__create().
2011-05-16 19:09:16 +00:00
Ed Hartnett
2f4cf5382e
took out ldflags in Makefile.am files
2011-05-11 17:09:12 +00:00
Ed Hartnett
cda773c8db
took extra_test protection away from dreaded nofill bug test
2011-04-29 21:00:35 +00:00
Russ Rew
74c9b713bd
Fix for nofill bug and test
2011-04-28 19:50:56 +00:00
Ed Hartnett
4de8b33251
rolled everything back to 1119
2011-04-28 17:11:21 +00:00
Russ Rew
0f4a94518d
Fixed nofill bug, cosmetic updates to tutrial
2011-04-28 15:08:03 +00:00
Ed Hartnett
29e8619787
simplified build system
2011-04-26 20:57:24 +00:00
Ed Hartnett
2a00a4cceb
simplified test
2011-04-26 17:06:04 +00:00
Ed Hartnett
3c404a02c7
new test
2011-04-26 13:24:21 +00:00
Ed Hartnett
8559e6f976
added test that activates classic library bug
2011-04-25 17:09:14 +00:00
Ed Hartnett
1a3ba4a6d8
cywin-mingw32 dlls now building
2011-01-06 20:12:06 +00:00
Russ Rew
52e525c19c
Factor out common functionality in ncdump and nccopy and share between them.
2011-01-05 23:48:47 +00:00
Ed Hartnett
659fd84edb
Removed all void functions from tst programs. Thanks to solaris C compiler for being sensitive enough to notice this sort of thing.
2011-01-03 15:41:20 +00:00
Ed Hartnett
7f554f08ce
took out void function
2011-01-03 15:37:00 +00:00
Ed Hartnett
7235ea9982
changed void function to int to please solaris compiler
2011-01-02 13:22:42 +00:00
Ed Hartnett
99496dd311
turned void returns into int returns, to stop Sun conplaining about my ERR macro using a return
2010-12-22 12:48:12 +00:00
Dennis Heimbigner
209742ebec
Fixed dap memory leaks
2010-12-17 23:54:09 +00:00
Ed Hartnett
d689efdc06
don't run tst_atts unless this is a netcdf-4 build
2010-12-16 18:13:52 +00:00
Ed Hartnett
9617477e83
changed test to prevent so much output
2010-12-16 17:36:14 +00:00
Ed Hartnett
03f63a5f1c
many changes for memory fixes
2010-11-29 22:23:16 +00:00
Ed Hartnett
f4ea963b02
changed permissions
2010-10-15 12:05:53 +00:00
Ed Hartnett
24b75c6575
fixed typo
2010-10-14 14:48:37 +00:00
Ed Hartnett
a658960034
added more valgrind testing
2010-10-13 22:53:25 +00:00
Dennis Heimbigner
ea8379719c
fixed char datalist bug and did some more dispatch cleanup
2010-08-09 20:39:36 +00:00
Ed Hartnett
bb57cf2e4b
moved functions out of m4 into c files in libdispatch/netcdf.m4
2010-06-18 14:01:51 +00:00
Ed Hartnett
4496123ff7
moved tests t_nc and t_type from libsrc to nc_test and nc_test4 to simplify build
2010-06-10 21:10:50 +00:00
Ed Hartnett
7afbaa4b52
merged trunk up to revision 75, move v2 API
2010-06-07 11:12:14 +00:00
Ed Hartnett
1ba136e4cd
fixed makefile problems to allow make dist to work
2010-06-04 12:23:10 +00:00
Ed Hartnett
92ccf1c5fa
moved headers to include directory
2010-06-03 20:22:55 +00:00
Ed Hartnett
18f4bca367
moving to trunk subdir
2010-06-03 13:24:43 +00:00