1
1
mirror of https://github.com/goreleaser/nfpm synced 2024-09-30 22:11:14 +02:00
nfpm/acceptance/deb_acceptance_test.go
2018-04-18 22:15:58 -03:00

34 lines
895 B
Go

package acceptance
import "testing"
func TestSimpleDeb(t *testing.T) {
t.Run("amd64", func(t *testing.T) {
accept(t, "simple_deb", "simple.yaml", "deb", "deb.dockerfile")
})
t.Run("i386", func(t *testing.T) {
accept(t, "simple_deb_386", "simple.386.yaml", "deb", "deb.386.dockerfile")
})
}
func TestComplexDeb(t *testing.T) {
t.Run("amd64", func(t *testing.T) {
accept(t, "complex_deb", "complex.yaml", "deb", "deb.complex.dockerfile")
})
t.Run("i386", func(t *testing.T) {
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) {
accept(t, "overrides_deb", "overrides.yaml", "deb", "deb.overrides.dockerfile")
})
}
func TestMinDeb(t *testing.T) {
t.Run("amd64", func(t *testing.T) {
accept(t, "min_deb", "min.yaml", "deb", "deb.min.dockerfile")
})
}