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"
|
2023-05-28 11:59:44 +00:00
|
|
|
"github.com/stretchr/testify/assert"
|
2023-05-11 19:26:54 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestGetDebianKernel(t *testing.T) {
|
2023-05-28 11:59:44 +00:00
|
|
|
assert := assert.New(t)
|
2023-05-11 19:26:54 +00:00
|
|
|
|
2023-05-28 11:59:44 +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
|
|
|
}
|