From 990980392c754edac0b4f8325458f1055c7ba0d8 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Wed, 15 May 2013 22:44:15 +0200 Subject: No unit test coverage reports for pgsql - this causes issues on Jenkins. --- autotest.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'autotest.sh') diff --git a/autotest.sh b/autotest.sh index fdf6d2fe098..267815e96d8 100755 --- a/autotest.sh +++ b/autotest.sh @@ -90,7 +90,12 @@ function execute_tests { rm -rf coverage-html-$1 mkdir coverage-html-$1 php -f enable_all.php - phpunit --configuration phpunit-autotest.xml --log-junit autotest-results-$1.xml --coverage-clover autotest-clover-$1.xml --coverage-html coverage-html-$1 + if [ "$1" == "pgsql" ] ; then + # no coverage with pg - causes segfault on ci.tmit.eu - reason unknown + phpunit --configuration phpunit-autotest.xml --log-junit autotest-results-$1.xml + else + phpunit --configuration phpunit-autotest.xml --log-junit autotest-results-$1.xml --coverage-clover autotest-clover-$1.xml --coverage-html coverage-html-$1 + fi } # -- cgit v1.2.3 From a753d14de91f02a418b6658fc72104b21b60b92b Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Fri, 24 May 2013 15:19:13 +0200 Subject: adding Oracle support to autotest.sh --- autotest.sh | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 55 insertions(+), 4 deletions(-) (limited to 'autotest.sh') diff --git a/autotest.sh b/autotest.sh index 267815e96d8..0c59ee51a05 100755 --- a/autotest.sh +++ b/autotest.sh @@ -54,6 +54,22 @@ cat > ./tests/autoconfig-pgsql.php < ./tests/autoconfig-oci.php < false, + 'dbtype' => 'oci', + 'dbtableprefix' => 'oc_', + 'adminlogin' => 'admin', + 'adminpass' => 'admin', + 'directory' => '$BASEDIR/$DATADIR', + 'dbuser' => 'oc_autotest', + 'dbname' => 'XE', + 'dbhost' => 'localhost', + 'dbpass' => 'owncloud', +); +DELIM + function execute_tests { echo "Setup environment for $1 testing ..." # back to root folder @@ -77,6 +93,30 @@ function execute_tests { if [ "$1" == "pgsql" ] ; then dropdb -U oc_autotest oc_autotest fi + if [ "$1" == "oci" ] ; then + echo "drop the database" + sqlplus -s -l / as sysdba < Date: Fri, 24 May 2013 21:50:34 +0200 Subject: meanwhile phpunit is seq faulting with mysql as well --- autotest.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'autotest.sh') diff --git a/autotest.sh b/autotest.sh index 0c59ee51a05..4562b3ed08a 100755 --- a/autotest.sh +++ b/autotest.sh @@ -130,11 +130,11 @@ EOF rm -rf coverage-html-$1 mkdir coverage-html-$1 php -f enable_all.php - if [ "$1" == "pgsql" ] ; then - # no coverage with pg - causes segfault on ci.tmit.eu - reason unknown - phpunit --configuration phpunit-autotest.xml --log-junit autotest-results-$1.xml - else + if [ "$1" == "sqlite" ] ; then + # coverage only with sqlite - causes segfault on ci.tmit.eu - reason unknown phpunit --configuration phpunit-autotest.xml --log-junit autotest-results-$1.xml --coverage-clover autotest-clover-$1.xml --coverage-html coverage-html-$1 + else + phpunit --configuration phpunit-autotest.xml --log-junit autotest-results-$1.xml fi } -- cgit v1.2.3