Skip to content

Commit bfacc80

Browse files
Migrate TestCompileSketchWithIppFileInclude from test_compile_part_4.py to compile_part_4_test.go
1 parent 53fb571 commit bfacc80

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
@@ -384,3 +384,21 @@ func TestCompileSketchSketchWithTppFileInclude(t *testing.T) {
384384
_, _, err = cli.Run("compile", "-b", fqbn, sketchPath.String(), "--verbose")
385385
require.NoError(t, err)
386386
}
387+
388+
func TestCompileSketchWithIppFileInclude(t *testing.T) {
389+
env, cli := integrationtest.CreateArduinoCLIWithEnvironment(t)
390+
defer env.CleanUp()
391+
392+
_, _, err := cli.Run("update")
393+
require.NoError(t, err)
394+
395+
// Download latest AVR
396+
_, _, err = cli.Run("core", "install", "arduino:avr")
397+
require.NoError(t, err)
398+
399+
sketchPath := cli.CopySketch("sketch_with_ipp_file_include")
400+
fqbn := "arduino:avr:uno"
401+
402+
_, _, err = cli.Run("compile", "-b", fqbn, sketchPath.String(), "--verbose")
403+
require.NoError(t, err)
404+
}

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)