#!/bin/bash for i in "`dirname $0`"/tests.d/*; do $i if [ $? -ne 0 ]; then echo "FAIL: `basename $i`" exit 1 fi done