xref: /freebsd/contrib/one-true-awk/REGRESS (revision f39dd6a9784467f0db5886012b3f4b13899be6b8)
1b5253557SWarner Losh#! /bin/sh
2b5253557SWarner Losh
3b5253557SWarner Loshcase `uname` in
4b5253557SWarner LoshCYGWIN)	EXE=a.exe ;;
5b5253557SWarner Losh*)	EXE=a.out ;;
6b5253557SWarner Loshesac
7b5253557SWarner Losh
8b5253557SWarner Loshif [ ! -f $EXE ]
9b5253557SWarner Loshthen
10b5253557SWarner Losh	make || exit 1
11b5253557SWarner Loshfi
12b5253557SWarner Losh
13b5253557SWarner Loshif [ -d testdir ]
14b5253557SWarner Loshthen
15b5253557SWarner Losh	true	# do nothing
16b5253557SWarner Loshelif [ -f awktest.tar ]
17b5253557SWarner Loshthen
18b5253557SWarner Losh	echo extracting testdir
19b5253557SWarner Losh	tar -xpf awktest.tar
20b5253557SWarner Loshelse
21b5253557SWarner Losh	echo $0: No testdir directory and no awktest.tar to extract it from! >&2
22b5253557SWarner Losh	exit 1
23b5253557SWarner Loshfi
24b5253557SWarner Losh
25b5253557SWarner Loshcd testdir
26b5253557SWarner Loshpwd
27b5253557SWarner LoshPATH=.:$PATH
28b5253557SWarner Loshexport PATH
29b5253557SWarner Loshif (ulimit -c unlimited > /dev/null 2>&1)
30b5253557SWarner Loshthen
31b5253557SWarner Losh	# Workaround broken default on MacOS X
32b5253557SWarner Losh	ulimit -c unlimited
33b5253557SWarner Loshfi
34b5253557SWarner Losh
35b5253557SWarner LoshREGRESS
36*f39dd6a9SWarner Losh
37*f39dd6a9SWarner Loshcd ..
38*f39dd6a9SWarner Loshcd bugs-fixed
39*f39dd6a9SWarner LoshREGRESS
40