File: diff_tmp_out

package info (click to toggle)
botch 0.24-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,084,624 kB
  • sloc: xml: 11,924,892; ml: 4,489; python: 3,890; sh: 1,268; makefile: 334
file content (20 lines) | stat: -rwxr-xr-x 932 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

set -exu

testname="$1"
# the "while : ; do" loop around graph-difference is a temporary fix to work
# around random segmentation faults. See http://bugs.python.org/issue24605
for t in tmp out; do
	for f in tests/$testname/$t/* $AUTOPKGTEST_TMP/$t/*; do basename "$f"; done | sort | uniq | while read f; do
		echo checking $f;
		case "$f" in
			*.xml|*.dot)
				echo "+ botch-graph-difference \"tests/$testname/$t/$f\" \"$AUTOPKGTEST_TMP/$t/$f\"";
				while : ; do botch-graph-difference "tests/$testname/$t/$f" "$AUTOPKGTEST_TMP/$t/$f"; exit=$?; if [ $exit -eq 139 ]; then echo segfault; continue; fi; if [ $exit -ne 0 ]; then exit 1; else break; fi; done;;
			*)
				echo "+ diff -u \"tests/$testname/$t/$f\" \"$AUTOPKGTEST_TMP/$t/$f\"";
				cmp --silent "tests/$testname/$t/$f" "$AUTOPKGTEST_TMP/$t/$f" || { diff -u "tests/$testname/$t/$f" "$AUTOPKGTEST_TMP/$t/$f" | head --lines 100 && exit 1; };;
		esac;
	done
done