File: test

package info (click to toggle)
pgpdump 0.36-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 572 kB
  • sloc: ansic: 2,583; makefile: 82; sh: 33; haskell: 29
file content (22 lines) | stat: -rw-r--r-- 362 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -e

if [ -x ./pgpdump ]; then
	PGPDUMP=./pgpdump
else
	PGPDUMP=pgpdump
fi

res=0
for file in $(find data -name '*.res' -type f | env LANG=C sort); do
    src=$(basename "$file" .res)
    printf '%s' "$src"
    if env TZ=UTC "$PGPDUMP" "data/$src" | cmp -s - "$file"; then
	echo " ok"
    else
	echo " failed"
        res=1
    fi
done
exit "$res"