test/system: Update README

https://github.com/containers/toolbox/pull/824
This commit is contained in:
Ondřej Míchal 2021-07-01 12:16:44 +02:00
parent a733357053
commit 210eded9a3

View file

@ -10,7 +10,9 @@ tests will clear all podman state (delete all containers, images, etc).
## Dependencies ## Dependencies
- `awk`
- `bats` - `bats`
- `GNU coreutils`
- `podman` - `podman`
- `skopeo` - `skopeo`
- `toolbox` - `toolbox`
@ -47,19 +49,19 @@ Examples:
First, make sure you have all the dependencies installed. First, make sure you have all the dependencies installed.
- Enter the toolbox root folder - Enter the toolbox root folder
- Prepare container images. See [playbooks/setup-env.yaml](../../playbooks/setup-env.yaml)
- Invoke command `bats ./test/system/` and the test suite should fire up - Invoke command `bats ./test/system/` and the test suite should fire up
Mocking of images is done to prevent potential networking issues and to speed Mocking of images is done automatically to prevent potential networking issues
up the cases. and to speed up the cases.
> Currently, this is done in a playbook that is a part of Toolbox's CI. In the By default the test suite uses the system versions of `podman`, `skopeo` and
future, this should be converted and become part of the test suite itself to `toolbox`.
allow local execution.
By default the test suite uses the system versions of `podman` and `toolbox`. If you have a `podman`, `skopeo` or `toolbox` installed in a nonstandard
location then you can use the `PODMAN`, `SKOPEO` and `TOOLBOX` environmental
variables to set the path to the binaries. So the command to invoke the test
suite could look something like this: `PODMAN=/usr/libexec/podman TOOLBOX=./toolbox bats ./test/system/`.
If you have a `podman` or `toolbox` installed in a nonstandard location then When running the tests, make sure the `test suite: [job]` jobs are successful.
you can use the `PODMAN` and `TOOLBOX` environmental variables to set the path These jobs set up the whole environment and are a strict requirement for other
to the binaries. So the command to invoke the test suite could look something jobs to run correctly.
like this: `PODMAN=/usr/libexec/podman TOOLBOX=./toolbox bats ./test/system/`.