run-all.sh 723B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # This script is a small convenience wrapper for running the doctrine testsuite against a large bunch of databases.
  3. # Just create the phpunit.xmls as described in the array below and configure the specific files <php /> section
  4. # to connect to that database. Just omit a file if you dont have that database and the tests will be skipped.
  5. configs[1]="mysql.phpunit.xml"
  6. configs[2]='postgres.phpunit.xml'
  7. configs[3]='sqlite.phpunit.xml'
  8. configs[4]='oracle.phpunit.xml'
  9. configs[5]='db2.phpunit.xml'
  10. configs[6]='pdo-ibm.phpunit.xml'
  11. configs[7]='sqlsrv.phpunit.xml'
  12. for i in "${configs[@]}"; do
  13. if [ -f "$i" ];
  14. then
  15. echo "RUNNING TESTS WITH CONFIG $i"
  16. phpunit -c "$i" "$@"
  17. fi;
  18. done