Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
server
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Nextcloud
server
Commits
62d54e4c
Commit
62d54e4c
authored
Feb 26, 2015
by
Morris Jobke
Browse files
Options
Downloads
Patches
Plain Diff
fix files external test run and add common-tests option
parent
adc986f3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/files_external/tests/README.md
+5
-0
5 additions, 0 deletions
apps/files_external/tests/README.md
autotest-external.sh
+7
-2
7 additions, 2 deletions
autotest-external.sh
with
12 additions
and
2 deletions
apps/files_external/tests/README.md
+
5
−
0
View file @
62d54e4c
...
@@ -42,6 +42,11 @@ then runs the unit test suite from `backends/webdav.php` (because the middle par
...
@@ -42,6 +42,11 @@ then runs the unit test suite from `backends/webdav.php` (because the middle par
the name of the script is
`webdav`
) and finally tries to call
the name of the script is
`webdav`
) and finally tries to call
`stop-webdav-ownCloud.sh`
for cleanup purposes.
`stop-webdav-ownCloud.sh`
for cleanup purposes.
If
`common-tests`
is supplied as second argument it will skip the backend specific
part completely and just run the common files_external unit tests:
./autotest-external.sh sqlite common-tests
## The more manual way of unit test execution
## The more manual way of unit test execution
If you want to debug your external storage provider, you maybe don't want to
If you want to debug your external storage provider, you maybe don't want to
...
...
This diff is collapsed.
Click to expand it.
autotest-external.sh
+
7
−
2
View file @
62d54e4c
...
@@ -24,6 +24,7 @@ function print_syntax {
...
@@ -24,6 +24,7 @@ function print_syntax {
echo
-e
"
\n
Example: ./autotest.sh sqlite webdav-ownCloud"
>
&2
echo
-e
"
\n
Example: ./autotest.sh sqlite webdav-ownCloud"
>
&2
echo
"will run the external suite from
\"
apps/files_external/tests/env/start-webdav-ownCloud.sh
\"
"
>
&2
echo
"will run the external suite from
\"
apps/files_external/tests/env/start-webdav-ownCloud.sh
\"
"
>
&2
echo
-e
"
\n
If no arguments are specified, all available external backends will be run with all database configs"
>
&2
echo
-e
"
\n
If no arguments are specified, all available external backends will be run with all database configs"
>
&2
echo
-e
"
\n
If you specify 'common-tests' as startfile it will just run the tests that are independent from the backends"
>
&2
}
}
if
!
[
-x
"
$PHPUNIT
"
]
;
then
if
!
[
-x
"
$PHPUNIT
"
]
;
then
...
@@ -219,14 +220,18 @@ EOF
...
@@ -219,14 +220,18 @@ EOF
# just enable files_external
# just enable files_external
php ../occ app:enable files_external
php ../occ app:enable files_external
if
[
-z
"
$NOCOVERAGE
"
]
;
then
if
[
-z
"
$NOCOVERAGE
"
]
;
then
#
"$PHPUNIT" --configuration phpunit-autotest-external.xml --log-junit "autotest-external-results-$1.xml" --coverage-clover "autotest-external-clover-$1.xml" --coverage-html "coverage-external-html-$1"
"
$PHPUNIT
"
--configuration
phpunit-autotest-external.xml
--log-junit
"autotest-external-results-
$1
.xml"
--coverage-clover
"autotest-external-clover-
$1
.xml"
--coverage-html
"coverage-external-html-
$1
"
RESULT
=
$?
RESULT
=
$?
else
else
echo
"No coverage"
echo
"No coverage"
#
"$PHPUNIT" --configuration phpunit-autotest-external.xml --log-junit "autotest-external-results-$1.xml"
"
$PHPUNIT
"
--configuration
phpunit-autotest-external.xml
--log-junit
"autotest-external-results-
$1
.xml"
RESULT
=
$?
RESULT
=
$?
fi
fi
if
[
-n
"
$2
"
-a
"
$2
"
==
"common-tests"
]
;
then
return
;
fi
FILES_EXTERNAL_BACKEND_PATH
=
../apps/files_external/tests/backends
FILES_EXTERNAL_BACKEND_PATH
=
../apps/files_external/tests/backends
FILES_EXTERNAL_BACKEND_ENV_PATH
=
../apps/files_external/tests/env
FILES_EXTERNAL_BACKEND_ENV_PATH
=
../apps/files_external/tests/env
...
...
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
sign in
to comment