|
30 | 30 | package test
|
31 | 31 |
|
32 | 32 | import (
|
33 |
| - "arduino.cc/builder" |
34 |
| - "arduino.cc/builder/constants" |
35 |
| - "arduino.cc/builder/types" |
36 |
| - "github.com/stretchr/testify/require" |
37 | 33 | "os"
|
38 | 34 | "os/exec"
|
39 | 35 | "path/filepath"
|
40 | 36 | "testing"
|
| 37 | + |
| 38 | + "arduino.cc/builder" |
| 39 | + "arduino.cc/builder/constants" |
| 40 | + "arduino.cc/builder/types" |
| 41 | + "github.com/stretchr/testify/require" |
41 | 42 | )
|
42 | 43 |
|
43 | 44 | func TestBuilderEmptySketch(t *testing.T) {
|
@@ -324,26 +325,28 @@ func TestBuilderSketchWithOldLib(t *testing.T) {
|
324 | 325 | NoError(t, err)
|
325 | 326 | }
|
326 | 327 |
|
327 |
| -func TestBuilderSketchWithSubfolders(t *testing.T) { |
328 |
| - DownloadCoresAndToolsAndLibraries(t) |
329 |
| - |
330 |
| - ctx := &types.Context{ |
331 |
| - HardwareFolders: []string{filepath.Join("..", "hardware"), "hardware", "downloaded_hardware"}, |
332 |
| - ToolsFolders: []string{"downloaded_tools"}, |
333 |
| - BuiltInLibrariesFolders: []string{"downloaded_libraries"}, |
334 |
| - OtherLibrariesFolders: []string{"libraries"}, |
335 |
| - SketchLocation: filepath.Join("sketch_with_subfolders", "sketch_with_subfolders.ino"), |
336 |
| - FQBN: "arduino:avr:uno", |
337 |
| - ArduinoAPIVersion: "10600", |
338 |
| - } |
339 |
| - |
340 |
| - buildPath := SetupBuildPath(t, ctx) |
341 |
| - defer os.RemoveAll(buildPath) |
342 |
| - |
343 |
| - command := builder.Builder{} |
344 |
| - err := command.Run(ctx) |
345 |
| - NoError(t, err) |
346 |
| -} |
| 328 | +// Recursive compile of subfolder is no longer supported. |
| 329 | +// See: https://github.com/arduino/arduino-builder/issues/89 |
| 330 | +//func TestBuilderSketchWithSubfolders(t *testing.T) { |
| 331 | +// DownloadCoresAndToolsAndLibraries(t) |
| 332 | +// |
| 333 | +// ctx := &types.Context{ |
| 334 | +// HardwareFolders: []string{filepath.Join("..", "hardware"), "hardware", "downloaded_hardware"}, |
| 335 | +// ToolsFolders: []string{"downloaded_tools"}, |
| 336 | +// BuiltInLibrariesFolders: []string{"downloaded_libraries"}, |
| 337 | +// OtherLibrariesFolders: []string{"libraries"}, |
| 338 | +// SketchLocation: filepath.Join("sketch_with_subfolders", "sketch_with_subfolders.ino"), |
| 339 | +// FQBN: "arduino:avr:uno", |
| 340 | +// ArduinoAPIVersion: "10600", |
| 341 | +// } |
| 342 | +// |
| 343 | +// buildPath := SetupBuildPath(t, ctx) |
| 344 | +// defer os.RemoveAll(buildPath) |
| 345 | +// |
| 346 | +// command := builder.Builder{} |
| 347 | +// err := command.Run(ctx) |
| 348 | +// NoError(t, err) |
| 349 | +//} |
347 | 350 |
|
348 | 351 | func TestBuilderSketchBuildPathContainsUnusedPreviouslyCompiledLibrary(t *testing.T) {
|
349 | 352 | DownloadCoresAndToolsAndLibraries(t)
|
|
0 commit comments