blob: e4afbd2c4bc6677c58c0a71e3cd1d7c2fc379d6d [file] [log] [blame]
Samuel A. Falvo IId6092ad2013-06-25 14:07:25 -07001#!/bin/bash
2#
3# This script is responsible for executing all the acceptance tests found in
4# the acceptance/ directory.
5
6# Find where _this_ script is running from.
7SCRIPTS=$(dirname $0)
8SCRIPTS=$(cd $SCRIPTS; pwd)
9
10# Locate the acceptance test / examples directory.
11ACCEPTANCE=$(cd $SCRIPTS/../acceptance; pwd)
12
13# Run all acceptance tests sequentially.
14# If any test fails, we fail fast.
15for T in $(ls -1 $ACCEPTANCE); do
16 if [ -x $ACCEPTANCE/$T ]; then
17 echo "$ACCEPTANCE/$T -quiet ..."
18 if ! $ACCEPTANCE/$T -quiet ; then
19 echo "- FAILED. Try re-running w/out the -quiet option to see output."
20 exit 1
21 fi
22 fi
23done
24