Commit Graph

1212 Commits

Author SHA1 Message Date
Dennis Heimbigner
d325fbba5b Replace PR 3046 2024-11-01 16:15:09 -06:00
Dennis Heimbigner
73ce129194 Cleanup the blosc testing in nc_test4 and nczarr_test.
re: Issue https://github.com/Unidata/netcdf-c/issues/2868

There are three parameters (zero, one, and two) that are currently
used in testing, but should not be. Parameters zero and one
are ignored by the code and parameter two is the typesize
parameter that either takes on the value 0 or 4 (== sizeof(int)).
See nc_test4/tst_specific_filters.sh.

Unfortunately, these three parameters differ depending on the blosc library.
The solution is to force them to a specific value -- namely 0,0,0 --
in the test script.
2024-10-28 21:18:11 -06:00
Ward Fisher
7549bb8b45
Merge branch 'main' into ejh_0830 2024-09-06 12:25:36 -05:00
Ward Fisher
e2e45f8ccb Remove stray whitespace that was not being ignored by diff. 2024-09-04 18:17:46 -05:00
Ward Fisher
59e2b3a5f0 Ensure that the reference file for run_par_warn_test is copied to the build directory for cmake builds. 2024-09-04 17:58:09 -05:00
Edward Hartnett
023f8b9806 removed error message from ref file 2024-09-04 07:35:34 -06:00
Edward Hartnett
8b7a83b444 more testing of HDF5 error 2024-09-04 07:24:43 -06:00
Edward Hartnett
771b3a9081 adding test for HDF5 error message 2024-09-02 06:59:37 -06:00
Edward Hartnett
f0272a2264 adding test for HDF5 error message 2024-09-02 06:09:07 -06:00
Edward Hartnett
9e0ee2790c adding test for HDF5 error message 2024-09-02 05:47:45 -06:00
Ed
f027bcee30 fixing cmake build 2024-08-30 10:11:12 -06:00
Edward Hartnett
ab9747565e parallel zstd test 2024-08-30 07:16:08 -06:00
Edward Hartnett
d2673eaddd parallel zstd test 2024-08-30 05:59:49 -06:00
Edward Hartnett
e768bf2cbc parallel zstd test 2024-08-30 05:20:00 -06:00
Edward Hartnett
508634b316 turned on some commented out test code 2024-08-28 06:02:50 -06:00
Edward Hartnett
71947c64dc turned off verbose test output 2024-08-17 05:53:23 -06:00
Ed
ed5fadc869 turning on more output in tests 2024-08-15 11:41:40 -06:00
Ed
7f987b7842 debugging cmake build 2024-08-14 14:52:34 -06:00
Ed
c93d6cc7cd adding run_zstd_test.sh to cmake build 2024-08-14 14:07:22 -06:00
Ed
a8dd82c74a debugging run_zstd_test 2024-08-14 13:11:49 -06:00
Ed
ba9e14b5a7 debugging run_zstd_test 2024-08-14 12:53:00 -06:00
Ed
b183c65334 adding run_zstd_test 2024-08-14 12:35:56 -06:00
Ed
4a2b8ff466 adding run_zstd_test 2024-08-14 09:15:29 -06:00
Ed
eb8caa0fb2 adding run_zstd_test 2024-08-14 08:54:11 -06:00
Ed
e872dfe03b adding and building tst_zstd.c 2024-08-14 07:19:23 -06:00
DWesl
aa4cdf8d2c Merge upstream into patch-4 2024-06-22 11:11:33 -04:00
DWesl
0c10f11c7a
TST: Skip nc_test4_tst_filter on Cygwin.
Already skipped on MinGW, so I don't feel bad skipping it on Cygwin too.  Still haven't figured out why it's crashing.  I should probably look into why Autotools is fine.
2024-05-24 15:51:30 -04:00
Dennis Heimbigner
f0f0f39950 Cleanup various Zarr-related build issues
# Description
Remove various obsolete build options. Also do some code movement.

## Specific Changes

* The remotetest server is sometimes unstable, so provide a mechanism
  to force disabling calls to remotetest.unidata.ucar.edu.
  This is enabled by adding a repository variable named
  REMOTETESTDOWN with the value "yes".
* Fix CMakeLists.txt to use the uname command as an alternate
  to using the hostname command (which does not work under cygwin).
* Remove the JNA stuff as obsolete
* Remove the ENABLE_CLIENTSIDE_FILTERS options since it has been
  disabled for a while.
* Fix bad option flag in some github action .yml files: change --disable-xml2 to --disable-libxml2
* Collect globalstate definitions into nc4internal.h
* Remove ENABLE_NCZARR_FILTERS_TESTING option as obsolete and replace
  with ENABLE_NCZARR_FILTERS
* Move some dispatcher independent functions from libsrc4/nc4internal.c to libdispatch/ddispatch.c
* As a long term goal, and because it is now the case that --enable-nczarr
    => USE_NETCDF4, make the external options --enable-netcdf-4 and
    --enable-netcdf4 obsolete in favor of --enable-hdf5
    We will do the following for one more release cycle.
        1. Make --enable-netcdf-4 be an alias for --enable-netcdf4.
        2. Make --enable-netcdf4 an alias for --enable-hdf5.
        3. Internally, convert most uses of USE_NETCDF_4 ad USE_NETCDF4 to USE_HDF5
    After the next release, --enable-netcdf-4 and --enable-netcdf4 will
    be removed.
