summaryrefslogtreecommitdiff
path: root/hack/make/test-integration
Commit message (Collapse)AuthorAgeFilesLines
* hack: remove error_on_leaked_containerd_shimsAkihiro Suda2022-06-051-1/+0
| | | | | | The function does not support containerd-shim-runc-v2 (io.containerd.runc.v2) Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
* hack: add more debugging to understand exit codepathTibor Vass2020-05-271-0/+2
| | | | Signed-off-by: Tibor Vass <tibor@docker.com>
* run shfmtAkihiro Suda2020-03-031-1/+1
| | | | | | git grep --name-only '^#!' | egrep -v '(vendor|\.go|Jenkinsfile)' | xargs shfmt -w -bn -ci -sr Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
* integration: simplify parallel run destinationSebastiaan van Stijn2019-09-111-6/+0
| | | | | | | | | | | 'Namespace' parallel runs by bind-mounting a different directory in the container, instead of making the tests running inside the container aware of the namespaced location. This makes it transparent to the tests, and slightly reduces complexity. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Jenkinsfile: reduce time of integration tests by dividing tests into 3 ↵Tibor Vass2019-08-121-2/+8
| | | | | | parallel runs Signed-off-by: Tibor Vass <tibor@docker.com>
* Improvements to the test runnersBrian Goff2019-07-311-0/+6
| | | | | | | | | | | | | 1. Use `go list` to get list of integration dirs to build. This means we do not need to have a valid `.go` in every subdirectory and also filters out other dirs like "bundles" which may have been created. 2. Add option to specify custom flags for integration and integration-cli. This is needed so both suites can be run AND set custom flags... since the cli suite does not support standard go flags. 3. Add options to skip an entire integration suite. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
* Bash scripts; use double brackets, fix bare variables, add quotesSebastiaan van Stijn2018-12-241-2/+2
| | | | | | | | | | | These scripts explicitly use Bash, so we should be able to use `[[` instead of `[` (which seems to be recommended). Also added curly brackets to some bare variables, and quoted some paths. This makes my IDE a bit more silent :-) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Fix .go-autogen warningsSebastiaan van Stijn2017-11-011-1/+0
| | | | | | | | | | | | | | | | | | | | The `.integration-test-helpers` script was sourced by `/etc/bash/bash.rc`. However, the `$SCRIPTDIR` environment variable is set through `hack/make.sh`, so will not be set when calling the `.integration-test-helpers` script directly. Before this patch; make BIND_DIR=. shell ... bash: /make/.go-autogen: No such file or directory After this patch, the warning is no longer printed Also removed sourcing `.go-autogen` from test-integration and build-integration-test-binary, as they already sourced `.integration-test-helpers` (which sources `.go-autogen`). Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Fix integration suite and propagate failuresDaniel Nephin2017-09-011-1/+1
| | | | | | | Failures from the integration suite were not propagating to the outter shell for some reason. Handle the failure with an if exit 1. Signed-off-by: Daniel Nephin <dnephin@docker.com>
* Cleanup test output, and binaries.Daniel Nephin2017-08-091-16/+7
| | | | Signed-off-by: Daniel Nephin <dnephin@docker.com>
* Add integration suiteDaniel Nephin2017-08-091-1/+1
| | | | Signed-off-by: Daniel Nephin <dnephin@docker.com>
* Remove test-integration-cli and references to it.Daniel Nephin2017-08-091-1/+4
| | | | Signed-off-by: Daniel Nephin <dnephin@docker.com>
* Introduce `test-integration` target (and deprecate/freeze ↵Vincent Demeester2017-08-091-0/+28
| | | | | | | | | | | `test-integration-cli`) This adds a new package `integration` where `engine` integration tests should live. Those integration tests should not depends on any `cli` components (except from the `dockerd` daemon for now — to actually start a daemon). Signed-off-by: Vincent Demeester <vincent@sbr.pm>
* Remove integration tests and port them to integration-cliAntonio Murdaca2015-04-301-25/+0
| | | | Signed-off-by: Antonio Murdaca <me@runcom.ninja>
* hack/make/test-integration-cli: introduce MAKEDIR variableJörg Thalheim2015-04-151-1/+1
| | | | | | | - every execution of dirname costs time - less repeating Signed-off-by: Jörg Thalheim <joerg@higgsboson.tk>
* hack: quote all parameters with variable interpolationJörg Thalheim2015-04-151-1/+1
| | | | | | better safe then sorry. especially for rm Signed-off-by: Jörg Thalheim <joerg@higgsboson.tk>
* Move scripts back to hack/, leave docs in project/Tianon Gravi2015-03-131-0/+25
| | | | | | This also removes the now-defunct `*maintainer*.sh` scripts that don't work with the new TOML format, and moves a couple not-build-or-release-related scripts to `contrib/` instead. Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
* Move 'hack' to the less confusing 'project'Solomon Hykes2014-11-091-15/+0
| | | | | | | We might want to break it up into smaller pieces (eg. tools in one place, documents in another) but let's worry about that later. Signed-off-by: Solomon Hykes <solomon@docker.com>
* Fix more instances of "dotcloud/docker" in hack/ (and add a DOCKER_PKG ↵Tianon Gravi2014-07-301-1/+1
| | | | | | environment variable to simplify references to our "package path" in our bundlescripts) Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
* update go import path and libcontainerVictor Vieux2014-07-241-1/+1
| | | | Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
* Fix hanging on tests failingAlexandr Morozov2014-05-191-2/+2
| | | | | | Tee hanging when `go test` exit with non-zero code. Fixes #5672 Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: LK4D4)
* Update bundlescripts to use "set -e" consistentlyTianon Gravi2014-04-091-2/+1
| | | | | | "set -e" is already inherited here from make.sh, but explicit is always better than implicit (hence the "set -e" in the first place!) Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
* Fix dynbinary so that dockerinit can still be properly static even if it has ↵Tianon Gravi2014-03-061-1/+1
| | | | | | to link against libapparmor for Ubuntu Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
* add --line-bufferedVictor Vieux2014-02-241-1/+1
| | | | Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
* Add simple "grep" to hide the harmless "warning: no packages being tested ↵Tianon Gravi2014-02-211-1/+5
| | | | | | depend on ..." in "go test -coverpkg ..." output Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
* Package coverage when running integration testsFabio Falci2014-02-191-1/+2
| | | | | | | | If coverpkg is missing on `go test` command, only the current package will be covered. That's the case of unit tests. For integration tests we need to explicitly declare each package. Docker-DCO-1.1-Signed-off-by: Fabio Falci <fabiofalci@gmail.com> (github: fabiofalci)
* Add separate "test-integration" bundlescript (and corresponding ↵Tianon Gravi2013-12-081-0/+11
dyntest-integration bundlescript)