Commit Graph

122 Commits (master)

Author SHA1 Message Date
Andreas Schubert 12f2525d4f moved set -e after executable checking with which as old position off set -e stopped the script at this point without any error message 8 years ago
Thomas Müller 3c65b898b2 We require minimum PHPUnit 4.4 8 years ago
Thomas Müller 6b635044a7 Use official mariadb docker 8 years ago
Thomas Müller ca2755ed6a Wait until mariadb is up and running 8 years ago
Roeland Jago Douma b4302a49be Make autotest.sh able to output proper coverage again
The usage of single quotes make sure that a string is used verbatim in
bash. And no variables are subsituted.
9 years ago
Thomas Müller 936c870a9b Don't execute phpunit twice 9 years ago
Thomas Müller 26d758f0b1 Un-confuse @MorrisJobke 😉 9 years ago
Thomas Müller 678fe1b8f4 Introduce evaluation of an environment variable to choose if all, only database or only database unit tests are to be executed.
This is mainly required on automated execution on Jenkins
9 years ago
Morris Jobke a91572b7f3 Use proper statement to retrieve the IP of an docker instance 9 years ago
Thomas Müller fed3994cdb Fix termination of the ceph docker 9 years ago
Thomas Müller b04e0deccc Fix termination of the ceph docker 9 years ago
Jörn Friedrich Dreyer 5646e39248 test objectstore with ceph docker
use default config for swift primary storage test config

allow testsuite to complete

fix timeout, script cleanup, enable debug for now

use btrfs loopback device, requires privileged container and absolute path

throw exception when storage has problems

debug by echo ...

sleep more, more debug
9 years ago
Olivier Paroz ff4227bbfc Use a universal shebang
Fixes #15037
9 years ago
Thomas Müller 8b086156b1 Merge pull request #19177 from owncloud/docker-check-state
Connect to database to verify if it is running
9 years ago
Phil Davis a165710e99 Minor text typos
that I noticed while looking at some code.
9 years ago
Lukas Reschke 5470d0edae Connect to database to verify if it is running
Try to connect to the OCI host via sqlplus to ensure that the connection is already running. Required by the new OCI configuration on CI.
9 years ago
Thomas Müller 8aa68aa522 Increment timeout on Oracle startup 9 years ago
Robin McCorkell f6b1d3506f Allow easy XDEBUG debugging with autotest
Debugging scripts needs the environment variable XDEBUG_CONFIG to be
set, which initiates a connection to a listening debugger. But if that
env is set and one of the PHP setup steps occurs (e.g. occ install), the
debugging session is 'completed' and the debugger no longer listens
during the actual tests. This saves the XDEBUG_CONFIG env so it only
applies during the PHPUnit execution, so only the real tests trigger the
debugging.
9 years ago
Roeland Jago Douma ea9eabae50 Add possible use of docker instance for MariaDB 9 years ago
Morris Jobke a6daafa3cd [autotest] timeout oracle docker startup after 2 minutes 9 years ago
Morris Jobke 004d670d31 [autotest] wait for oracle docker container initialization instead of waiting a hard coded time 9 years ago
Morris Jobke 5133a738e1 autotest.sh with docker support for postgres
* waits until the docker container is started
* export USEDOCKER=1 to run the docker version of postgres
9 years ago
Thomas Müller 047b7a13a3 Let's wait a little longer until oracle finally is available 9 years ago
Morris Jobke b230b8e2c6 move the OCPSinceChecker.php to build/ 9 years ago
Morris Jobke ba43ec974c Add tool to check OCP for missing @since tag
* gets executed in autotest.sh and fails if some PHPDoc is missing
* doesn't check classes/methods that are marked as @deprecated
* iterates over all .php files in lib/public
9 years ago
Lukas Reschke 89b0bc1915 Store in array to allow paths with whitespace 9 years ago
Lukas Reschke 8b0c223d6e Add support for facade binary scripts
Fixes https://github.com/owncloud/core/issues/16296
9 years ago
Lukas Reschke e3ac4d7b37 Lint bash script using ShellCheck
Ref http://www.shellcheck.net/about.html
9 years ago
Andreas Fischer 636d0635db Combine autotest-hhvm.sh with autotest.sh 9 years ago
Morris Jobke c72ea81137 [autotest.sh] use the DATABASEHOST for the mysql DB drop 9 years ago
Thomas Müller d039e4fd25 Now using a special docker where the database for testing is already available 9 years ago
Thomas Müller a56e16fdaa Oracle 11 XE is now fired up in a docker image - looks like we get back Oracle Testing on pull requests 9 years ago
Thomas Müller 7181840665 Use occ to install ownCloud in autotest.sh 9 years ago
Robin McCorkell 5acbeb9666 Better cleanup in autotest.sh
Configs correctly cleaned, even if phpunit fails or autotest interrupted
9 years ago
Joas Schilling 0242c5c2d1 Correctly run all tests again when no file is specified 10 years ago
Joas Schilling 532bcf40b3 Allow autocomplete for test file in autotest.sh 10 years ago
Morris Jobke 19346f4a27 this allows a non-existant config/config.php for starting the autotest.sh 10 years ago
Lukas Reschke 05ac044e28 Drop only if exists 10 years ago
Thomas Müller 75b8488ab9 autotest.sh shall not terminate if mysql db could not be dropped 10 years ago
Robin McCorkell f757611687 Fix autotest.sh for whitespace in paths 10 years ago
Thomas Müller 6dfd1733bb Don't terminate the script if the pgsql database could not be deleted 10 years ago
Thomas Müller 8196536309 terminate script execution in case of failure 10 years ago
Vincent Petry 6ed174d0e4 Restore autotest config on SIGINT or SIGTERM
When hitting Ctrl+C to interrupt unit test running, the old
configuration was not restored properly.

