aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/poco/poco/run-ptest
blob: c8e50fc967ba20a67f1298179d8538e778c7380e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
export POCO_BASE=/usr/lib/poco/ptest
export LD_LIBRARY_PATH=${POCO_BASE}/bin:${LD_LIBRARY_PATH}
i=0
while read runner; do
  oldpath=`pwd` >/dev/null
  cd bin
  echo Testing $runner
  ./$runner -ignore $oldpath/cppignore.lnx -all
  export res$((i++))=$?
  cd $oldpath >/dev/null
done < testrunners
i=0
while read runner; do
  eval assign=\$res$((i++))
  if [ $assign -ne 0 ]; then
    echo "FAIL: $runner"
  else
    echo "PASS: $runner"
  fi
done < testrunners