@@ -491,4 +491,17 @@ func TestLegacyPackageConversionToPluggableDiscovery(t *testing.T) {
491
491
require .Equal (t , "true" , platformProps .Get ("tools.esptool__pluggable_network.upload.field.password.secret" ))
492
492
require .Equal (t , "\" {network_cmd}\" -I \" {runtime.platform.path}/tools/espota.py\" -i \" {upload.port.address}\" -p \" {upload.port.properties.port}\" \" --auth={upload.field.password}\" -f \" {build.path}/{build.project_name}.bin\" " , platformProps .Get ("tools.esptool__pluggable_network.upload.pattern" ))
493
493
}
494
+ {
495
+ fqbn , err := cores .ParseFQBN ("arduino:avr:uno" )
496
+ require .NoError (t , err )
497
+ require .NotNil (t , fqbn )
498
+ _ , platformRelease , board , _ , _ , err := pm .ResolveFQBN (fqbn )
499
+ require .NoError (t , err )
500
+ require .Equal (t , "avrdude__pluggable_network" , board .Properties .Get ("upload.tool.network" ))
501
+ require .Equal (t , "uno" , board .Properties .Get ("upload_port.4.board" ))
502
+ platformProps := platformRelease .Properties
503
+ require .Equal (t , "builtin:serial-discovery" , platformProps .Get ("pluggable_discovery.required.0" ))
504
+ require .Equal (t , "builtin:mdns-discovery" , platformProps .Get ("pluggable_discovery.required.1" ))
505
+ require .Equal (t , `"{network_cmd}" -address {upload.port.address} -port {upload.port.properties.port} -sketch "{build.path}/{build.project_name}.hex" -upload {upload.port.properties.endpoint_upload} -sync {upload.port.properties.endpoint_sync} -reset {upload.port.properties.endpoint_reset} -sync_exp {upload.port.properties.sync_return}` , platformProps .Get ("tools.avrdude__pluggable_network.upload.pattern" ))
506
+ }
494
507
}
0 commit comments