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
01165fbd
Commit
01165fbd
authored
12 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
use tmpfs at /dev/shm to speedup unit test execution
parent
10939b0b
Loading
Loading
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
autotest.sh
+11
-5
11 additions, 5 deletions
autotest.sh
with
11 additions
and
5 deletions
autotest.sh
+
11
−
5
View file @
01165fbd
...
...
@@ -10,9 +10,15 @@
DATABASENAME
=
oc_autotest
$EXECUTOR_NUMBER
DATABASEUSER
=
oc_autotest
$EXECUTOR_NUMBER
ADMINLOGIN
=
admin
$EXECUTOR_NUMBER
DATADIR
=
data-autotest
BASEDIR
=
$PWD
# use tmpfs for datadir - should speedup unit test execution
if
[
-d
/dev/shm
]
;
then
DATADIR
=
/dev/shm/data-autotest
$EXECUTOR_NUMBER
else
DATADIR
=
$BASEDIR
/data-autotest
fi
echo
"Using database
$DATABASENAME
"
# create autoconfig for sqlite, mysql and postgresql
...
...
@@ -24,7 +30,7 @@ cat > ./tests/autoconfig-sqlite.php <<DELIM
'dbtableprefix' => 'oc_',
'adminlogin' => '
$ADMINLOGIN
',
'adminpass' => 'admin',
'directory' => '
$
BASEDIR
/
$
DATADIR
',
'directory' => '
$DATADIR
',
);
DELIM
...
...
@@ -36,7 +42,7 @@ cat > ./tests/autoconfig-mysql.php <<DELIM
'dbtableprefix' => 'oc_',
'adminlogin' => '
$ADMINLOGIN
',
'adminpass' => 'admin',
'directory' => '
$
BASEDIR
/
$
DATADIR
',
'directory' => '
$DATADIR
',
'dbuser' => '
$DATABASEUSER
',
'dbname' => '
$DATABASENAME
',
'dbhost' => 'localhost',
...
...
@@ -52,7 +58,7 @@ cat > ./tests/autoconfig-pgsql.php <<DELIM
'dbtableprefix' => 'oc_',
'adminlogin' => '
$ADMINLOGIN
',
'adminpass' => 'admin',
'directory' => '
$
BASEDIR
/
$
DATADIR
',
'directory' => '
$DATADIR
',
'dbuser' => '
$DATABASEUSER
',
'dbname' => '
$DATABASENAME
',
'dbhost' => 'localhost',
...
...
@@ -68,7 +74,7 @@ cat > ./tests/autoconfig-oci.php <<DELIM
'dbtableprefix' => 'oc_',
'adminlogin' => '
$ADMINLOGIN
',
'adminpass' => 'admin',
'directory' => '
$
BASEDIR
/
$
DATADIR
',
'directory' => '
$DATADIR
',
'dbuser' => '
$DATABASENAME
',
'dbname' => 'XE',
'dbhost' => 'localhost',
...
...
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