2023-05-12 17:26:53 +00:00
|
|
|
package debian
|
|
|
|
|
|
|
|
import (
|
2023-06-01 09:51:03 +00:00
|
|
|
"os"
|
2023-05-12 17:26:53 +00:00
|
|
|
"testing"
|
2023-05-23 13:20:48 +00:00
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
|
|
|
|
"code.dumpstack.io/tools/out-of-tree/distro"
|
2023-05-12 17:26:53 +00:00
|
|
|
)
|
|
|
|
|
2023-05-24 09:12:33 +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}))
|
|
|
|
|
2023-06-01 09:51:03 +00:00
|
|
|
if os.Getenv("CI") != "" {
|
|
|
|
t.Skip("skip testing in CI")
|
|
|
|
}
|
|
|
|
|
2023-05-24 09:12:33 +00:00
|
|
|
assert.NotEmpty(u.Packages())
|
|
|
|
}
|