File: run.cvs

package info (click to toggle)
php-db 1.12.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,040 kB
  • sloc: php: 7,407; pascal: 1,002; xml: 205; sh: 22; makefile: 8
file content (39 lines) | stat: -rwxr-xr-x 1,037 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#! /bin/sh

# 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 path and name of your run-tests.php file for PHP 5.2:
#    DB_TEST_RUN_TESTS="c:/progra~1/php/run-tests.php -d error_reporting=6143"
#   The path and name of your run-tests.php file for PHP >= 5.3:
    DB_TEST_RUN_TESTS="c:/progra~1/php/run-tests.php -d error_reporting=22527"

#   The path and name of your PHP CLI executable
#   (example c:/progra~1/php.exe):
    TEST_PHP_EXECUTABLE=c:/progra~1/php.exe

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

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



export TEST_PHP_EXECUTABLE

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

$TEST_PHP_EXECUTABLE $DB_TEST_RUN_TESTS $DB_TEST_DIR/${test}