Skip to content

Commit a36dff0

Browse files
committed
Added test for mixed old and new-style openocd script definition
1 parent 3961ae5 commit a36dff0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

internal/integrationtest/debug/debug_test.go

+23
Original file line numberDiff line numberDiff line change
@@ -215,5 +215,28 @@ func testAllDebugInformation(t *testing.T, env *integrationtest.Environment, cli
215215
}`)
216216
}
217217

218+
{
219+
// Starts debugger with mixed old and new-style openocd script definition
220+
jsonDebugOut, _, err := cli.Run("debug", "-b", "my:samd:my2", "-P", "my_cold_ice", sketchPath.String(), "--info", "--format", "json")
221+
require.NoError(t, err)
222+
debugOut := requirejson.Parse(t, jsonDebugOut)
223+
debugOut.MustContain(`
224+
{
225+
"toolchain": "gcc",
226+
"toolchain_path": "gcc-path",
227+
"toolchain_prefix": "gcc-prefix",
228+
"server": "openocd",
229+
"server_path": "openocd-path",
230+
"server_configuration": {
231+
"path": "openocd-path",
232+
"scripts_dir": "openocd-scripts-dir",
233+
"scripts": [
234+
"cold_ice_script"
235+
]
236+
},
237+
"svd_file": "svd-file"
238+
}`)
239+
}
240+
218241
}
219242
}

0 commit comments

Comments
 (0)