trAvis - MANAGER
Edit File: run
#! /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: [ -d /usr/lib64 ] && DB_TEST_RUN_TESTS=/usr/lib64/php/build/run-tests.php || DB_TEST_RUN_TESTS=/usr/lib/php/build/run-tests.php # The path and name of your PHP CLI executable # (example c:/progra~1/php.exe): TEST_PHP_EXECUTABLE=/usr/bin/php # The full path to the present directory # (not using $PWD due to Cygwin): DB_TEST_DIR=/usr/share/tests/pear/DB/tests # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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}