Skip to content

Commit 5175343

Browse files
committed
[skip changelog] Add test to verify debug command works with pde sketches
1 parent bbdf5dc commit 5175343

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

test/test_debug.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,27 @@ def test_debugger_starts(run_command, data_dir):
3737
programmer = "atmel_ice"
3838
# Starts debugger
3939
assert run_command(f"debug -b {fqbn} -P {programmer} {sketch_path} --info")
40+
41+
42+
def test_debugger_with_pde_sketch_starts(run_command, data_dir):
43+
assert run_command("update")
44+
45+
# Install core
46+
assert run_command("core install arduino:samd")
47+
48+
# Create sketch for testing
49+
sketch_name = "DebuggerPdeSketchStartTest"
50+
sketch_path = Path(data_dir, sketch_name)
51+
fqbn = "arduino:samd:mkr1000"
52+
53+
assert run_command(f"sketch new {sketch_path}")
54+
55+
# Renames sketch file to pde
56+
Path(sketch_path, f"{sketch_name}.ino").rename(sketch_path / f"{sketch_name}.pde")
57+
58+
# Build sketch
59+
assert run_command(f"compile -b {fqbn} {sketch_path}")
60+
61+
programmer = "atmel_ice"
62+
# Starts debugger
63+
assert run_command(f"debug -b {fqbn} -P {programmer} {sketch_path} --info")

0 commit comments

Comments
 (0)