TestExportAndImportMultiLayer exports testMultiLayeredImage as a tar stream, and import the tar stream as a new image. This should ensure that imported images remain sane, and that the Garbage Collector won't delete part of its content.
(t *testing.T)
| 65 | // images remain sane, and that the Garbage Collector won't delete part of its |
| 66 | // content. |
| 67 | func TestExportAndImportMultiLayer(t *testing.T) { |
| 68 | // ghcr.io/containerd/volume-copy-up:2.1 is not available on s390x |
| 69 | if runtime.GOARCH == "s390x" { |
| 70 | t.Skip("test image not available on s390x") |
| 71 | } |
| 72 | testExportImport(t, testMultiLayeredImage) |
| 73 | } |
| 74 | |
| 75 | func testExportImport(t *testing.T, imageName string) { |
| 76 | if testing.Short() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…