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

cd test
for i in `grep -E "^[a-z0-9_-]*:$" Maketests |awk -F: '{print $1}'`; do
  unset LANG
  grep -q "^$i$" skipped.txt
  if [ $? -eq 0 ]; then
    echo "SKIP: $i"
    continue
  fi
  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