Skip to content

Commit

Permalink
formatfix
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisHeimbigner committed Aug 14, 2024
2 parents 7aa2a1e + 8be572c commit 6f09a6a
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main-cmake.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: NetCDF-C CMake CI - Windows

on: [pull_request,workflow_dispatch]
on: [push,pull_request, workflow_dispatch]

env:
REMOTETESTDOWN: no
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run_tests_osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

name: Run macOS-based netCDF Tests

on: [pull_request,workflow_dispatch]
on: [push,pull_request,workflow_dispatch]

env:
REMOTETESTDOWN: no
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run_tests_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

name: Run Ubuntu/Linux netCDF Tests

on: [pull_request,workflow_dispatch]
on: [push,pull_request,workflow_dispatch]

env:
REMOTETESTDOWN: no
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run_tests_win_cygwin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Run Cygwin-based tests

on: [pull_request,workflow_dispatch]
on: [push,pull_request,workflow_dispatch]

concurrency:
group: ${{ github.workflow}}-${{ github.head_ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run_tests_win_mingw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
#CPPFLAGS: "-D_BSD_SOURCE"
REMOTETESTDOWN: no

on: [pull_request,workflow_dispatch]
on: [push,pull_request,workflow_dispatch]

concurrency:
group: ${{ github.workflow}}-${{ github.head_ref }}
Expand Down
5 changes: 2 additions & 3 deletions libnczarr/zsync.c
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ ncz_read_superblock(NC_FILE_INFO_T* file, struct ZJSON* json)

if(jsuper != NULL) {
if(jsuper->sort != NCJ_DICT) {stat = NC_ENCZARR; goto done;}
if((stat = NCJdictget(jsuper,"version",&jtmp))<0) {stat = NC_EINVAL; goto done;}
if((stat = dictgetalt(jsuper,"nczarr_version","version",&jtmp))<0) {stat = NC_EINVAL; goto done;}
nczarr_version = nulldup(NCJstring(jtmp));
}

Expand Down Expand Up @@ -1663,8 +1663,7 @@ getnczarrkey(NCZ_FILE_INFO_T* zfile, NC_OBJ* container, struct ZJSON* json, cons
jxxx = NULL;
if((stat = NCJdictget(json->atts,name,&jxxx))<0) {stat = NC_EINVAL; goto done;}
}
if(name == NULL) {
jxxx = NULL;
if(jxxx == NULL) {
/* Try .zxxx second */
if(json->obj != NULL) {
if((stat = NCJdictget(json->obj,name,&jxxx))<0) {stat = NC_EINVAL; goto done;}
Expand Down
12 changes: 6 additions & 6 deletions nc_test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ tst_http_nc3.cdl tst_http_nc4?.cdl tmp*.cdl tmp*.nc

EXTRA_DIST += bad_cdf5_begin.nc run_cdf5.sh nc_enddef.cdl
if NETCDF_ENABLE_CDF5
# bad_cdf5_begin.nc is a corrupted CDF-5 file with bad variable starting
# file offsets. It is to be used by tst_open_cdf5.c to check if it can
# detect and report error code NC_ENOTNC.
TESTS += run_cdf5.sh
check_PROGRAMS += tst_open_cdf5
# bad_cdf5_begin.nc is a corrupted CDF-5 file with bad variable starting
# file offsets. It is to be used by tst_open_cdf5.c to check if it can
# detect and report error code NC_ENOTNC.
TESTS += run_cdf5.sh
check_PROGRAMS += tst_open_cdf5
if LARGE_FILE_TESTS
TESTPROGRAMS += tst_large_cdf5 tst_cdf5_begin
TESTPROGRAMS += tst_large_cdf5 tst_cdf5_begin
endif
endif

Expand Down
8 changes: 4 additions & 4 deletions ncdap_test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ tst_longremote3.log: tst_remote3.log
endif

if NETCDF_ENABLE_DAP_LONG_TESTS
test_manyurls_SOURCES = test_manyurls.c manyurls.h
check_PROGRAMS += test_manyurls
test_manyurls.log: tst_longremote3.log
TESTS += test_manyurls
test_manyurls_SOURCES = test_manyurls.c manyurls.h
check_PROGRAMS += test_manyurls
test_manyurls.log: tst_longremote3.log
TESTS += test_manyurls
endif

TESTS += test_partvar
Expand Down
6 changes: 3 additions & 3 deletions nczarr_test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,16 @@ TESTS += run_unlim_io.sh run_nccopyz.sh
endif

if LARGE_FILE_TESTS
check_PROGRAMS += test_writecaching test_readcaching
TESTS += run_cachetest.sh
check_PROGRAMS += test_writecaching test_readcaching
TESTS += run_cachetest.sh
endif

endif #NETCDF_BUILD_UTILITIES

if NETCDF_BUILD_UTILITIES

if NETCDF_ENABLE_NCZARR_ZIP
TESTS += run_newformat.sh
TESTS += run_newformat.sh
endif

if LARGE_FILE_TESTS
Expand Down
Binary file modified nczarr_test/ref_oldformat.zip
Binary file not shown.

0 comments on commit 6f09a6a

Please sign in to comment.