tools/test-case-generator: add more options

Allow individual test-cases or sub-sets of test-cases to be generated
more easily.

We allow explicit skipping of image-info generation (and hence the
osbuild run), and also individual image types to be specified.

Also drop distros and image types that are no longer supported.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2020-06-07 22:17:26 +02:00 committed by Lars Karlitski
parent cbf19d1319
commit ab276bdb77
5 changed files with 47 additions and 94 deletions

View file

@ -25,6 +25,7 @@ func TestDistro_Manifest(t *testing.T, pipelinePath string, prefix string, distr
Metalink string `json:"metalink,omitempty"`
MirrorList string `json:"mirrorlist,omitempty"`
GPGKey string `json:"gpgkey,omitempty"`
CheckGPG bool `json:"check_gpg,omitempty"`
}
type composeRequest struct {
Distro string `json:"distro"`
@ -59,6 +60,7 @@ func TestDistro_Manifest(t *testing.T, pipelinePath string, prefix string, distr
Metalink: repo.Metalink,
MirrorList: repo.MirrorList,
GPGKey: repo.GPGKey,
CheckGPG: repo.CheckGPG,
}
}
t.Run(tt.ComposeRequest.ImageType, func(t *testing.T) {