forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
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