Skip to content

Commit 9cc4eea

Browse files
authored
Add test for runtime.os upload property (#1411)
1 parent 64b14a5 commit 9cc4eea

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Diff for: test/test_upload_mock.py

+15
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def generate_build_dir(sketch_path):
3131
"https://adafruit.github.io/arduino-board-index/package_adafruit_index.json",
3232
"https://dl.espressif.com/dl/package_esp32_index.json",
3333
"http://arduino.esp8266.com/stable/package_esp8266com_index.json",
34+
"https://github.com/sonydevworld/spresense-arduino-compatible/releases/download/generic/package_spresense_index.json",
3435
]
3536

3637
cores_to_install = [
@@ -39,6 +40,7 @@ def generate_build_dir(sketch_path):
3940
"arduino:[email protected]",
4041
4142
"esp8266:[email protected]",
43+
"SPRESENSE:[email protected]",
4244
]
4345

4446
testdata = [
@@ -1149,6 +1151,19 @@ def generate_build_dir(sketch_path):
11491151
"no_reset_no_sync --after soft_reset write_flash 0x0 "
11501152
'"{build_dir}/{sketch_name}.ino.bin"\n',
11511153
),
1154+
(
1155+
"SPRESENSE:spresense:spresense",
1156+
"/dev/ttyACM0",
1157+
"",
1158+
{
1159+
"darwin": '"{data_dir}/packages/SPRESENSE/tools/spresense-tools/2.0.2/flash_writer/macosx/flash_writer" '
1160+
'-s -c "/dev/ttyACM0" -d -n "{build_dir}/{sketch_name}.ino.spk"',
1161+
"linux": '"{data_dir}/packages/SPRESENSE/tools/spresense-tools/2.0.2/flash_writer/linux/flash_writer" '
1162+
'-s -c "/dev/ttyACM0" -d -n "{build_dir}/{sketch_name}.ino.spk"',
1163+
"win32": '"{data_dir}/packages/SPRESENSE/tools/spresense-tools/2.0.2/flash_writer/windows/flash_writer.exe" '
1164+
'-s -c "/dev/ttyACM0" -d -n "{build_dir}/{sketch_name}.ino.spk"',
1165+
},
1166+
),
11521167
]
11531168

11541169

0 commit comments

Comments
 (0)