2024-05-15 18:46:25 -06:00
Ward Fisher
f8164e3b73
Merge pull request #2917 from MehdiChinoune/ci-mingw
CI: Setup a CMake job for MSYS2/MinGW
2024-05-14 17:26:43 -07:00
Dennis Heimbigner
69ed78e7d7 Convert the ENABLE_XXX options to NETCDF_ENABLE_XXX options
# Primary Change
In order to conform to the cmake overhaul, occurrences of
ENABLE_XXX options in the nczarr code have been changed to
NETCDF_ENABLE_XXX.

# Misc. Other changes
* Fix use of rand_s in libdispatch/ncrandom.c
* Fix some bugs in the mingw gitub action.
* Fix signature bug in libncpoco/cp_win32.c
* Make some NCZarr fixes to config.h.cmake.in
2024-05-11 16:23:40 -06:00
مهدي شينون (Mehdi Chinoune)
c5c2d931cc CMake: Fix running tests on MinGW 2024-05-07 04:44:54 +01:00
Ward Fisher
c26f7eabf4 Refactor macro _FillValue to NC_FillValue in support of https://github.com/Unidata/netcdf-c/issues/2858 2024-04-24 11:38:07 -06:00
Ward Fisher
38d3831319
Merge branch 'main' into clang-tidy-fixes 2024-04-02 15:30:47 -06:00
Ward Fisher
e5b83cd70f
Merge pull request #2884 from ZedThree/silence-test-warnings
Fix warnings in tests and examples
2024-03-21 17:13:04 -06:00
Kyle Shores
d1334f7b88 Replace ENABLE_NCZARR with NETCDF_ENABLE_NCZARR 2024-03-18 15:52:19 -05:00
Kyle Shores
0535edd9c1 Replace ENABLE_FILTER_TESTING with NETCDF_ENABLE_FILTER_TESTING 2024-03-18 15:51:55 -05:00
Kyle Shores
2bce1e6776 Replace ENABLE_CDF5 with NETCDF_ENABLE_CDF5 2024-03-18 15:51:04 -05:00
Kyle Shores
dc4830a632 replacing BUILD_UTILITIES 2024-03-18 15:29:24 -05:00
Peter Hill
b3a3389202
Fix warnings in nc_test4 2024-03-12 16:13:40 +00:00
Sean McBride
edcfc61fe6 Manually fixed performance-type-promotion-in-math-fn warnings 2024-03-01 20:46:58 -05:00
Peter Hill
9bbdd4cd7b
Replace use of HAVE_HDF5_H feature macro with USE_HDF5 2024-02-16 10:30:58 +00:00
Ward Fisher
c1fb4b0bae
Merge pull request #2809 from ZedThree/silence-malloc-warnings
Silence conversion warnings from `malloc` arguments
2023-12-21 17:20:56 -07:00
Ward Fisher
6a628b9ca7 Rebased PR by hand against main. 2023-12-12 16:49:13 -07:00
Ward Fisher
0603c98933
Merge pull request #2379 from gsjaardema/patch-50
Enable compilation with C89 compiler
2023-12-12 16:00:31 -07:00
Ward Fisher
2616e2c411
Merge pull request #2745 from e-kwsm/chmod-x
chore: unset executable flag
2023-12-11 17:28:46 -07:00
Sean McBride
dfc2ac7296 Replaced trivial uses of sprintf with snprintf
In all these cases the size of the buffer can be computed with sizeof.
2023-12-08 13:30:38 -05:00
Peter Hill
d07dac918c
Silence conversion warnings from malloc arguments
Mostly just add an explicit cast when calling `malloc` and its
variants. Sometimes instead change the type of a local variable if
this would silence multiple warnings.
2023-11-24 18:20:52 +00:00
Ward Fisher
16841a990d
Merge pull request #2782 from ZedThree/fix-float-conversions
Fix most float conversion warnings
2023-11-14 10:42:29 -07:00
Peter Hill
763e54f8a1
Fix most float conversion warnings
Fixes ~200 out of ~240 `-Wfloat-conversion` warnings on gcc 13.2
2023-10-26 16:01:24 +01:00
Dennis Heimbigner
1552d894a2 Cleanup a number of issues.
re: Issue https://github.com/Unidata/netcdf-c/issues/2748

This PR fixes a number of issues and bugs.

## s3cleanup fixes
* Delete extraneous s3cleanup.sh related files.
* Remove duplicate s3cleanup.uids entries.

## Support the Google S3 API
* Add code to recognize "storage.gooleapis.com"
* Add extra code to track the kind of server being accessed: unknown, Amazon, Google.
* Add a new mode flag "gs3" (analog to "s3") to support this api.
* Modify the S3 URL code to support this case.
* Modify the listobjects result parsing because Google returns some non-standard XML elements.
* Change signature and calls for NC_s3urlrebuild.

## Handle corrupt Zarr files where shape is empty for a variable.
Modify behavior when a variable's "shape" dictionary entry.
Previously it returned an error, but now it suppresses such a variable.
This change makes it possible to read non-corrupt data from the file.
Also added a test case.

## Misc. Other Changes
* Fix the nclog level handling to suppress output by default.
* Fix de-duplicates code in ncuri.c
* Restore testing of iridl.ldeo.columbia.edu.
* Fix bug in define_vars() which did not always do a proper reclaim between variables.
2023-10-08 11:22:52 -06:00