File: check_delete_calls.sh

package info (click to toggle)
gxemul 0.7.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 12,172 kB
  • sloc: ansic: 111,086; sh: 972; exp: 354; makefile: 118
file content (24 lines) | stat: -rwxr-xr-x 463 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
23
24
#!/bin/sh

rm -f tmp_delete.out
LC_ALL=C grep -R "delete " src|grep -v \\.svn|cut -d \: -f 1|sort|uniq |grep -v "inary file" > tmp_delete.out 2> /dev/null

ANYERRORS=0

for a in `cat tmp_delete.out`; do
	# Is $a a known exception?
	if grep -q $a test/check_delete_calls.exceptions; then
		:
	else
		printf "\nError: $a is not in check_delete_calls.exceptions!"
		ANYERRORS=1
	fi
done

rm -f tmp_delete.out

if [ z$ANYERRORS = z1 ]; then
	printf "\n\n"
	false
fi