home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / TESTERS < prev    next >
Encoding:
Text File  |  2004-03-24  |  4.6 KB  |  135 lines

  1. ===================
  2. HOW TO TEST PEAR DB
  3. ===================
  4.  
  5. $Id: TESTERS,v 1.17 2004/02/20 18:56:56 danielc Exp $
  6.  
  7.  
  8. INTRODUCTION
  9. ============
  10.  
  11. These are instructions for testing PEAR DB on a Windows machine using a
  12. Cygwin Bash shell.  Adjust the paths and commands to match your system.
  13. This configuration is used because these precise steps are known to work.
  14.  
  15. NOTE:  You must log on as a user which has permissions to modify the
  16. contents of your PHP executable's directory.  This is necessary for both
  17. configuring AND running the test system.
  18.  
  19.  
  20. INSTALLATION
  21. ============
  22.  
  23. Obtain PHP's Test Framework
  24. ---------------------------
  25. If you don't have PHP's test framework, you need to obtain it.  These
  26. steps include changing the working directory, downloading run-tests.php
  27. via CVS and copying the file into place.  Change the revision flag in the
  28. CVS command as appropriate for your present version of PHP.
  29.  
  30.  cd c:/progra~1/php
  31.  cvs -d :pserver:cvsread@cvs.php.net:/repository login   # password is phpfi
  32.  cvs -d :pserver:cvsread@cvs.php.net:/repository co -r PHP_4_3 \
  33.      -d test php-src/run-tests.php
  34.  cp test/run-tests.php .
  35.  rm -rf test
  36.  
  37.  
  38. Obtain DB and its Test Framework
  39. --------------------------------
  40. Create a location to store the test installation of DB and its test
  41. scripts.
  42.  
  43.  mkdir d:/peartest
  44.  cd d:/peartest
  45.  cvs -d :pserver:cvsread@cvs.php.net:/repository co -P pear/DB
  46.  
  47. We assume you already have the PEAR base package installed.  If you
  48. don't, you will need to do so, but the instructions for doing that
  49. are beyond the scope of this document.
  50.  
  51.  
  52. Copy the Starter Shell Script and Edit the Paths
  53. ------------------------------------------------
  54. To make starting up each test run easier, we have included two shell
  55. scripts.  The original files are named "run.cvs".  They need to be
  56. renamed to "run" so CVS won't bother you with tracking them.  Then,
  57. the paths and file names in them need to be set to those used by
  58. your system.
  59.  
  60.  cd pear/DB/tests
  61.  cp run.cvs run
  62.  chmod 755 run
  63.  vi run
  64.  
  65.  cd driver
  66.  cp run.cvs run
  67.  chmod 755 run
  68.  vi run
  69.  
  70.  
  71. Copy the Setup File and Edit the DSN's
  72. --------------------------------------
  73. The test suite contains a file that stores the DSN's needed to
  74. connect to your database.  The original file is "setup.inc.cvs"
  75. and it needs to be renamed "setup.inc" so CVS won't track it.
  76. Then you'll need to edit the DSN's in it.
  77.  
  78.  cp setup.inc.cvs setup.inc
  79.  vi setup.inc
  80.  
  81.  
  82. RUN THE TESTS
  83. =============
  84.  
  85. To run all tests:  ./run
  86. To run one test:   ./run <test file name>
  87. Example:           ./run db_parsedsn.phpt
  88.  
  89.  
  90. Test Types and Locations
  91. ------------------------
  92. tests             Common PEAR DB tests
  93. tests/driver      Common tests for all the drivers
  94.  
  95.  
  96. Results and What To Do With Them
  97. --------------------------------
  98. Each test that fails generates a .php (which you can execute), a .exp
  99. (the expected output), a .out (the test output) and a .diff (a diff -u
  100. from the .exp and .out files).
  101.  
  102. If you run the tests, please report or fill the TEST CONFORMANCE table
  103. in the STATUS document.  Before any commit to CVS be sure to run the
  104. tests and nothing got broken with the change.
  105.  
  106. If you get the message "SKIP", means that the test it's not executed.
  107. Look at the DB/tests/driver/skipif.inc to see what's the problem
  108. (probably a connection problem).
  109.  
  110.  
  111. DB TESTER MATRIX
  112. ================
  113.                                 fbsql    ifx    mssql   mysqli   odbc   sqlite
  114. TESTER                      dbase | ibase |  msql | mysql |  oci8 | pgsql | sybase
  115. John Horton                   -   -   -   X   -   -   -   -   -   -   -   -   -
  116. Tim Zickus                    -   -   -   -   -   -   -   -   X   -   -   -   -
  117. Tim Parkin                    -   -   -   -   -   -   -   -   X   -   -   -   -
  118. Paul Gardiner                 -   -   -   X   -   -   -   -   -   -   -   -   -
  119. peterwb@iafrica.com           -   -   -   X   -   -   -   -   -   -   -   -   -
  120. Daniel, Adam                  -   -   -   -   -   -   -   -   X   -   -   -   -
  121. szii@sziisoft.com             -   -   -   -   -   -   -   -   -   X╣  -   -   -
  122. jmh3@linuxfreak.com           -   -   -   -   -   -   -   -   -   -   X   -   -
  123. Kevin Henrikson               -   -   -   -   -   -   -   -   X   -   -   -   -
  124. Stig Bakken                   -   -   -   -   -   -   X   -   -   -   X   -   -
  125. Chuck Hagenbuch               -   -   -   -   -   X   -   -   -   -   -   -   -
  126. Ludovico Magnocavallo         -   -   X   -   -   -   -   -   -   -   -   -   -
  127. Daniel Convissor              -   -   X   -   -   X   X   -   X   X▓  X   X   X
  128.                                                                            
  129. MISSING TESTERS               -   X   -   -   X   -   -   X   -   -   -   -   -
  130.  
  131. Comments:
  132.  
  133. [1]: ODBC using IBM DB2
  134. [2]: ODBC using IBM DB2 and MS Access
  135.