File: test_cksum_base.in

package info (click to toggle)
cdo 2.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 49,836 kB
  • sloc: cpp: 185,271; ansic: 95,766; sh: 7,192; f90: 6,147; makefile: 1,977; ruby: 1,078; csh: 1,028; python: 995; fortran: 319; pascal: 219; perl: 9
file content (45 lines) | stat: -rw-r--r-- 924 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This file is meant to be included for the supported file formats.

prefix=`echo "$0" | sed 's@.*/@@'`
suffix=${suffix-grb}

case ${suffix} in
  grb)
    test 'x@ENABLE_GRIB@' = xyes || exit 77
    ;;
  grb2)
    @HAVE_LIBGRIB_API_FALSE@exit 77
    test 'x@ENABLE_GRIB@' = xyes || exit 77
    ;;
  nc)
    @ENABLE_NETCDF_FALSE@exit 77
    ;;
  nc2)
    @ENABLE_NETCDF_FALSE@exit 77
    ;;
  nc4)
    @ENABLE_NETCDF_FALSE@exit 77
    ;;
  srv)
    test 'x@ENABLE_SERVICE@' = xyes || exit 77
    ;;
  ext)
    test 'x@ENABLE_EXTRA@' = xyes || exit 77
    ;;
  ieg)
    test 'x@ENABLE_IEG@' = xyes || exit 77
    ;;
  *)
    echo "Unsupported suffix '${suffix}'" >&2
    exit 1
    ;;
esac

../libtool --mode=execute ${tool_wrap} ./cksum_write -b "${prefix}" -f ${suffix} || exit 1
../libtool --mode=execute ${tool_wrap} ./cksum_read "${prefix}.${suffix}" "${prefix}.cksum" || exit 1

#
# Local Variables:
# mode: sh
# End:
#