25 lines
392 B
Go
25 lines
392 B
Go
package debian
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"code.dumpstack.io/tools/out-of-tree/distro"
|
|
)
|
|
|
|
func TestDebian(t *testing.T) {
|
|
assert := assert.New(t)
|
|
|
|
u := Debian{release: Wheezy}
|
|
|
|
assert.True(u.Equal(distro.Distro{Release: "wheezy", ID: distro.Debian}))
|
|
|
|
if os.Getenv("CI") != "" {
|
|
t.Skip("skip testing in CI")
|
|
}
|
|
|
|
assert.NotEmpty(u.Packages())
|
|
}
|