Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
ce405768
Commit
ce405768
authored
12 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
MySql testing added
parent
eba4f080
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.sh
+42
-2
42 additions, 2 deletions
autotest.sh
with
42 additions
and
2 deletions
autotest.sh
+
42
−
2
View file @
ce405768
#preparation
#
# sqlite testing now
#
echo
"Setup environment for sqlite testing ..."
DATADIR
=
data-autotest
rm
-rf
$DATADIR
...
...
@@ -25,8 +27,46 @@ echo 'Testing with sqlite ...'
cd
tests
php
-f
index.php
--
xml
>
autotest-results-sqlite.xml
#
# mysql testing now
#
# NOTES:
# - grant access permissions: grant all on oc_autotest.* to 'oc_autotest'@'localhost';
#
echo
"Setup environment for MySql testing ..."
DATADIR
=
data-autotest
rm
-rf
$DATADIR
mkdir
$DATADIR
rm
-rf
config/config.php
cat
>
./config/autoconfig.php
<<
DELIM
<?php
\$
AUTOCONFIG = array (
'installed' => false,
'dbtype' => 'mysql',
'dbtableprefix' => 'oc_',
'datadirectory' => 'data',
'adminlogin' => 'admin',
'adminpass' => 'admin',
'directory' => '
$PWD
/
$DATADIR
',
'dbuser' => 'oc_autotest',
'dbname' => 'oc_autotest',
'dbhost' => 'localhost',
'dbpass' => 'owncloud',
);
DELIM
#drop the database
mysql
-u
oc_autotest
-powncloud
-e
"DROP DATABASE oc_autotest"
#setup
php
-f
index.php
#test execution
echo
'Testing with MySql ...'
cd
tests
php
-f
index.php
--
xml
>
autotest-results-MySql.xml
#
# TODO: create config for
mysql and
postgres
# TODO: create config for postgres
#
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