You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
641 B

  1. #preparation
  2. echo "Setup environment for sqlite testing ..."
  3. DATADIR=data-autotest
  4. rm -rf $DATADIR
  5. mkdir $DATADIR
  6. rm -rf config/config.php
  7. #cp autotest/config.sqlite.php config/autoconfig.php
  8. cat > ./config/autoconfig.php <<DELIM
  9. <?php
  10. \$AUTOCONFIG = array (
  11. 'installed' => false,
  12. 'dbtype' => 'sqlite',
  13. 'dbtableprefix' => 'oc_',
  14. 'datadirectory' => 'data',
  15. 'adminlogin' => 'admin',
  16. 'adminpass' => 'admin',
  17. 'directory' => '$PWD/$DATADIR',
  18. );
  19. DELIM
  20. php -f index.php
  21. #test execution
  22. echo 'Testing with sqlite ...'
  23. cd tests
  24. php -f index.php -- xml > autotest-results-sqlite.xml
  25. #
  26. # TODO: create config for mysql and postgres
  27. #