Граф коммитов

9 Коммитов

Автор SHA1 Сообщение Дата
Anthony Yeh 18bb48fb44 docker/test/run.sh: Also preserve new Go vendor directory. 2016-04-15 13:41:29 -07:00
Anthony Yeh d40e396f05 test.go: Preserve php/vendor dir from bootstrap image.
Otherwise, the php test would only work if you had also done the
"composer install" step in your local directory, outside Docker.
2015-11-04 18:48:34 -08:00
Anthony Yeh c5a3db11f5 test.go: Explicitly remove cleanup docker container.
Rather than relying on --rm, because that flag doesn't always work.
2015-08-24 15:40:54 -07:00
Anthony Yeh eb5141992f Add Java tests to Docker test runner. 2015-08-12 01:56:37 -07:00
Michael Berlin a8785556be docker/test/run.sh: Make repo world readable for access from docker.
Previously, the permissions of all items *within* the repository were already updated, but not the repository itself.

This resulted into the error 'cp: cannot stat `/tmp/src/*': Permission denied' when running "docker/test/run.sh mariadb".
2015-05-19 17:43:18 -07:00
Anthony Yeh a58cde4f3b Clean up mounted VTDATAROOT from inside Docker.
Otherwise, you may get permission denied when trying to remove the temp
dir as a normal user, because the files were created by the 'vitess'
user inside Docker.
2015-04-22 15:06:07 -07:00
Anthony Yeh b14c3a308f Add test-runner script for integration tests in Docker.
This is an alternative to 'make integration_test',
with the following advantages:

* Tests run in Docker, so no bootstrap is necessary.
* Tests are hermetic and can run in parallel.
* Test against different flavors just by setting a flag.
* Failing tests are retried to see if they are flaky.
* A failed test will be recorded for later inspection, while the script
  continues to run other tests.
* A test that takes too long will be considered stuck and retried.

There's plenty of room for improvement, but now that we have something
in a more readable language than Makefile, we can iterate.
2015-04-21 20:12:20 -07:00
Anthony Yeh 9a885e51c4 Fix permission issues when running tests in Docker.
The vtdataroot volume needs to be created after the directory itself,
and other fixes.
2015-04-20 17:11:45 -07:00
Anthony Yeh 3a8ec3799a Add Makefile rule to run tests inside Docker.
This will let contributors test changes without having to do bootstrap
at all.

It also makes it easy to test against multiple flavors without having to
swap out installed packages. You can even run tests against multiple
flavors simultaneously without interfering, if you have enough RAM.
2015-04-20 16:03:01 -07:00