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 <[email protected]>
  • Loading branch information
AtomicFS committed Jan 17, 2025
1 parent c90f456 commit 35f8d9c
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 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,45 @@ func TestBuild(t *testing.T) {
recursive: false,
config: testConfigDependencyHell,
},
{
// currently breaks DAG
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"}},
},
},
},
{
// currently breaks DAG
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 35f8d9c

Please sign in to comment.