Further modules included.
[yaffs-website] / web / modules / contrib / devel / run-tests-drush.sh
1 #!/usr/bin/env sh
2
3 # This script will run phpunit-based test classes using Drush's
4 # test framework.  First, the Drush executable is located, and
5 # then phpunit is invoked, pointing to Drush's phpunit.xml as
6 # the configuration.
7 #
8 # Any parameters that may be passed to `phpunit` may also be used
9 # with this script.
10
11 DRUSH_PATH="`which drush`"
12 DRUSH_DIRNAME="`dirname -- "$DRUSH_PATH"`"
13 # The following line is needed is you use a `drush` that differs from `which drush`
14 # export UNISH_DRUSH=$DRUSH_PATH
15
16 if [ $# = 0 ] ; then
17    phpunit --configuration="$DRUSH_DIRNAME/tests" drush
18 else
19    # Pass along any arguments.
20    phpunit --configuration="$DRUSH_DIRNAME/tests" $@
21 fi