mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
98caf87116
re: https://github.com/Unidata/netcdf-c/issues/1330 The ncgen utility is documented to accept octal integer constants if the leading digit is zero. This was not implemented. Fix ncgen.l to properly handle such constants. Also add a test to c0.cdl.
17 lines
456 B
Bash
Executable File
17 lines
456 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
|
. ../test_common.sh
|
|
|
|
set -e
|
|
|
|
echo "*** Test integer constant radix specifications"
|
|
echo "*** creating tst_radix.nc from tst_radix.cdl..."
|
|
${NCGEN} -lb -o tst_radix.nc $srcdir/tst_radix.cdl
|
|
echo "*** creating tmp_radix.cdl from radix.nc..."
|
|
${NCDUMP} tst_radix.nc > tmp_radix.cdl
|
|
echo "*** comparing tmp_radix.cdl to ref_tst_radix.cdl..."
|
|
diff -b -w tmp_radix.cdl $srcdir/ref_tst_radix.cdl
|
|
|
|
exit 0
|