Skip to content
Snippets Groups Projects
Commit fd0c6da4 authored by Thomas Müller's avatar Thomas Müller
Browse files

autotest.sh added: create an fresh environment using sqlite (mysql anf pg will...

autotest.sh added: create an fresh environment using sqlite (mysql anf pg will follow) and executes the test suite
parent 5de2a292
No related branches found
No related tags found
No related merge requests found
#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
php -f index.php -- xml
#
# TODO: create config for mysql and postgres
#
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment