1eb8dc403SDave Cobbley#!/bin/sh
2*220dafdbSAndrew Geisslerexport POCO_BASE=/usr/lib/poco/ptest
3*220dafdbSAndrew Geisslerexport LD_LIBRARY_PATH=${POCO_BASE}/bin:${LD_LIBRARY_PATH}
4*220dafdbSAndrew Geissleri=0
5eb8dc403SDave Cobbleywhile read runner; do
68e7b46e2SPatrick Williams  oldpath=`pwd` >/dev/null
7eb8dc403SDave Cobbley  cd bin
8eb8dc403SDave Cobbley  echo Testing $runner
92a25492cSPatrick Williams  ./$runner -ignore $oldpath/cppignore.lnx -all
10*220dafdbSAndrew Geissler  export res$((i++))=$?
118e7b46e2SPatrick Williams  cd $oldpath >/dev/null
12eb8dc403SDave Cobbleydone < testrunners
13*220dafdbSAndrew Geissleri=0
14*220dafdbSAndrew Geisslerwhile read runner; do
15*220dafdbSAndrew Geissler  eval assign=\$res$((i++))
16*220dafdbSAndrew Geissler  if [ $assign -ne 0 ]; then
17*220dafdbSAndrew Geissler    echo "FAIL: $runner"
18*220dafdbSAndrew Geissler  else
19*220dafdbSAndrew Geissler    echo "PASS: $runner"
20*220dafdbSAndrew Geissler  fi
21*220dafdbSAndrew Geisslerdone < testrunners
22