This fix traps the signal to properly restore the configuration after an
interruption.
10 years ago
Andreas Fischer de07f25bc2 Use git checkout on directory as some files may not be in git resulting in, e.g.:
error: pathspec 'tests/data/lorem-copy.txt' did not match any file(s) known to git.
error: pathspec 'tests/data/testimage-copy.png' did not match any file(s) known to git.
10 years ago
Vincent Petry 20935f4e24 Catch setup errors during autotest 10 years ago
Vincent Petry 51e1bd5d04 Enforce required phpunit version
This will prevent frustration and confusion when unit tests fail because
the wrong phpunit version was used
11 years ago
Thomas Müller 4025f39324 keep junit xml reports 11 years ago
Thomas Müller 99933b2ca3 adding environment variable to control coverage reporting 11 years ago
Vincent Petry 7de1b3f28e Added syntax help for autotest.sh
autotest.sh now checks for the validity of the db config name argument.
If the db config name is not known, it show syntax info.

This should save some time to people to understand how to use this
script. Before this fix, an invalid argument would return a big HTML
page in the output.
11 years ago
Vincent Petry 9cf25c8048 Added backup for config.php in autotest.sh script
The script now checks for config.php existance and backs it up before
running the test, then restores it back at the end. This avoids the
situation where devs lose their manually edited config if they forgot to
back it up before running the unit tests.

The script now also checks for config.php permissions beforehand to
avoid displaying an annoying HTML page output in the console with an
error message.
11 years ago
Thomas Müller 0486dc24ad collect coverage for all databases again - ci.owncloud.org has more RAM available 11 years ago
Thomas Müller 01165fbd22 use tmpfs at /dev/shm to speedup unit test execution 11 years ago
Thomas Müller 7fac7fef03 pgsql support added 11 years ago
Thomas Müller 1257a3c948 parallel execution support for mysql added 11 years ago
Thomas Müller 4e625202d1 Use EXECUTOR_NUMBER in database name and user name. 11 years ago
Jörn Friedrich Dreyer ccce93755f enable oracle testing by default 11 years ago
Jörn Friedrich Dreyer bc61a9c097 enable testing individual tests 11 years ago
Thomas Mueller 1f9ac7850d meanwhile phpunit is seq faulting with mysql as well 11 years ago
Thomas Mueller a753d14de9 adding Oracle support to autotest.sh 11 years ago
Thomas Mueller 990980392c No unit test coverage reports for pgsql - this causes issues on Jenkins. 11 years ago
Thomas Mueller c0263173d2 add phpunit configuration for autotest withou the json listener because this pollutes the console 11 years ago
Thomas Müller 74665faec5 exeuting tests now on apps as well - the apps repo shall be cloned into the sub folder apps2 12 years ago
Thomas Mueller c8d436c43d cleanup report folder 12 years ago
Thomas Mueller 7be661872f adding coverage html 12 years ago
Thomas Mueller 39e1c22e0a move autotest to phpunit 12 years ago
Thomas Mueller b30da61d59 postgres added to autotest mechanism 12 years ago
Thomas Mueller 3ffc96c3e9 add database type to xml report 12 years ago
Thomas Mueller 6bb3a281b1 some more structure added 12 years ago
Thomas Mueller a1b9b4b43e fixing reset on autotest 12 years ago
Thomas Mueller ce40576881 MySql testing added 12 years ago
Thomas Mueller 6ee228cac7 rediect test results to autotest-results-sqlite.xml 12 years ago
Thomas Mueller fd0c6da410 autotest.sh added: create an fresh environment using sqlite (mysql anf pg will follow) and executes the test suite 12 years ago