Skip to content

Commit

Permalink
test(cmd): orphaned node break DAG
Browse files Browse the repository at this point in the history
Signed-off-by: AtomicFS <vojtech.vesely@9elements.com>
  • Loading branch information
AtomicFS committed Jan 20, 2025
1 parent c90f456 commit 402447e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions cmd/firmware-action/recipes/recipes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,43 @@ func TestBuild(t *testing.T) {
recursive: false,
config: testConfigDependencyHell,
},
{
name: "dependency clusterfuck - middle",
wantErr: nil,
target: "milk",
recursive: false,
config: testConfigDependencyHell,
},
{
name: "two leaves and one root",
wantErr: nil,
target: "stitch",
recursive: false,
config: Config{
Edk2: map[string]Edk2Opts{
"edk2-build-a": {Depends: []string{}},
"edk2-build-b": {Depends: []string{}},
},
FirmwareStitching: map[string]FirmwareStitchingOpts{
"stitch": {Depends: []string{"edk2-build-a"}},
},
},
},
{
name: "one root and two leaves",
wantErr: nil,
target: "stitch-a",
recursive: false,
config: Config{
Edk2: map[string]Edk2Opts{
"edk2-build": {Depends: []string{}},
},
FirmwareStitching: map[string]FirmwareStitchingOpts{
"stitch-a": {Depends: []string{"edk2-build"}},
"stitch-b": {Depends: []string{"edk2-build"}},
},
},
},
}

const interactive = false
Expand Down

0 comments on commit 402447e

Please sign in to comment.