#! /bin/sh

# $Id: run.cvs,v 1.2 2004/02/20 18:57:52 danielc Exp $

# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
# PEAR DB TEST STARTER
#
#   To run all tests:  ./run
#   To run one test:   ./run <test file name>
#   Example:           ./run db_parsedsn.phpt
#
# Before running the tests you must adjust the
# following three variables:

#   The full path to your PHP directory:
DB_TEST_PHP_PATH=/usr/lib/php/build

#   The name of your PHP CLI executable
#   (examples php.exe, php-cli.exe, cli/php.exe):
DB_TEST_PHP_CLI=php

#   The full path to the present directory
#   (not using $PWD due to Cygwin):
DB_TEST_DIR=/usr/share/pear/test/DB/tests/driver

# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^



TEST_PHP_EXECUTABLE=/usr/bin/php
export TEST_PHP_EXECUTABLE

if [ $# -gt 0 ]
then
    test=$1
else
    test=*.phpt
fi

$TEST_PHP_EXECUTABLE $DB_TEST_PHP_PATH/run-tests.php $DB_TEST_DIR/${test}
