1
0
out-of-tree/distro/debian/debian_test.go

25 lines
392 B
Go
Raw Normal View History

2023-05-12 17:26:53 +00:00
package debian
import (
"os"
2023-05-12 17:26:53 +00:00
"testing"
"github.com/stretchr/testify/assert"
"code.dumpstack.io/tools/out-of-tree/distro"
2023-05-12 17:26:53 +00:00
)
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())
}