Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2012-07-13 15:55:15 +0400
committerThomas Mueller <thomas.mueller@tmit.eu>2012-07-13 15:55:15 +0400
commitfd0c6da41009b20b0c0906d8ec895cbab54af832 (patch)
tree3a63d6c7c0ca914d5257671a6d6c7c119bbc3fe2 /autotest.sh
parent5de2a292fcfe9174542e7708b033c8026a2c46a6 (diff)
autotest.sh added: create an fresh environment using sqlite (mysql anf pg will follow) and executes the test suite
Diffstat (limited to 'autotest.sh')
-rwxr-xr-xautotest.sh32
1 files changed, 32 insertions, 0 deletions
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 <<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
+#
+