From 7810f5fe6939d57712fbec2ce1bd5d77f98725e6 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sat, 18 Jun 2011 23:23:43 +0200 Subject: [PATCH] Add convenience helper for running tests against multiple different databases --- run-all.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 run-all.sh diff --git a/run-all.sh b/run-all.sh new file mode 100755 index 000000000..80712eebc --- /dev/null +++ b/run-all.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# This script is a small convenience wrapper for running the doctrine testsuite against a large bunch of databases. +# Just create the phpunit.xmls as described in the array below and configure the specific files section +# to connect to that database. Just omit a file if you dont have that database and the tests will be skipped. + +configs[1]="mysql.phpunit.xml" +configs[2]='postgres.phpunit.xml' +configs[3]='sqlite.phpunit.xml' +configs[4]='oracle.phpunit.xml' +configs[5]='db2.phpunit.xml' +configs[6]='pdo-ibm.phpunit.xml' +configs[7]='sqlsrv.phpunit.xml' + +for i in "${configs[@]}"; do + if [ -f "$i" ]; + then + echo "RUNNING TESTS WITH CONFIG $i" + phpunit -c "$i" "$@" + fi; +done