blob: 7d3ded69d5369bd5b69229a3b2318fc82cbd6308 [file] [log] [blame]
Arnold D. Robbins32093f52018-08-22 20:40:26 +03001#! /bin/sh
2
Arnold D. Robbins40c69162018-08-29 21:18:21 +03003case `uname` in
4CYGWIN) EXE=a.exe ;;
5*) EXE=a.out ;;
6esac
7
8if [ ! -f $EXE ]
9then
10 make || exit 1
11fi
12
Arnold D. Robbins32093f52018-08-22 20:40:26 +030013if [ -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
Brian Kernighanba7569c2018-08-16 09:41:13 -040025cd testdir
26pwd
Arnold D. Robbins32093f52018-08-22 20:40:26 +030027PATH=.:$PATH
28export PATH
Arnold D. Robbins40c69162018-08-29 21:18:21 +030029if (ulimit -c unlimited > /dev/null 2>&1)
30then
31 # Workaround broken default on MacOS X
32 ulimit -c unlimited
33fi
Arnold D. Robbins32093f52018-08-22 20:40:26 +030034
Brian Kernighanba7569c2018-08-16 09:41:13 -040035REGRESS