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
9da4a632
Commit
9da4a632
authored
10 years ago
by
Joas Schilling
Browse files
Options
Downloads
Patches
Plain Diff
Restore the development config after running the tests
parent
a0fea16d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
autotest.cmd
+17
-3
17 additions, 3 deletions
autotest.cmd
with
17 additions
and
3 deletions
autotest.cmd
+
17
−
3
View file @
9da4a632
...
@@ -67,11 +67,18 @@ echo ^)^; >> .\tests\autoconfig-mssql.php
...
@@ -67,11 +67,18 @@ echo ^)^; >> .\tests\autoconfig-mssql.php
echo
localhost
:5432:
*
:oc
_autotest:owncloud
>
%APPDATA%
\postgresql\pgpass.conf
echo
localhost
:5432:
*
:oc
_autotest:owncloud
>
%APPDATA%
\postgresql\pgpass.conf
@echo
on
:: Back up existing (dev) config if one exists
if
exist
config
\config.php
(
copy
/y
config
\config.php
config
\config
-autotest-backup
.php
)
::
::
:: start test execution
:: start test execution
::
::
if
[
%
1
]
==
[]
(
if
[
%
1
]
==
[]
(
echo
"Running on all database backends"
@
echo
"Running on all database backends"
call
:execute
_tests
"sqlite"
"
%
2"
call
:execute
_tests
"sqlite"
"
%
2"
call
:execute
_tests
"mysql"
"
%
2"
call
:execute
_tests
"mysql"
"
%
2"
call
:execute
_tests
"mssql"
"
%
2"
call
:execute
_tests
"mssql"
"
%
2"
...
@@ -81,11 +88,18 @@ if [%1] == [] (
...
@@ -81,11 +88,18 @@ if [%1] == [] (
call
:execute
_tests
"
%
1"
"
%
2"
call
:execute
_tests
"
%
1"
"
%
2"
)
)
goto
:restore
_config
goto
:eof
goto
:eof
:execute
_tests
:restore
_config
@echo
on
::
Restore
existing
config
if
exist
config
\config
-autotest-backup
.php
(
copy
/y
config
\config
-autotest-backup
.php
config
\config.php
)
goto
:eof
:execute
_tests
@echo
"Setup environment for
%
~1 testing ..."
@echo
"Setup environment for
%
~1 testing ..."
::
back
to
root
folder
::
back
to
root
folder
cd
%BASEDIR%
cd
%BASEDIR%
...
...
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