Skip to content

Commit

Permalink
ported SketchThatChecksIfSPIHasTransactionsAndIncludesMissingEthernet…
Browse files Browse the repository at this point in the history
… from legacy into integration test
  • Loading branch information
alessio-perugini committed Sep 14, 2023
1 parent fde5d3c commit 68f4035
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/integrationtest/compile_4/compile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ func TestCompileOfProblematicSketches(t *testing.T) {
{"SketchNoFunctionsTwoFiles", testBuilderSketchNoFunctionsTwoFiles},
{"SketchWithClassAndMethodSubstring", testBuilderSketchWithClassAndMethodSubstring},
{"SketchThatChecksIfSPIHasTransactions", tryBuildAvrLeonardo},
{"SketchThatChecksIfSPIHasTransactionsAndIncludesMissingEthernet", testBuilderSketchThatChecksIfSPIHasTransactionsAndIncludesMissingEthernet},
{"SketchWithDependendLibraries", tryBuildAvrLeonardo},
{"SketchWithFunctionPointer", tryBuildAvrLeonardo},
{"USBHostExample", testBuilderUSBHostExample},
Expand Down Expand Up @@ -792,6 +793,14 @@ func testBuilderSketchClassFunction(t *testing.T, env *integrationtest.Environme
})
}

func testBuilderSketchThatChecksIfSPIHasTransactionsAndIncludesMissingEthernet(t *testing.T, env *integrationtest.Environment, cli *integrationtest.ArduinoCLI) {
t.Run("Build", func(t *testing.T) {
// Build
_, err := tryBuild(t, env, cli, "arduino:avr:leonardo")
require.Error(t, err)
})
}

type builderOutput struct {
CompilerOut string `json:"compiler_out"`
CompilerErr string `json:"compiler_err"`
Expand Down

0 comments on commit 68f4035

Please sign in to comment.