Implement match for Debian packages
This commit is contained in:
20
distro/debian/debian_test.go
Normal file
20
distro/debian/debian_test.go
Normal file
@ -0,0 +1,20 @@
|
||||
package debian
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"code.dumpstack.io/tools/out-of-tree/config"
|
||||
)
|
||||
|
||||
func TestMatchImagePkg(t *testing.T) {
|
||||
km := config.KernelMask{ReleaseMask: "3.2.0-4"}
|
||||
|
||||
pkgs, err := MatchImagePkg(km)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if len(pkgs) == 0 {
|
||||
t.Fatal("no packages")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user