source: trunk/essentials/sys-apps/gawk/test/regtest.sh

Last change on this file was 3076, checked in by bird, 18 years ago

gawk 3.1.5

File size: 263 bytes
Line 
1#! /bin/sh
2
3case "$AWK" in
4"") AWK=../gawk ;;
5esac
6#AWK=${AWK:-../gawk}
7
8for i in reg/*.awk
9do
10 it=`basename $i .awk`
11 $AWK -f $i <reg/$it.in >reg/$it.out 2>&1
12 if diff reg/$it.out reg/$it.good
13 then
14 rm -f reg/$it.out
15 else
16 echo "regtest: $it fails"
17 fi
18done
Note: See TracBrowser for help on using the repository browser.