Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
#! /bin/sh
2
 
3
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
4
# PEAR DB TEST STARTER
5
#
6
#   To run all tests:  ./run
7
#   To run one test:   ./run <test file name>
8
#   Example:           ./run db_parsedsn.phpt
9
#
10
# Before running the tests you must adjust the
11
# following three variables:
12
 
13
#   The path and name of your run-tests.php file:
14
    DB_TEST_RUN_TESTS=c:/progra~1/php/run-tests.php
15
 
16
#   The path and name of your PHP CLI executable
17
#   (example c:/progra~1/php.exe):
18
    TEST_PHP_EXECUTABLE=c:/progra~1/php.exe
19
 
20
#   The full path to the present directory
21
#   (not using $PWD due to Cygwin):
22
    DB_TEST_DIR=d:/peartest/pear/DB/tests
23
 
24
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25
 
26
 
27
 
28
export TEST_PHP_EXECUTABLE
29
 
30
if [ $# -gt 0 ]
31
then
32
    test=$1
33
else
34
    test=*.phpt
35
fi
36
 
37
$TEST_PHP_EXECUTABLE $DB_TEST_RUN_TESTS $DB_TEST_DIR/${test}