summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/gawk/gawk/run-ptest
blob: f67a95874f4d23fbb07be8538ce1b3c3922f1283 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

cd test
for i in `grep -E "^[a-z0-9_-]*:$" Maketests |awk -F: '{print $1}'`; do
  #LC_ALL=${GAWKLOCALE:-C} LANG=${GAWKLOCALE:-C} 
  srcdir=`pwd` AWKPROG=gawk AWK=gawk CMP=cmp make -f Maketests $i >$i.tmp 2>&1
  if [ -e _$i ]; then
    cat _$i
    grep -q "support not compiled in" _$i
    if [ $? -eq 0 ]; then
      echo "SKIP: $i"
      continue
    fi
  fi
  grep -q "Error" $i.tmp
  if [ $? -eq 0 ]; then
    echo "FAIL: $i"
  else
    echo "PASS: $i"
    rm -f $i.tmp
  fi
done