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

autotest.sh - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a9794db69820fbc513c286b4bd51cbe4d6749c1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 > autotest-results-sqlite.xml


#
# TODO: create config for mysql and postgres
#