Skip to content

Commit 44b9e80

Browse files
Migrate TestCompileSketchWithIppFileInclude from test_compile_part_4.py to compile_part_4_test.go
1 parent 40661f0 commit 44b9e80

File tree

4 files changed

+18
-13
lines changed

4 files changed

+18
-13
lines changed

internal/integrationtest/compile/compile_part_4_test.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,3 +388,21 @@ func TestCompileSketchSketchWithTppFileInclude(t *testing.T) {
388388
_, _, err = cli.Run("compile", "-b", fqbn, sketchPath.String(), "--verbose")
389389
require.NoError(t, err)
390390
}
391+
392+
func TestCompileSketchWithIppFileInclude(t *testing.T) {
393+
env, cli := integrationtest.CreateArduinoCLIWithEnvironment(t)
394+
defer env.CleanUp()
395+
396+
_, _, err := cli.Run("update")
397+
require.NoError(t, err)
398+
399+
// Download latest AVR
400+
_, _, err = cli.Run("core", "install", "arduino:avr")
401+
require.NoError(t, err)
402+
403+
sketchPath := cli.CopySketch("sketch_with_ipp_file_include")
404+
fqbn := "arduino:avr:uno"
405+
406+
_, _, err = cli.Run("compile", "-b", fqbn, sketchPath.String(), "--verbose")
407+
require.NoError(t, err)
408+
}

test/test_compile_part_4.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,6 @@ def test_compile_manually_installed_platform_using_boards_local_txt(run_command,
5050
assert run_command(["compile", "--clean", "-b", fqbn, sketch_path])
5151

5252

53-
def test_compile_sketch_with_ipp_file_include(run_command, copy_sketch):
54-
assert run_command(["update"])
55-
56-
# Download latest AVR
57-
run_command(["core", "install", "arduino:avr"])
58-
59-
sketch_name = "sketch_with_ipp_file_include"
60-
sketch_path = copy_sketch(sketch_name)
61-
fqbn = "arduino:avr:uno"
62-
63-
assert run_command(["compile", "-b", fqbn, sketch_path, "--verbose"])
64-
65-
6653
def test_compile_with_relative_build_path(run_command, data_dir, copy_sketch):
6754
assert run_command(["update"])
6855

0 commit comments

Comments
 (0)