File: test.sh

package info (click to toggle)
pgpdump 0.33-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 508 kB
  • sloc: ansic: 2,334; makefile: 82; sh: 33; haskell: 29
file content (20 lines) | stat: -rwxr-xr-x 320 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
#!/bin/sh

cd "$(dirname "$0")"

[ X"$1" = X-v ] && verbose=true || verbose=false
status=0

for out in *.res; do
	in=${out%.res}
	diff=$(../pgpdump -u < "$in" | diff -au "$out" -)
	if [ -n "$diff" ]; then
		status=1
		echo "$in FAIL"
		$verbose && echo "$diff"
	else
		$verbose && echo "$in PASS"
	fi
done

exit $status