xref: /freebsd/contrib/one-true-awk/REGRESS (revision f7c32ed617858bcd22f8d1b03199099d50125721)
1#! /bin/sh
2
3case `uname` in
4CYGWIN)	EXE=a.exe ;;
5*)	EXE=a.out ;;
6esac
7
8if [ ! -f $EXE ]
9then
10	make || exit 1
11fi
12
13if [ -d testdir ]
14then
15	true	# do nothing
16elif [ -f awktest.tar ]
17then
18	echo extracting testdir
19	tar -xpf awktest.tar
20else
21	echo $0: No testdir directory and no awktest.tar to extract it from! >&2
22	exit 1
23fi
24
25cd testdir
26pwd
27PATH=.:$PATH
28export PATH
29if (ulimit -c unlimited > /dev/null 2>&1)
30then
31	# Workaround broken default on MacOS X
32	ulimit -c unlimited
33fi
34
35REGRESS
36
37cd ..
38cd bugs-fixed
39REGRESS
40