File: run_utf8_nc4_tests.sh

package info (click to toggle)
netcdf-parallel 1%3A4.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 101,668 kB
  • sloc: ansic: 200,241; sh: 10,807; yacc: 2,522; makefile: 1,306; lex: 1,153; xml: 173; awk: 2
file content (18 lines) | stat: -rwxr-xr-x 507 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# This script runs UTF-8 tests for netCDF-4.
# Ward Fisher, Dennis Heimbigner, Ed Hartnett

if test "x$srcdir" = x ; then srcdir=`pwd`; fi 
. ../test_common.sh
set -e

echo ""
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

echo "*** NetCDF-4 UTF8 testing passed!"
exit 0