Skip to content

Commit

Permalink
chore(pkg/build): fixed build tests centos kerenl releases.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP authored and poiana committed Feb 29, 2024
1 parent f49e888 commit 17f9fb3
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions pkg/build/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestBuild(t *testing.T) {
RepoRoot: "./test",
Target: root.Target{
Distro: "centos",
KernelRelease: "4.18.0-527.el8.x86_64",
KernelRelease: "4.18.0-535.el8.x86_64",
KernelVersion: "1",
},
},
Expand All @@ -64,15 +64,15 @@ func TestBuild(t *testing.T) {
IgnoreErrors: false,
},
expectedLocalObjects: []string{
"falco_centos_4.18.0-527.el8.x86_64_1.ko",
"falco_centos_4.18.0-527.el8.x86_64_1.o",
"falco_centos_4.18.0-535.el8.x86_64_1.ko",
"falco_centos_4.18.0-535.el8.x86_64_1.o",
},
expectedBucketObjects: []string{
"falco_centos_4.18.0-527.el8.x86_64_1.ko",
"falco_centos_4.18.0-527.el8.x86_64_1.o",
"falco_centos_4.18.0-535.el8.x86_64_1.ko",
"falco_centos_4.18.0-535.el8.x86_64_1.o",
},
shouldCreate: true,
name: "build 5.0.1+driver centos 4.18.0-527.el8.x86_64",
name: "build 5.0.1+driver centos 4.18.0-535.el8.x86_64",
},
{
opts: Options{
Expand All @@ -83,7 +83,7 @@ func TestBuild(t *testing.T) {
RepoRoot: "./test",
Target: root.Target{
Distro: "centos",
KernelRelease: "4.18.0-529.el8.x86_64",
KernelRelease: "4.18.0-539.el8.x86_64",
KernelVersion: "1",
},
},
Expand All @@ -92,17 +92,17 @@ func TestBuild(t *testing.T) {
IgnoreErrors: false,
},
expectedLocalObjects: []string{
"falco_centos_4.18.0-529.el8.x86_64_1.ko",
"falco_centos_4.18.0-529.el8.x86_64_1.o",
"falco_centos_4.18.0-527.el8.x86_64_1.ko",
"falco_centos_4.18.0-527.el8.x86_64_1.o",
"falco_centos_4.18.0-539.el8.x86_64_1.ko",
"falco_centos_4.18.0-539.el8.x86_64_1.o",
"falco_centos_4.18.0-535.el8.x86_64_1.ko",
"falco_centos_4.18.0-535.el8.x86_64_1.o",
},
expectedBucketObjects: []string{
"falco_centos_4.18.0-527.el8.x86_64_1.ko",
"falco_centos_4.18.0-527.el8.x86_64_1.o",
"falco_centos_4.18.0-535.el8.x86_64_1.ko",
"falco_centos_4.18.0-535.el8.x86_64_1.o",
},
shouldCreate: false, // since it is not publishing
name: "build 5.0.1+driver centos 4.18.0-529.el8.x86_64",
name: "build 5.0.1+driver centos 4.18.0-539.el8.x86_64",
},
{
opts: Options{
Expand All @@ -113,7 +113,7 @@ func TestBuild(t *testing.T) {
RepoRoot: "./test",
Target: root.Target{
Distro: "centos",
KernelRelease: "4.18.0-527.el8.x86_64", // try to rebuild same object.
KernelRelease: "4.18.0-535.el8.x86_64", // try to rebuild same object.
KernelVersion: "1",
},
},
Expand All @@ -122,17 +122,17 @@ func TestBuild(t *testing.T) {
IgnoreErrors: false,
},
expectedLocalObjects: []string{
"falco_centos_4.18.0-529.el8.x86_64_1.ko",
"falco_centos_4.18.0-529.el8.x86_64_1.o",
"falco_centos_4.18.0-527.el8.x86_64_1.ko",
"falco_centos_4.18.0-527.el8.x86_64_1.o",
"falco_centos_4.18.0-539.el8.x86_64_1.ko",
"falco_centos_4.18.0-539.el8.x86_64_1.o",
"falco_centos_4.18.0-535.el8.x86_64_1.ko",
"falco_centos_4.18.0-535.el8.x86_64_1.o",
},
expectedBucketObjects: []string{
"falco_centos_4.18.0-527.el8.x86_64_1.ko",
"falco_centos_4.18.0-527.el8.x86_64_1.o",
"falco_centos_4.18.0-535.el8.x86_64_1.ko",
"falco_centos_4.18.0-535.el8.x86_64_1.o",
},
shouldCreate: false, // since objects are already present, nothing should be created
name: "rebuild 5.0.1+driver centos 4.18.0-527.el8.x86_64",
name: "rebuild 5.0.1+driver centos 4.18.0-535.el8.x86_64",
},
{
opts: Options{
Expand All @@ -143,7 +143,7 @@ func TestBuild(t *testing.T) {
RepoRoot: "./test",
Target: root.Target{
Distro: "centos",
KernelRelease: "4.18.0-527.el8.x86_64", // try to rebuild same object.
KernelRelease: "4.18.0-535.el8.x86_64", // try to rebuild same object.
KernelVersion: "1",
},
},
Expand All @@ -152,17 +152,17 @@ func TestBuild(t *testing.T) {
IgnoreErrors: false,
},
expectedLocalObjects: []string{
"falco_centos_4.18.0-529.el8.x86_64_1.ko",
"falco_centos_4.18.0-529.el8.x86_64_1.o",
"falco_centos_4.18.0-527.el8.x86_64_1.ko",
"falco_centos_4.18.0-527.el8.x86_64_1.o",
"falco_centos_4.18.0-539.el8.x86_64_1.ko",
"falco_centos_4.18.0-539.el8.x86_64_1.o",
"falco_centos_4.18.0-535.el8.x86_64_1.ko",
"falco_centos_4.18.0-535.el8.x86_64_1.o",
},
expectedBucketObjects: []string{
"falco_centos_4.18.0-527.el8.x86_64_1.ko",
"falco_centos_4.18.0-527.el8.x86_64_1.o",
"falco_centos_4.18.0-535.el8.x86_64_1.ko",
"falco_centos_4.18.0-535.el8.x86_64_1.o",
},
shouldCreate: true,
name: "rebuild and publish 5.0.1+driver centos 4.18.0-527.el8.x86_64",
name: "rebuild and publish 5.0.1+driver centos 4.18.0-535.el8.x86_64",
},
}

Expand Down

0 comments on commit 17f9fb3

Please sign in to comment.