From fd0c6da41009b20b0c0906d8ec895cbab54af832 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Fri, 13 Jul 2012 13:55:15 +0200 Subject: autotest.sh added: create an fresh environment using sqlite (mysql anf pg will follow) and executes the test suite --- autotest.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 autotest.sh (limited to 'autotest.sh') diff --git a/autotest.sh b/autotest.sh new file mode 100755 index 00000000000..a5e28b6de98 --- /dev/null +++ b/autotest.sh @@ -0,0 +1,32 @@ +#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 < 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 +# + -- cgit v1.2.3