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

20 lines
315 B
Go
Raw Normal View History

2023-05-11 19:26:54 +00:00
package debian
import (
"testing"
2023-05-14 14:06:04 +00:00
"github.com/davecgh/go-spew/spew"
"github.com/stretchr/testify/assert"
2023-05-11 19:26:54 +00:00
)
func TestGetDebianKernel(t *testing.T) {
assert := assert.New(t)
2023-05-11 19:26:54 +00:00
dk, err := getDebianKernel("4.6.4-1")
assert.Nil(err)
assert.Equal(getRelease(dk.Image), Stretch)
2023-05-14 14:06:04 +00:00
t.Logf("%s", spew.Sdump(dk))
2023-05-11 19:26:54 +00:00
}