Commit graph

68 commits

Author SHA1 Message Date
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.
2015-12-01 12:03:27 +01:00
Thomas Müller
936c870a9b Don't execute phpunit twice 2015-11-30 10:55:13 +01:00
Thomas Müller
26d758f0b1 Un-confuse @MorrisJobke 😉 2015-11-30 10:55:10 +01:00
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
2015-11-30 10:55:05 +01:00
Morris Jobke
a91572b7f3 Use proper statement to retrieve the IP of an docker instance 2015-10-30 09:28:33 +01:00
Thomas Müller
fed3994cdb Fix termination of the ceph docker 2015-10-16 21:41:51 +02:00
Thomas Müller
b04e0deccc Fix termination of the ceph docker 2015-10-16 21:41:51 +02:00
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
2015-10-06 16:27:25 +02:00
Olivier Paroz
ff4227bbfc Use a universal shebang
Fixes #15037
2015-09-27 13:03:31 +02:00
Thomas Müller
8b086156b1 Merge pull request #19177 from owncloud/docker-check-state
Connect to database to verify if it is running
2015-09-22 15:54:46 +02:00
Phil Davis
a165710e99 Minor text typos
that I noticed while looking at some code.
2015-09-21 23:04:25 +05:45
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.
2015-09-18 19:43:34 +02:00
Thomas Müller
8aa68aa522 Increment timeout on Oracle startup 2015-09-16 15:06:32 +02:00
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.
2015-08-31 14:22:02 +01:00
Roeland Jago Douma
ea9eabae50 Add possible use of docker instance for MariaDB 2015-07-29 10:44:56 +02:00
Morris Jobke
a6daafa3cd [autotest] timeout oracle docker startup after 2 minutes 2015-07-16 11:51:15 +02:00
Morris Jobke
004d670d31 [autotest] wait for oracle docker container initialization instead of waiting a hard coded time 2015-07-15 15:38:50 +02:00
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
2015-07-06 08:36:07 +02:00
Thomas Müller
047b7a13a3 Let's wait a little longer until oracle finally is available 2015-06-24 14:09:32 +02:00
Morris Jobke
b230b8e2c6 move the OCPSinceChecker.php to build/ 2015-06-19 11:03:09 +02:00
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
2015-06-19 10:50:48 +02:00
Lukas Reschke
89b0bc1915 Store in array to allow paths with whitespace 2015-05-15 13:16:16 +02:00
Lukas Reschke
8b0c223d6e Add support for facade binary scripts
Fixes https://github.com/owncloud/core/issues/16296
2015-05-15 11:57:40 +02:00
Lukas Reschke
e3ac4d7b37 Lint bash script using ShellCheck
Ref http://www.shellcheck.net/about.html
2015-05-15 11:56:34 +02:00
Andreas Fischer
636d0635db Combine autotest-hhvm.sh with autotest.sh 2015-05-04 16:37:23 +02:00
Morris Jobke
c72ea81137 [autotest.sh] use the DATABASEHOST for the mysql DB drop 2015-04-10 14:46:08 +02:00
Thomas Müller
d039e4fd25 Now using a special docker where the database for testing is already available 2015-03-20 10:33:21 +01:00
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 2015-03-17 11:20:08 +01:00
Thomas Müller
7181840665 Use occ to install ownCloud in autotest.sh 2015-03-11 09:27:12 +01:00
Robin McCorkell
5acbeb9666 Better cleanup in autotest.sh
Configs correctly cleaned, even if phpunit fails or autotest interrupted
2015-01-28 15:06:18 +00:00
Joas Schilling
0242c5c2d1 Correctly run all tests again when no file is specified 2014-12-09 16:36:41 +01:00
Joas Schilling
532bcf40b3 Allow autocomplete for test file in autotest.sh 2014-12-09 11:36:35 +01:00
Morris Jobke
19346f4a27 this allows a non-existant config/config.php for starting the autotest.sh 2014-11-13 11:58:09 +01:00
Lukas Reschke
05ac044e28 Drop only if exists 2014-09-24 12:37:00 +02:00
Thomas Müller
75b8488ab9 autotest.sh shall not terminate if mysql db could not be dropped 2014-09-24 11:39:51 +02:00
Robin McCorkell
f757611687 Fix autotest.sh for whitespace in paths 2014-09-22 12:03:25 +01:00
Thomas Müller
6dfd1733bb Don't terminate the script if the pgsql database could not be deleted 2014-09-12 22:41:22 +02:00
Thomas Müller
8196536309 terminate script execution in case of failure 2014-09-09 17:12:20 +02:00
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.
2014-08-19 22:46:24 +02:00
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.
2014-04-07 14:06:20 +02:00
Vincent Petry
20935f4e24 Catch setup errors during autotest 2014-02-05 15:34:08 +01:00
Vincent Petry
51e1bd5d04 Enforce required phpunit version
This will prevent frustration and confusion when unit tests fail because
the wrong phpunit version was used
2013-12-19 16:47:17 +01:00
Thomas Müller
4025f39324 keep junit xml reports 2013-11-04 17:25:07 +01:00
Thomas Müller
99933b2ca3 adding environment variable to control coverage reporting 2013-11-04 17:04:54 +01:00
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.
2013-10-25 11:31:10 +02:00
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.
2013-10-03 12:53:13 +02:00
Thomas Müller
0486dc24ad collect coverage for all databases again - ci.owncloud.org has more RAM available 2013-09-25 14:41:13 +02:00
Thomas Müller
01165fbd22 use tmpfs at /dev/shm to speedup unit test execution 2013-07-30 17:41:52 +02:00
Thomas Müller
7fac7fef03 pgsql support added 2013-07-19 10:49:30 +02:00
Thomas Müller
1257a3c948 parallel execution support for mysql added 2013-07-19 08:50:22 +02:00