2015-10-23 04:09:19 +08:00
|
|
|
#!/bin/sh
|
2017-11-25 20:18:04 +08:00
|
|
|
# This script runs UTF-8 tests for netCDF-4.
|
|
|
|
# Ward Fisher, Dennis Heimbigner, Ed Hartnett
|
2017-03-09 08:01:10 +08:00
|
|
|
|
|
|
|
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
|
|
|
. ../test_common.sh
|
2015-10-23 04:09:19 +08:00
|
|
|
set -e
|
2017-03-09 08:01:10 +08:00
|
|
|
|
2015-10-23 04:09:19 +08:00
|
|
|
echo ""
|
2017-11-25 20:18:04 +08:00
|
|
|
echo "*** Testing netcdf-4 file with utf8 characters..."
|
|
|
|
|
|
|
|
rm -f tst_utf8_nc4.nc tst_utf8_nc4.cdl
|
|
|
|
${NCGEN} -4 -b -o tst_utf8_nc4.nc ${srcdir}/ref_tst_utf8_4.cdl
|
|
|
|
${NCDUMP} -n 'utf8' tst_utf8_nc4.nc > tst_utf8_nc4.cdl
|
|
|
|
diff -b -w tst_utf8_nc4.cdl ${srcdir}/ref_tst_utf8_4.cdl
|
2015-10-23 04:09:19 +08:00
|
|
|
|
2017-11-25 20:18:04 +08:00
|
|
|
echo "*** NetCDF-4 UTF8 testing passed!"
|
|
|
|
exit 0
|