diff --git a/internal/integrationtest/compile_4/compile_test.go b/internal/integrationtest/compile_4/compile_test.go index 30557bc4c47..07ba1f8e931 100644 --- a/internal/integrationtest/compile_4/compile_test.go +++ b/internal/integrationtest/compile_4/compile_test.go @@ -102,6 +102,7 @@ func TestCompileOfProblematicSketches(t *testing.T) { {"SketchNoFunctionsTwoFiles", testBuilderSketchNoFunctionsTwoFiles}, {"SketchWithClassAndMethodSubstring", testBuilderSketchWithClassAndMethodSubstring}, {"SketchThatChecksIfSPIHasTransactions", tryBuildAvrLeonardo}, + {"SketchThatChecksIfSPIHasTransactionsAndIncludesMissingEthernet", testBuilderSketchThatChecksIfSPIHasTransactionsAndIncludesMissingEthernet}, {"SketchWithDependendLibraries", tryBuildAvrLeonardo}, {"SketchWithFunctionPointer", tryBuildAvrLeonardo}, {"USBHostExample", testBuilderUSBHostExample}, @@ -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"` diff --git a/legacy/builder/test/sketch_that_checks_if_SPI_has_transactions_and_includes_missing_Ethernet/sketch.ino b/internal/integrationtest/compile_4/testdata/SketchThatChecksIfSPIHasTransactionsAndIncludesMissingEthernet/SketchThatChecksIfSPIHasTransactionsAndIncludesMissingEthernet.ino similarity index 100% rename from legacy/builder/test/sketch_that_checks_if_SPI_has_transactions_and_includes_missing_Ethernet/sketch.ino rename to internal/integrationtest/compile_4/testdata/SketchThatChecksIfSPIHasTransactionsAndIncludesMissingEthernet/SketchThatChecksIfSPIHasTransactionsAndIncludesMissingEthernet.ino