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
'dbtableprefix' => 'oc_',
'adminlogin' => '$ADMINLOGIN',
'adminpass' => 'admin',
- 'directory' => '$BASEDIR/$DATADIR',
+ 'directory' => '$DATADIR',
);
DELIM
'dbtableprefix' => 'oc_',
'adminlogin' => '$ADMINLOGIN',
'adminpass' => 'admin',
- 'directory' => '$BASEDIR/$DATADIR',
+ 'directory' => '$DATADIR',
'dbuser' => '$DATABASEUSER',
'dbname' => '$DATABASENAME',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'adminlogin' => '$ADMINLOGIN',
'adminpass' => 'admin',
- 'directory' => '$BASEDIR/$DATADIR',
+ 'directory' => '$DATADIR',
'dbuser' => '$DATABASEUSER',
'dbname' => '$DATABASENAME',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'adminlogin' => '$ADMINLOGIN',
'adminpass' => 'admin',
- 'directory' => '$BASEDIR/$DATADIR',
+ 'directory' => '$DATADIR',
'dbuser' => '$DATABASENAME',
'dbname' => 'XE',
'dbhost' => 'localhost',