Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
74665fae
Commit
74665fae
authored
12 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
exeuting tests now on apps as well - the apps repo shall be cloned into the sub folder apps2
parent
22dcd3b6
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
autotest.sh
+4
-2
4 additions, 2 deletions
autotest.sh
tests/enable_all.php
+20
-0
20 additions, 0 deletions
tests/enable_all.php
tests/preseed-config.php
+19
-0
19 additions, 0 deletions
tests/preseed-config.php
with
43 additions
and
2 deletions
autotest.sh
+
4
−
2
View file @
74665fae
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
DATADIR
=
data-autotest
DATADIR
=
data-autotest
BASEDIR
=
$PWD
BASEDIR
=
$PWD
# create autoconfig for sqlite, mysql and
(soon)
postgresql
# create autoconfig for sqlite, mysql and postgresql
cat
>
./tests/autoconfig-sqlite.php
<<
DELIM
cat
>
./tests/autoconfig-sqlite.php
<<
DELIM
<?php
<?php
\$
AUTOCONFIG = array (
\$
AUTOCONFIG = array (
...
@@ -67,7 +67,8 @@ function execute_tests {
...
@@ -67,7 +67,8 @@ function execute_tests {
mkdir
$DATADIR
mkdir
$DATADIR
# remove the old config file
# 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
# drop database
if
[
"
$1
"
==
"mysql"
]
;
then
if
[
"
$1
"
==
"mysql"
]
;
then
...
@@ -88,6 +89,7 @@ function execute_tests {
...
@@ -88,6 +89,7 @@ function execute_tests {
cd
tests
cd
tests
rm
-rf
coverage-html-
$1
rm
-rf
coverage-html-
$1
mkdir
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
phpunit
--log-junit
autotest-results-
$1
.xml
--coverage-clover
autotest-clover-
$1
.xml
--coverage-html
coverage-html-
$1
}
}
...
...
This diff is collapsed.
Click to expand it.
tests/enable_all.php
0 → 100644
+
20
−
0
View file @
74665fae
<?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'
);
This diff is collapsed.
Click to expand it.
tests/preseed-config.php
0 → 100644
+
19
−
0
View file @
74665fae
<?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
,
)
),
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment