File: enc-dec-files.sh

package info (click to toggle)
codegroup 20080907%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 368 kB
  • sloc: ansic: 520; makefile: 88; sh: 9
file content (17 lines) | stat: -rwxr-xr-x 298 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -eu

out="$AUTOPKGTEST_TMP/out"

## main
for f in `ls -d debian/tests/data/*`; do
    echo "Enc/Dec file $f ..."

    codegroup -e $f $out.5l
    codegroup -d $out.5l $out.dec

    cmp -s $f $out.dec || { echo "ERROR: $f differs from $out.dec"; exit 1;}

    echo "\t Success."
done