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-11 19:26:54 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestGetDebianKernel(t *testing.T) {
|
2023-05-15 17:40:53 +00:00
|
|
|
dk, err := getDebianKernel("4.17.14-1")
|
2023-05-11 19:26:54 +00:00
|
|
|
if err != nil {
|
|
|
|
t.Fatal(err)
|
|
|
|
}
|
|
|
|
|
|
|
|
if dk.Version.ABI != "4.17.0-2" {
|
|
|
|
t.Fatalf("wrong abi")
|
|
|
|
}
|
2023-05-14 14:06:04 +00:00
|
|
|
|
|
|
|
t.Logf("%s", spew.Sdump(dk))
|
2023-05-11 19:26:54 +00:00
|
|
|
}
|