mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-05 16:20:10 +08:00
Merge pull request #2014 from Unidata/fix-makedist.wif
Another PR to fix 'make distcheck' issues that had crept in.
This commit is contained in:
commit
7446311dfd
@ -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
|
||||
|
||||
|
34
ncdap_test/test_manyurls.c
Normal file
34
ncdap_test/test_manyurls.c
Normal file
@ -0,0 +1,34 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <netcdf.h>
|
||||
#include <string.h>
|
||||
|
||||
#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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user