2018-08-22 13:40:26 -04:00
|
|
|
#! /bin/sh
|
|
|
|
|
2018-08-29 14:18:21 -04:00
|
|
|
case `uname` in
|
|
|
|
CYGWIN) EXE=a.exe ;;
|
|
|
|
*) EXE=a.out ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if [ ! -f $EXE ]
|
|
|
|
then
|
|
|
|
make || exit 1
|
|
|
|
fi
|
|
|
|
|
2018-08-22 13:40:26 -04:00
|
|
|
if [ -d testdir ]
|
|
|
|
then
|
|
|
|
true # do nothing
|
|
|
|
elif [ -f awktest.tar ]
|
|
|
|
then
|
|
|
|
echo extracting testdir
|
|
|
|
tar -xpf awktest.tar
|
|
|
|
else
|
|
|
|
echo $0: No testdir directory and no awktest.tar to extract it from! >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2018-08-16 09:41:13 -04:00
|
|
|
cd testdir
|
|
|
|
pwd
|
2018-08-22 13:40:26 -04:00
|
|
|
PATH=.:$PATH
|
|
|
|
export PATH
|
2018-08-29 14:18:21 -04:00
|
|
|
if (ulimit -c unlimited > /dev/null 2>&1)
|
|
|
|
then
|
|
|
|
# Workaround broken default on MacOS X
|
|
|
|
ulimit -c unlimited
|
|
|
|
fi
|
2018-08-22 13:40:26 -04:00
|
|
|
|
2018-08-16 09:41:13 -04:00
|
|
|
REGRESS
|