#!/bin/sh

set allow_null_glob_expansion

rc=0
for x in *; do
  if [ -f $x -a -x $x ]; then
    echo
    echo Running test $x
    if ! ./$x --selftest; then
      echo "** FAIL in $x"
      rc=1;
    fi
  fi
done

exit $rc