mirror of
https://github.com/goreleaser/nfpm
synced 2024-11-18 14:54:04 +01:00
test: parallel acceptance tests
This commit is contained in:
parent
09991ab785
commit
8063cc1207
@ -4,30 +4,36 @@ import "testing"
|
||||
|
||||
func TestSimpleDeb(t *testing.T) {
|
||||
t.Run("amd64", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
accept(t, "simple_deb", "simple.yaml", "deb", "deb.dockerfile")
|
||||
})
|
||||
t.Run("i386", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
accept(t, "simple_deb_386", "simple.386.yaml", "deb", "deb.386.dockerfile")
|
||||
})
|
||||
}
|
||||
|
||||
func TestComplexDeb(t *testing.T) {
|
||||
t.Run("amd64", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
accept(t, "complex_deb", "complex.yaml", "deb", "deb.complex.dockerfile")
|
||||
})
|
||||
t.Run("i386", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
accept(t, "complex_deb_386", "complex.386.yaml", "deb", "deb.386.complex.dockerfile")
|
||||
})
|
||||
}
|
||||
|
||||
func TestComplexOverridesDeb(t *testing.T) {
|
||||
t.Run("amd64", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
accept(t, "overrides_deb", "overrides.yaml", "deb", "deb.overrides.dockerfile")
|
||||
})
|
||||
}
|
||||
|
||||
func TestMinDeb(t *testing.T) {
|
||||
t.Run("amd64", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
accept(t, "min_deb", "min.yaml", "deb", "deb.min.dockerfile")
|
||||
})
|
||||
}
|
||||
|
@ -4,30 +4,36 @@ import "testing"
|
||||
|
||||
func TestSimpleRPM(t *testing.T) {
|
||||
t.Run("amd64", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
accept(t, "simple_rpm", "simple.yaml", "rpm", "rpm.dockerfile")
|
||||
})
|
||||
t.Run("i386", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
accept(t, "simple_rpm_386", "simple.386.yaml", "rpm", "rpm.386.dockerfile")
|
||||
})
|
||||
}
|
||||
|
||||
func TestComplexRPM(t *testing.T) {
|
||||
t.Run("amd64", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
accept(t, "complex_rpm", "complex.yaml", "rpm", "rpm.complex.dockerfile")
|
||||
})
|
||||
t.Run("i386", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
accept(t, "complex_rpm_386", "complex.386.yaml", "rpm", "rpm.386.complex.dockerfile")
|
||||
})
|
||||
}
|
||||
|
||||
func TestComplexOverridesRPM(t *testing.T) {
|
||||
t.Run("amd64", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
accept(t, "overrides_rpm", "overrides.yaml", "rpm", "rpm.overrides.dockerfile")
|
||||
})
|
||||
}
|
||||
|
||||
func TestMinRPM(t *testing.T) {
|
||||
t.Run("amd64", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
accept(t, "min_rpm", "min.yaml", "rpm", "rpm.min.dockerfile")
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user