1#!/bin/sh
2mkdir -p results
3if [ -f /usr/ucb/touch ] ; then
4	TOUCH=/usr/ucb/touch
5else
6	if [ -f /usr/bin/touch ] ; then
7		TOUCH=/usr/bin/touch
8	else
9		if [ -f /bin/touch ] ; then
10			TOUCH=/bin/touch
11		fi
12	fi
13fi
14echo "$1...";
15/bin/cp /dev/null results/$1
16case $3 in
17ipf)
18	../ipf -Rnvf regress/$1 2>/dev/null > results/$1
19	;;
20ipftest)
21	../ipftest -D -r regress/$1 -i /dev/null > results/$1
22	;;
23esac
24cmp expected/$1 results/$1
25status=$?
26if [ $status = 0 ] ; then
27	$TOUCH $1
28fi
29exit $status
30