# Run the tests in each of the subdirectories.

subdir_failures=""
for dir in *
do
        if test -d $dir -a -x $dir/runtests
        then
                cd $dir
                # we need to use `eval' here to get the quoting right in
                # the case when $runtestopts contains embedded spaces
                if eval ./runtests $runtestopts
                then
                        true
                else
                        subdir_failures="$subdir_failures $dir"
                fi
                cd ..
        fi
done

