2012-07-13 15:55:15 +04:00
|
|
|
#preparation
|
|
|
|
echo "Setup environment for sqlite testing ..."
|
|
|
|
DATADIR=data-autotest
|
|
|
|
rm -rf $DATADIR
|
|
|
|
mkdir $DATADIR
|
|
|
|
rm -rf config/config.php
|
|
|
|
#cp autotest/config.sqlite.php config/autoconfig.php
|
|
|
|
cat > ./config/autoconfig.php <<DELIM
|
|
|
|
<?php
|
|
|
|
\$AUTOCONFIG = array (
|
|
|
|
'installed' => false,
|
|
|
|
'dbtype' => 'sqlite',
|
|
|
|
'dbtableprefix' => 'oc_',
|
|
|
|
'datadirectory' => 'data',
|
|
|
|
'adminlogin' => 'admin',
|
|
|
|
'adminpass' => 'admin',
|
|
|
|
'directory' => '$PWD/$DATADIR',
|
|
|
|
);
|
|
|
|
DELIM
|
|
|
|
|
|
|
|
php -f index.php
|
|
|
|
|
|
|
|
#test execution
|
|
|
|
echo 'Testing with sqlite ...'
|
|
|
|
cd tests
|
2012-07-13 17:10:30 +04:00
|
|
|
php -f index.php -- xml > autotest-results-sqlite.xml
|
2012-07-13 15:55:15 +04:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# TODO: create config for mysql and postgres
|
|
|
|
#
|
|
|
|
|