~vcs-imports/gawk/master

« back to all changes in this revision

Viewing changes to test/regtest.sh

  • Committer: Arnold D. Robbins
  • Date: 2010-07-16 10:09:56 UTC
  • Revision ID: git-v1:bc70de7b3302d5a81515b901cae376b8b51d2004
Tags: gawk-3.1.0
Move to gawk-3.1.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
case "$AWK" in
 
4
"")     AWK=../gawk ;;
 
5
esac
 
6
#AWK=${AWK:-../gawk}
 
7
 
 
8
for i in reg/*.awk
 
9
do
 
10
        it=`basename $i .awk`
 
11
        $AWK -f $i <reg/$it.in >reg/$it.out 2>&1
 
12
        if cmp -s reg/$it.out reg/$it.good
 
13
        then
 
14
                rm -f reg/$it.out
 
15
        else
 
16
                echo "regtest: $it fails"
 
17
        fi
 
18
done