mirror of
https://github.com/goreleaser/nfpm
synced 2024-05-23 21:36:21 +02:00
35 lines
684 B
Go
35 lines
684 B
Go
package deb
|
|
|
|
import (
|
|
"io/ioutil"
|
|
"testing"
|
|
|
|
"github.com/goreleaser/nfpm"
|
|
"github.com/tj/assert"
|
|
)
|
|
|
|
func TestDeb(t *testing.T) {
|
|
var err = Default.Package(
|
|
nfpm.Info{
|
|
Name: "foo",
|
|
Arch: "amd64",
|
|
Depends: []string{
|
|
"bash",
|
|
},
|
|
Description: "Foo does things",
|
|
Priority: "extra",
|
|
Maintainer: "Carlos A Becker <pkg@carlosbecker.com>",
|
|
Version: "1.0.0",
|
|
Section: "default",
|
|
Homepage: "http://carlosbecker.com",
|
|
Vendor: "nope",
|
|
Files: map[string]string{
|
|
"../testdata/fake": "/usr/local/bin/fake",
|
|
"../testdata/whatever.conf": "/etc/fake/fake.conf",
|
|
},
|
|
},
|
|
ioutil.Discard,
|
|
)
|
|
assert.NoError(t, err)
|
|
}
|