From 64fa63a7743e6730aeb4d531d2b0493eb61339ed Mon Sep 17 00:00:00 2001 From: Ward Fisher Date: Tue, 1 Jun 2021 13:55:10 -0600 Subject: [PATCH 1/2] Clean up stray file that was fouling make distcheck --- nc_test4/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nc_test4/Makefile.am b/nc_test4/Makefile.am index 8075b7373..bad706107 100644 --- a/nc_test4/Makefile.am +++ b/nc_test4/Makefile.am @@ -111,7 +111,7 @@ foo1.nc tst_*.h4 test.nc testszip.nc test.h5 szip_dump.cdl \ perftest.txt bigmeta.nc bigvars.nc *.gz MSGCPP_*.nc \ floats*.nc floats*.cdl shorts*.nc shorts*.cdl ints*.nc ints*.cdl \ testfilter_reg.nc filterrepeat.txt tmp_fillonly.nc \ -testfilter_order.nc crfilterorder.txt rdfilterorder.txt +testfilter_order.nc crfilterorder.txt rdfilterorder.txt 1 DISTCLEANFILES = findplugin.sh run_par_test.sh From cab37435682f0e0c7890cf47e33d7c0247eb2e10 Mon Sep 17 00:00:00 2001 From: Ward Fisher Date: Tue, 1 Jun 2021 15:05:42 -0600 Subject: [PATCH 2/2] Added missing file. --- ncdap_test/test_manyurls.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 ncdap_test/test_manyurls.c diff --git a/ncdap_test/test_manyurls.c b/ncdap_test/test_manyurls.c new file mode 100644 index 000000000..00343a0fb --- /dev/null +++ b/ncdap_test/test_manyurls.c @@ -0,0 +1,34 @@ +#include +#include +#include +#include + +#include "manyurls.h" + +int main() +{ + int i,ncid; + char** p; + + for(i=1,p=urllist;i<100;p++,i++) { + char* tp = *p; + int mode = 0; + int status = -1; + printf("Opening: %s\n",tp); + status = nc_open(tp, mode, &ncid); + switch(status) { + case NC_NOERR: + break; + case NC_ENOTFOUND: + printf("{%d} %s\n",i,tp); + status = NC_NOERR; + break; + default: + fprintf(stderr,"*** %s\n",nc_strerror(status)); + return 1; + } + // nc_close(ncid); + } + return 0; +} +