@@ -318,25 +318,30 @@ func TestRPMSign(t *testing.T) {
318
318
func TestDebSign (t * testing.T ) {
319
319
t .Parallel ()
320
320
for _ , arch := range formatArchs ["deb" ] {
321
- func (t * testing.T , testArch string ) {
322
- t .Run (fmt .Sprintf ("deb/%s" , testArch ), func (t * testing.T ) {
323
- t .Parallel ()
324
- target := "signed"
325
- if testArch == "ppc64le" && os .Getenv ("NO_TEST_PPC64LE" ) == "true" {
326
- t .Skip ("ppc64le arch not supported in pipeline" )
327
- }
328
- accept (t , acceptParms {
329
- Name : "debsign_sign_" + testArch ,
330
- Conf : "deb.debsign.sign.yaml" ,
331
- Format : "deb" ,
332
- Docker : dockerParams {
333
- File : "deb.dockerfile" ,
334
- Target : target ,
335
- Arch : testArch ,
336
- },
321
+ for _ , sigtype := range []string {"dpkg-sig" , "debsign" } {
322
+ func (t * testing.T , testSigtype , testArch string ) {
323
+ t .Run (fmt .Sprintf ("deb/%s/%s" , testArch , testSigtype ), func (t * testing.T ) {
324
+ t .Parallel ()
325
+ target := "signed"
326
+ if testSigtype == "dpkg-sig" {
327
+ target = "dpkg-signed"
328
+ }
329
+ if testArch == "ppc64le" && os .Getenv ("NO_TEST_PPC64LE" ) == "true" {
330
+ t .Skip ("ppc64le arch not supported in pipeline" )
331
+ }
332
+ accept (t , acceptParms {
333
+ Name : fmt .Sprintf ("%s_sign_%s" , testSigtype , testArch ),
334
+ Conf : fmt .Sprintf ("deb.%s.sign.yaml" , testSigtype ),
335
+ Format : "deb" ,
336
+ Docker : dockerParams {
337
+ File : "deb.dockerfile" ,
338
+ Target : target ,
339
+ Arch : testArch ,
340
+ },
341
+ })
337
342
})
338
- })
339
- }( t , arch )
343
+ }( t , sigtype , arch )
344
+ }
340
345
}
341
346
}
342
347
0 commit comments