<div id="geary-body" dir="auto"><div>Hi all,</div><div><br></div><div>Thanks for your comments on the approach, Laurent. </div><div>I have pushed a branch here : <a href="https://u15657259.ct.sendgrid.net/ls/click?upn=8H1KCc2bev8KdIveckpOEF8NFg9rbIgRS-2FA55EvKtHykb8IS-2Bk-2FOjvY70Cmox2Skt4RwtdeXxv3-2Fvr0FP22m3Jn2NENLanEFXeyZZZVRTgE-3D4S12_C3wFy2Q4UgRsRLDAYieRZ5Z3EhAWyy0-2FkOzyYc6FPc1dn6ROcAJqKXb9hjP566uPbTi715rC6Dpas9O8eyoMebxvTSuRfQNSOCVqexIOH4v1im9LVTqaQijKWi3b4H2mBiz6vgTd0m2bfcI3xxwMBDVNAPIrl-2BjSn-2F1e8KSKyWS55U7g-2BcPThSj0HnCj1JugmDCaG9EK3k9kBQgQ4k-2BLj6P7of3Z3gokUsHo0ChSGEP2G37gXIuemga-2Ftp2xbxoukNOuPZvtyNmZQPNbstMOtw-3D-3D">https://github.com/uajain/libcamera/tree/uajain/hotplug</a></div><div><br></div><div>I have tested with UVC devices (primarily a external webcam) and I had satisfactory results.</div><div>I am now exploring ways to write unit tests around this. I, ideally, needs to run CameraManager and have a mock UDev</div><div>device-connected event fired so that CameraManager can run/test the code path above. I came across <a href="https://u15657259.ct.sendgrid.net/ls/click?upn=8H1KCc2bev8KdIveckpOENWIe8wLJf27r55W-2FCbo39NIgkUTQYfWmAgVXccH3QLaLgok_C3wFy2Q4UgRsRLDAYieRZ5Z3EhAWyy0-2FkOzyYc6FPc1dn6ROcAJqKXb9hjP566uPbTi715rC6Dpas9O8eyoMeVrnSSFKyFHspTVV1TEbQ3f2TtgjQyeCfzo5QTJ-2B1TU57YyeGNn-2BTIEuaYubVAYaQrBLlvwRwqf6LOyRoGg6-2F8OincO09kda3mWK8muaKMkltjua0gtM4Fv-2Fi9rX4AIoj7oFC6-2BSpJK-2BLRr0oYgZqGWeIlKspIjhuWUE1Vz1qTRQ5s-2FhPFYrX24XxsAdvHJLCA-3D-3D">https://github.com/martinpitt/umockdev</a></div><div>which seems relevant for this. Not sure how far can I get with this.</div><div><br></div><div>--</div><div>Regards,</div><div><br></div><div>Umang J.</div></div><img src="https://u15657259.ct.sendgrid.net/wf/open?upn=GCEip0g28ftA9O9fsCR2M7x08El53O4YVYtHuSI-2FrLwtytoSlmO-2FnSq-2B0q807R-2FERCIhChq-2BN2G6inpwetJ80lck18LaVlgJJn5ot8LVdF0bEGb3-2FjhdQZiiOaI6iuMvlJ13KLXcUbzibIcBsWsGph9gFFD56w6R7aK187y02bmXTW0tKG5hTwvC9Xh3J-2BRvCkwt6dYONVCr340Qu1O7WVWgmntFB3FyDw9YcLf39BsZ9Y55wsnS9hMYQpsXtNZtFay95h3wL5zOTkgb9aU-2Fuw-3D-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>