mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-27 08:49:16 +08:00
2420b69a83
re: Issue https://github.com/Unidata/netcdf-c/issues/1365 At some point (4.6.1) we changed the diskless handling of flags and added a new NC_PERSIST flag. Looks like we did not fix all occurrences of the old flag set, specifically for 'nccopy -w' command. Also added some tests (tst_nccopy_w{3,4}.sh) for this situation.
22 lines
635 B
Bash
Executable File
22 lines
635 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
|
. ../test_common.sh
|
|
|
|
set -e
|
|
|
|
echo "*** Test nccopy -w on netcdf enhanced file"
|
|
echo "*** create nccopy_w4.nc from ref_nccopy_w.cdl..."
|
|
${NCGEN} -lb -o nccopy_w4.nc -N nccopy_w $srcdir/ref_nccopy_w.cdl
|
|
echo "*** diskless copy nccopy_w4.nc to nccopy_w4c.nc..."
|
|
${NCCOPY} -w nccopy_w4.nc nccopy_w4c.nc
|
|
echo "*** Convert nccopy_w4c.nc to nccopy_w4c.cdl..."
|
|
${NCDUMP} -n nccopy_w nccopy_w4c.nc > nccopy_w4c.cdl
|
|
echo "*** comparing ref_nccopy_w.cdl nccopy_w4c.cdl..."
|
|
diff -b -w $srcdir/ref_nccopy_w.cdl nccopy_w4c.cdl
|
|
|
|
rm -f nccopy_w4c.cdl
|
|
rm -f nccopy_w4.nc nccopy_w4c.nc
|
|
|
|
exit 0
|