-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup default image when cleaning up containers (#918)
* setup default image when cleaning up containers * update readme to run test * Add md extension to tests README --------- Co-authored-by: Polina Bungina <[email protected]>
- Loading branch information
1 parent
3343324
commit 353270a
Showing
3 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Run tests | ||
|
||
After building the image, you can test your image by: | ||
|
||
1. Setting up the environment variable `SPILO_TEST_IMAGE` to test the specific image. If unset, the default will be `spilo`. | ||
``` | ||
export SPILO_TEST_IMAGE=<your_spilo_image> | ||
``` | ||
2. Run the test: | ||
``` | ||
bash test_spilo.sh | ||
``` | ||
To enable debugging for an entire script when it runs: | ||
``` | ||
bash -x test_spilo.sh | ||
``` | ||
The test will create multiple containers. They will be cleaned up by the last line before running `main` in `test_spilo.sh`. To keep and debug the containers after running the test, this part can be commented. | ||
``` | ||
trap cleanup QUIT TERM EXIT | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters