Skip to content

Commit 40661f0

Browse files
Migrate TestCompileSketchWithTppFileInclude from test_compile_part_4.py to compile_part_4_test.go
1 parent ec32751 commit 40661f0

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
@@ -370,3 +370,21 @@ func TestGenerateCompileCommandsJsonResilience(t *testing.T) {
370370
_, _, err = cli.Run("compile", "-b", "esp32:esp32:featheresp32", "--only-compilation-database", sketchPath.String())
371371
require.NoError(t, err)
372372
}
373+
374+
func TestCompileSketchSketchWithTppFileInclude(t *testing.T) {
375+
env, cli := integrationtest.CreateArduinoCLIWithEnvironment(t)
376+
defer env.CleanUp()
377+
378+
_, _, err := cli.Run("update")
379+
require.NoError(t, err)
380+
381+
// Download latest AVR
382+
_, _, err = cli.Run("core", "install", "arduino:avr")
383+
require.NoError(t, err)
384+
385+
sketchPath := cli.CopySketch("sketch_with_tpp_file_include")
386+
fqbn := "arduino:avr:uno"
387+
388+
_, _, err = cli.Run("compile", "-b", fqbn, sketchPath.String(), "--verbose")
389+
require.NoError(t, err)
390+
}

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_tpp_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_tpp_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_sketch_with_ipp_file_include(run_command, copy_sketch):
6754
assert run_command(["update"])
6855

0 commit comments

Comments
 (0)