mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
Tweaked ncgen test script to actually *check* to see if the file it says it's creating was created.
This commit is contained in:
parent
ee9a68e931
commit
991d127158
@ -10,11 +10,25 @@ echo "*** Testing ncgen."
|
||||
set -e
|
||||
echo "*** creating classic file c0.nc from c0.cdl..."
|
||||
./ncgen -b -o c0.nc $srcdir/c0.cdl
|
||||
if [ ! -f c0.nc ]; then
|
||||
echo "Failure."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "*** creating 64-bit offset file c0_64.nc from c0.cdl..."
|
||||
./ncgen -k 64-bit-offset -b -o c0_64.nc $srcdir/c0.cdl
|
||||
if [ ! -f c0_64.nc ]; then
|
||||
echo "Failure."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "*** creating 64-bit offset file c5.nc from c5.cdl..."
|
||||
./ncgen -k 64-bit-data -b -o c5.nc $srcdir/c5.cdl
|
||||
if [ ! -f c5.nc ]; then
|
||||
echo "Failure."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
echo "*** Test successful!"
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user