1
1
mirror of https://github.com/goreleaser/nfpm synced 2024-11-18 19:04:07 +01:00
nfpm/acceptance/rpm_acceptance_test.go
Carlos Alexandro Becker 1238660a59
test: acceptance tests for globs
refs #17
2018-03-25 15:58:44 -03:00

22 lines
584 B
Go

package acceptance
import "testing"
func TestSimpleRPM(t *testing.T) {
t.Run("amd64", func(t *testing.T) {
accept(t, "simple_rpm", "simple.yaml", "rpm", "rpm.dockerfile")
})
t.Run("i386", func(t *testing.T) {
accept(t, "simple_rpm_386", "simple.386.yaml", "rpm", "rpm.386.dockerfile")
})
}
func TestComplexRPM(t *testing.T) {
t.Run("amd64", func(t *testing.T) {
accept(t, "complex_rpm", "complex.yaml", "rpm", "rpm.complex.dockerfile")
})
t.Run("i386", func(t *testing.T) {
accept(t, "complex_rpm_386", "complex.386.yaml", "rpm", "rpm.386.complex.dockerfile")
})
}