Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2012-10-27 13:22:00 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2012-10-27 13:43:24 +0400
commit74665faec533430be37879bfc0ef24aa7f211f6e (patch)
treedcc15f1d0e785616b237e0bbc71040ac511b994e
parent22dcd3b6a691c7a245e4d1de30f09bb17efdfceb (diff)
exeuting tests now on apps as well - the apps repo shall be cloned into the sub folder apps2
-rwxr-xr-xautotest.sh6
-rw-r--r--tests/enable_all.php20
-rw-r--r--tests/preseed-config.php19
3 files changed, 43 insertions, 2 deletions
diff --git a/autotest.sh b/autotest.sh
index 56296c6a513..744bcdbe8f9 100755
--- a/autotest.sh
+++ b/autotest.sh
@@ -9,7 +9,7 @@
DATADIR=data-autotest
BASEDIR=$PWD
-# create autoconfig for sqlite, mysql and (soon) postgresql
+# create autoconfig for sqlite, mysql and postgresql
cat > ./tests/autoconfig-sqlite.php <<DELIM
<?php
\$AUTOCONFIG = array (
@@ -67,7 +67,8 @@ function execute_tests {
mkdir $DATADIR
# remove the old config file
- rm -rf config/config.php
+ #rm -rf config/config.php
+ cp tests/preseed-config.php config/config.php
# drop database
if [ "$1" == "mysql" ] ; then
@@ -88,6 +89,7 @@ function execute_tests {
cd tests
rm -rf coverage-html-$1
mkdir coverage-html-$1
+ php -f enable_all.php
phpunit --log-junit autotest-results-$1.xml --coverage-clover autotest-clover-$1.xml --coverage-html coverage-html-$1
}
diff --git a/tests/enable_all.php b/tests/enable_all.php
new file mode 100644
index 00000000000..02e35518d64
--- /dev/null
+++ b/tests/enable_all.php
@@ -0,0 +1,20 @@
+<?php
+/**
+ * Copyright (c) 2012 Thomas Müller <thomas.mueller@tmit.eu>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+require_once __DIR__.'/../lib/base.php';
+
+OC_App::enable('calendar');
+OC_App::enable('contacts');
+OC_App::enable('files_archive');
+OC_App::enable('mozilla_sync');
+OC_App::enable('news');
+OC_App::enable('provisioning_api');
+OC_App::enable('user_external');
+OC_App::enable('provisioning_api');
+OC_App::enable('provisioning_api');
+
diff --git a/tests/preseed-config.php b/tests/preseed-config.php
new file mode 100644
index 00000000000..fbf60ad2e28
--- /dev/null
+++ b/tests/preseed-config.php
@@ -0,0 +1,19 @@
+<?php
+$CONFIG = array (
+ "appstoreenabled" => false,
+ 'apps_paths' =>
+ array (
+ 0 =>
+ array (
+ 'path' => '/home/thomas/Development/owncloud/core/apps',
+ 'url' => '/apps',
+ 'writable' => false,
+ ),
+ 1 =>
+ array (
+ 'path' => '/home/thomas/Development/owncloud/core/apps2',
+ 'url' => '/apps2',
+ 'writable' => false,
+ )
+ ),
+);