diff options
Diffstat (limited to 'tests')
84 files changed, 680 insertions, 35 deletions
diff --git a/tests/Python3_Driver_Testing.md b/tests/Python3_Driver_Testing.md new file mode 100644 index 0000000..ccb0d49 --- /dev/null +++ b/tests/Python3_Driver_Testing.md @@ -0,0 +1,339 @@ +## Status +| Driver | Tester | Tested | Byte Clean | +| ------ | ------ | ------ | ---------- | +| <a name="ARRL_Travel_Plus"></a> ARRL_Travel_Plus | | | | +| <a name="Abbree_AR-518"></a> Abbree_AR-518 | | | | +| <a name="Abbree_AR-63"></a> Abbree_AR-63 | | | | +| <a name="Alinco_DJ-G7EG"></a> Alinco_DJ-G7EG | | | | +| <a name="Alinco_DJ175"></a> Alinco_DJ175 | | | | +| <a name="Alinco_DJ596"></a> Alinco_DJ596 | | | | +| <a name="Alinco_DR03T"></a> Alinco_DR03T | | | | +| <a name="Alinco_DR06T"></a> Alinco_DR06T | | | | +| <a name="Alinco_DR135T"></a> Alinco_DR135T | | | | +| <a name="Alinco_DR235T"></a> Alinco_DR235T | | | | +| <a name="Alinco_DR435T"></a> Alinco_DR435T | | | | +| <a name="AnyTone_5888UV"></a> AnyTone_5888UV | | | | +| <a name="AnyTone_5888UVIII"></a> AnyTone_5888UVIII | | | | +| <a name="AnyTone_778UV"></a> AnyTone_778UV | | | Yes | +| <a name="AnyTone_778UV_VOX"></a> AnyTone_778UV_VOX | | | Yes | +| <a name="AnyTone_OBLTR-8R"></a> AnyTone_OBLTR-8R | | | | +| <a name="AnyTone_TERMN-8R"></a> AnyTone_TERMN-8R | | | | +| <a name="Anysecu_WP-9900"></a> Anysecu_WP-9900 | | | Yes | +| <a name="BTECH_FRS-A1"></a> BTECH_FRS-A1 | | | | +| <a name="BTECH_FRS-B1"></a> BTECH_FRS-B1 | | | | +| <a name="BTECH_GMRS-20V2"></a> BTECH_GMRS-20V2 | | | Yes | +| <a name="BTECH_GMRS-50X1"></a> BTECH_GMRS-50X1 | | | Yes | +| <a name="BTECH_GMRS-V1"></a> BTECH_GMRS-V1 | | | | +| <a name="BTECH_GMRS-V2"></a> BTECH_GMRS-V2 | | | | +| <a name="BTECH_MURS-V1"></a> BTECH_MURS-V1 | | | | +| <a name="BTECH_UV-2501"></a> BTECH_UV-2501 | | | Yes | +| <a name="BTECH_UV-2501+220"></a> BTECH_UV-2501+220 | | | Yes | +| <a name="BTECH_UV-25X2"></a> BTECH_UV-25X2 | | | Yes | +| <a name="BTECH_UV-25X4"></a> BTECH_UV-25X4 | | | Yes | +| <a name="BTECH_UV-5001"></a> BTECH_UV-5001 | | | Yes | +| <a name="BTECH_UV-50X2"></a> BTECH_UV-50X2 | | | Yes | +| <a name="BTECH_UV-50X3"></a> BTECH_UV-50X3 | | | | +| <a name="BTECH_UV-5X3"></a> BTECH_UV-5X3 | | | | +| <a name="Baofeng_BF-888"></a> Baofeng_BF-888 | [@kk7ds](https://github.com/kk7ds) | 13-Feb-2019 | Yes | +| <a name="Baofeng_BF-A58"></a> Baofeng_BF-A58 | | | | +| <a name="Baofeng_BF-A58S"></a> Baofeng_BF-A58S | | | | +| <a name="Baofeng_BF-F8HP"></a> Baofeng_BF-F8HP | | | Yes | +| <a name="Baofeng_BF-T1"></a> Baofeng_BF-T1 | | | | +| <a name="Baofeng_BF-T8"></a> Baofeng_BF-T8 | | | | +| <a name="Baofeng_BF-V8A"></a> Baofeng_BF-V8A | | | | +| <a name="Baofeng_F-11"></a> Baofeng_F-11 | | | Yes | +| <a name="Baofeng_GT-3WP"></a> Baofeng_GT-3WP | | | | +| <a name="Baofeng_GT-5R"></a> Baofeng_GT-5R | | | Yes | +| <a name="Baofeng_UV-3R"></a> Baofeng_UV-3R | [@yarda](https://github.com/yarda) | 26-Sep-2022 | | +| <a name="Baofeng_UV-5R"></a> Baofeng_UV-5R | [@lekv](https://github.com/lekv) | 23-Oct-2022 | Yes | +| <a name="Baofeng_UV-6"></a> Baofeng_UV-6 | | | Yes | +| <a name="Baofeng_UV-6R"></a> Baofeng_UV-6R | | | | +| <a name="Baofeng_UV-82"></a> Baofeng_UV-82 | | | Yes | +| <a name="Baofeng_UV-82HP"></a> Baofeng_UV-82HP | | | Yes | +| <a name="Baofeng_UV-82WP"></a> Baofeng_UV-82WP | | | | +| <a name="Baofeng_UV-9G"></a> Baofeng_UV-9G | | | | +| <a name="Baofeng_UV-9R"></a> Baofeng_UV-9R | | | | +| <a name="Baofeng_UV-B5"></a> Baofeng_UV-B5 | | | Yes | +| <a name="Baojie_BJ-UV55"></a> Baojie_BJ-UV55 | | | Yes | +| <a name="Boblov_X3Plus"></a> Boblov_X3Plus | | | | +| <a name="CRT_Micron_UV"></a> CRT_Micron_UV | | | Yes | +| <a name="CRT_Micron_UV_V2"></a> CRT_Micron_UV_V2 | | | Yes | +| <a name="Commander_KG-UV"></a> Commander_KG-UV | | | | +| <a name="Explorer_QRZ-1"></a> Explorer_QRZ-1 | | | | +| <a name="Feidaxin_FD-150A"></a> Feidaxin_FD-150A | | | | +| <a name="Feidaxin_FD-160A"></a> Feidaxin_FD-160A | | | | +| <a name="Feidaxin_FD-268A"></a> Feidaxin_FD-268A | | | | +| <a name="Feidaxin_FD-268B"></a> Feidaxin_FD-268B | | | | +| <a name="Feidaxin_FD-288A"></a> Feidaxin_FD-288A | | | | +| <a name="Feidaxin_FD-288B"></a> Feidaxin_FD-288B | | | | +| <a name="Feidaxin_FD-450A"></a> Feidaxin_FD-450A | | | | +| <a name="Feidaxin_FD-460A"></a> Feidaxin_FD-460A | | | | +| <a name="Feidaxin_FD-460UH"></a> Feidaxin_FD-460UH | | | | +| <a name="Generic_CSV"></a> Generic_CSV | | | | +| <a name="HobbyPCB_RS-UV3"></a> HobbyPCB_RS-UV3 | | | | +| <a name="Icom_746"></a> Icom_746 | | | Yes | +| <a name="Icom_IC-208H"></a> Icom_IC-208H | | | Yes | +| <a name="Icom_IC-2100H"></a> Icom_IC-2100H | | | Yes | +| <a name="Icom_IC-2200H"></a> Icom_IC-2200H | [@kk7ds](https://github.com/kk7ds) | 24-Oct-2022 | Yes | +| <a name="Icom_IC-2300H"></a> Icom_IC-2300H | | | Yes | +| <a name="Icom_IC-2720H"></a> Icom_IC-2720H | | | Yes | +| <a name="Icom_IC-2730A"></a> Icom_IC-2730A | | | Yes | +| <a name="Icom_IC-2820H"></a> Icom_IC-2820H | [@kk7ds](https://github.com/kk7ds) | 22-Oct-2022 | Yes | +| <a name="Icom_IC-7000"></a> Icom_IC-7000 | | | Yes | +| <a name="Icom_IC-7100"></a> Icom_IC-7100 | | | Yes | +| <a name="Icom_IC-7200"></a> Icom_IC-7200 | [@kk7ds](https://github.com/kk7ds) | 22-Oct-2022 | Yes | +| <a name="Icom_IC-7300"></a> Icom_IC-7300 | [@kk7ds](https://github.com/kk7ds) | 22-Oct-2022 | Yes | +| <a name="Icom_IC-7610"></a> Icom_IC-7610 | [@kk7ds](https://github.com/kk7ds) | 24-Oct-2022 | Yes | +| <a name="Icom_IC-910"></a> Icom_IC-910 | [@mfncooper](https://github.com/mfncooper) | 1-Oct-2021 | Yes | +| <a name="Icom_IC-91_92AD"></a> Icom_IC-91_92AD | | | | +| <a name="Icom_IC-E90"></a> Icom_IC-E90 | | | Yes | +| <a name="Icom_IC-P7"></a> Icom_IC-P7 | | | Yes | +| <a name="Icom_IC-Q7A"></a> Icom_IC-Q7A | | | Yes | +| <a name="Icom_IC-T70"></a> Icom_IC-T70 | | | Yes | +| <a name="Icom_IC-T7H"></a> Icom_IC-T7H | | | Yes | +| <a name="Icom_IC-T8A"></a> Icom_IC-T8A | | | Yes | +| <a name="Icom_IC-V82_U82"></a> Icom_IC-V82_U82 | | | | +| <a name="Icom_IC-V86"></a> Icom_IC-V86 | | | Yes | +| <a name="Icom_IC-W32A"></a> Icom_IC-W32A | | | Yes | +| <a name="Icom_IC-W32E"></a> Icom_IC-W32E | | | Yes | +| <a name="Icom_ID-31A"></a> Icom_ID-31A | [@kk7ds](https://github.com/kk7ds) | 12-Feb-2019 | Yes | +| <a name="Icom_ID-51"></a> Icom_ID-51 | | | Yes | +| <a name="Icom_ID-51_Plus"></a> Icom_ID-51_Plus | | | Yes | +| <a name="Icom_ID-800H_v2"></a> Icom_ID-800H_v2 | [@kk7ds](https://github.com/kk7ds) | 22-Oct-2022 | Yes | +| <a name="Icom_ID-80H"></a> Icom_ID-80H | | | Yes | +| <a name="Icom_ID-880H"></a> Icom_ID-880H | [@kk7ds](https://github.com/kk7ds) | 22-Oct-2022 | Yes | +| <a name="Intek_HR-2040"></a> Intek_HR-2040 | | | | +| <a name="Intek_KT-980HP"></a> Intek_KT-980HP | | | Yes | +| <a name="Jetstream_JT220M"></a> Jetstream_JT220M | | | | +| <a name="Jetstream_JT270M"></a> Jetstream_JT270M | | | | +| <a name="Jetstream_JT270MH"></a> Jetstream_JT270MH | | | | +| <a name="KYD_IP-620"></a> KYD_IP-620 | | | | +| <a name="KYD_NC-630A"></a> KYD_NC-630A | | | | +| <a name="Kenwood_HMK"></a> Kenwood_HMK | | | | +| <a name="Kenwood_ITM"></a> Kenwood_ITM | | | | +| <a name="Kenwood_TH-D7"></a> Kenwood_TH-D7 | | | Yes | +| <a name="Kenwood_TH-D72_clone_mode"></a> Kenwood_TH-D72_clone_mode | | | | +| <a name="Kenwood_TH-D72_live_mode"></a> Kenwood_TH-D72_live_mode | [@kk7ds](https://github.com/kk7ds) | 21-Oct-2022 | Yes | +| <a name="Kenwood_TH-D74_live_mode"></a> Kenwood_TH-D74_live_mode | [@kk7ds](https://github.com/kk7ds) | 20-Oct-2022 | Yes | +| <a name="Kenwood_TH-D7G"></a> Kenwood_TH-D7G | | | Yes | +| <a name="Kenwood_TH-F6"></a> Kenwood_TH-F6 | | | Yes | +| <a name="Kenwood_TH-F7"></a> Kenwood_TH-F7 | [@sv1](https://github.com/sv1) | 19-Oct-2022 | Yes | +| <a name="Kenwood_TH-G71"></a> Kenwood_TH-G71 | | | Yes | +| <a name="Kenwood_TH-K2"></a> Kenwood_TH-K2 | | | Yes | +| <a name="Kenwood_TK-2180"></a> Kenwood_TK-2180 | | | Yes | +| <a name="Kenwood_TK-260"></a> Kenwood_TK-260 | | | | +| <a name="Kenwood_TK-260G"></a> Kenwood_TK-260G | | | | +| <a name="Kenwood_TK-270"></a> Kenwood_TK-270 | | | | +| <a name="Kenwood_TK-270G"></a> Kenwood_TK-270G | | | | +| <a name="Kenwood_TK-272"></a> Kenwood_TK-272 | | | | +| <a name="Kenwood_TK-272G"></a> Kenwood_TK-272G | | | | +| <a name="Kenwood_TK-278"></a> Kenwood_TK-278 | | | | +| <a name="Kenwood_TK-278G"></a> Kenwood_TK-278G | | | | +| <a name="Kenwood_TK-3180K"></a> Kenwood_TK-3180K | | | Yes | +| <a name="Kenwood_TK-3180K2"></a> Kenwood_TK-3180K2 | | | Yes | +| <a name="Kenwood_TK-360"></a> Kenwood_TK-360 | | | | +| <a name="Kenwood_TK-360G"></a> Kenwood_TK-360G | | | | +| <a name="Kenwood_TK-370"></a> Kenwood_TK-370 | | | | +| <a name="Kenwood_TK-370G"></a> Kenwood_TK-370G | | | | +| <a name="Kenwood_TK-372"></a> Kenwood_TK-372 | | | | +| <a name="Kenwood_TK-372G"></a> Kenwood_TK-372G | | | | +| <a name="Kenwood_TK-378"></a> Kenwood_TK-378 | | | | +| <a name="Kenwood_TK-378G"></a> Kenwood_TK-378G | | | | +| <a name="Kenwood_TK-388G"></a> Kenwood_TK-388G | | | | +| <a name="Kenwood_TK-7102"></a> Kenwood_TK-7102 | [@kk7ds](https://github.com/kk7ds) | 15-Feb-2019 | Yes | +| <a name="Kenwood_TK-7108"></a> Kenwood_TK-7108 | [@kk7ds](https://github.com/kk7ds) | 15-Feb-2019 | Yes | +| <a name="Kenwood_TK-7180"></a> Kenwood_TK-7180 | [@kk7ds](https://github.com/kk7ds) | 18-Oct-2022 | Yes | +| <a name="Kenwood_TK-7180E"></a> Kenwood_TK-7180E | | | Yes | +| <a name="Kenwood_TK-760"></a> Kenwood_TK-760 | | | | +| <a name="Kenwood_TK-760G"></a> Kenwood_TK-760G | | | | +| <a name="Kenwood_TK-762"></a> Kenwood_TK-762 | | | | +| <a name="Kenwood_TK-762G"></a> Kenwood_TK-762G | | | | +| <a name="Kenwood_TK-768"></a> Kenwood_TK-768 | | | | +| <a name="Kenwood_TK-768G"></a> Kenwood_TK-768G | | | | +| <a name="Kenwood_TK-8102"></a> Kenwood_TK-8102 | [@kk7ds](https://github.com/kk7ds) | 15-Feb-2019 | Yes | +| <a name="Kenwood_TK-8108"></a> Kenwood_TK-8108 | [@kk7ds](https://github.com/kk7ds) | 15-Feb-2019 | Yes | +| <a name="Kenwood_TK-8180"></a> Kenwood_TK-8180 | [@kk7ds](https://github.com/kk7ds) | 18-Oct-2022 | Yes | +| <a name="Kenwood_TK-8180E"></a> Kenwood_TK-8180E | | | Yes | +| <a name="Kenwood_TK-860"></a> Kenwood_TK-860 | | | | +| <a name="Kenwood_TK-860G"></a> Kenwood_TK-860G | | | | +| <a name="Kenwood_TK-862"></a> Kenwood_TK-862 | | | | +| <a name="Kenwood_TK-862G"></a> Kenwood_TK-862G | | | | +| <a name="Kenwood_TK-868"></a> Kenwood_TK-868 | | | | +| <a name="Kenwood_TK-868G"></a> Kenwood_TK-868G | | | | +| <a name="Kenwood_TM-271"></a> Kenwood_TM-271 | [Implied by Kenwood_TM-281](#user-content-Kenwood_TM-281) | 23-Oct-2022 | Yes | +| <a name="Kenwood_TM-281"></a> Kenwood_TM-281 | [@kk7ds](https://github.com/kk7ds) | 23-Oct-2022 | Yes | +| <a name="Kenwood_TM-471"></a> Kenwood_TM-471 | | | Yes | +| <a name="Kenwood_TM-D700"></a> Kenwood_TM-D700 | [@kk7ds](https://github.com/kk7ds) | 20-Oct-2022 | Yes | +| <a name="Kenwood_TM-D710"></a> Kenwood_TM-D710 | | | Yes | +| <a name="Kenwood_TM-D710G"></a> Kenwood_TM-D710G | [@kk7ds](https://github.com/kk7ds) | 22-Oct-2022 | Yes | +| <a name="Kenwood_TM-D710G_CloneMode"></a> Kenwood_TM-D710G_CloneMode | [@kk7ds](https://github.com/kk7ds) | 22-Oct-2022 | Yes | +| <a name="Kenwood_TM-D710_CloneMode"></a> Kenwood_TM-D710_CloneMode | | | Yes | +| <a name="Kenwood_TM-G707"></a> Kenwood_TM-G707 | | | Yes | +| <a name="Kenwood_TM-V7"></a> Kenwood_TM-V7 | | | Yes | +| <a name="Kenwood_TM-V71"></a> Kenwood_TM-V71 | [@kk7ds](https://github.com/kk7ds) | 21-Oct-2022 | Yes | +| <a name="Kenwood_TS-2000"></a> Kenwood_TS-2000 | | | Yes | +| <a name="Kenwood_TS-480_CloneMode"></a> Kenwood_TS-480_CloneMode | | | | +| <a name="Kenwood_TS-480_LiveMode"></a> Kenwood_TS-480_LiveMode | | | Yes | +| <a name="Kenwood_TS-590SG_CloneMode"></a> Kenwood_TS-590SG_CloneMode | | | | +| <a name="Kenwood_TS-590S_CloneMode"></a> Kenwood_TS-590S_CloneMode | | | | +| <a name="Kenwood_TS-590S_SG_LiveMode"></a> Kenwood_TS-590S_SG_LiveMode | | | Yes | +| <a name="Kenwood_TS-850"></a> Kenwood_TS-850 | | | Yes | +| <a name="LUITON_LT-316"></a> LUITON_LT-316 | | | | +| <a name="LUITON_LT-580_UHF"></a> LUITON_LT-580_UHF | | | | +| <a name="LUITON_LT-580_VHF"></a> LUITON_LT-580_VHF | | | | +| <a name="LUITON_LT-588UV"></a> LUITON_LT-588UV | | | Yes | +| <a name="Lanchonlh_HG-UV98"></a> Lanchonlh_HG-UV98 | | | Yes | +| <a name="Leixen_VV-898"></a> Leixen_VV-898 | | | | +| <a name="Leixen_VV-898S"></a> Leixen_VV-898S | | | | +| <a name="MTC_UV-5R-3"></a> MTC_UV-5R-3 | | | | +| <a name="Midland_DBR2500"></a> Midland_DBR2500 | | | Yes | +| <a name="Polmar_DB-50M"></a> Polmar_DB-50M | | | | +| <a name="Powerwerx_DB-750X"></a> Powerwerx_DB-750X | | | | +| <a name="QYT_KT-8R"></a> QYT_KT-8R | | | Yes | +| <a name="QYT_KT-UV980"></a> QYT_KT-UV980 | | | Yes | +| <a name="QYT_KT-WP12"></a> QYT_KT-WP12 | | | Yes | +| <a name="QYT_KT5800"></a> QYT_KT5800 | | | Yes | +| <a name="QYT_KT7900D"></a> QYT_KT7900D | | | Yes | +| <a name="QYT_KT8900"></a> QYT_KT8900 | | | Yes | +| <a name="QYT_KT8900D"></a> QYT_KT8900D | | | Yes | +| <a name="QYT_KT8900R"></a> QYT_KT8900R | | | Yes | +| <a name="QYT_KT980PLUS"></a> QYT_KT980PLUS | | | Yes | +| <a name="Quansheng_TG-UV2+"></a> Quansheng_TG-UV2+ | | | | +| <a name="RT_Systems_CSV"></a> RT_Systems_CSV | | | | +| <a name="Radioddity_DB25-G"></a> Radioddity_DB25-G | | | Yes | +| <a name="Radioddity_GA-2S"></a> Radioddity_GA-2S | | | Yes | +| <a name="Radioddity_GA-510"></a> Radioddity_GA-510 | [@kk7ds](https://github.com/kk7ds) | 21-Oct-2022 | Yes | +| <a name="Radioddity_R2"></a> Radioddity_R2 | | | | +| <a name="Radioddity_UV-5G"></a> Radioddity_UV-5G | | | Yes | +| <a name="Radioddity_UV-5RX3"></a> Radioddity_UV-5RX3 | | | Yes | +| <a name="Radioddity_UV-82X3"></a> Radioddity_UV-82X3 | | | Yes | +| <a name="Radtel_T18"></a> Radtel_T18 | | | | +| <a name="Retevis_H777_Plus"></a> Retevis_H777_Plus | | | Yes | +| <a name="Retevis_RA685"></a> Retevis_RA685 | | | Yes | +| <a name="Retevis_RA85"></a> Retevis_RA85 | | | Yes | +| <a name="Retevis_RB15"></a> Retevis_RB15 | | | | +| <a name="Retevis_RB17"></a> Retevis_RB17 | | | | +| <a name="Retevis_RB17A"></a> Retevis_RB17A | | | | +| <a name="Retevis_RB17P"></a> Retevis_RB17P | | | | +| <a name="Retevis_RB17V"></a> Retevis_RB17V | | | | +| <a name="Retevis_RB18"></a> Retevis_RB18 | | | | +| <a name="Retevis_RB19"></a> Retevis_RB19 | | | | +| <a name="Retevis_RB19P"></a> Retevis_RB19P | | | | +| <a name="Retevis_RB23"></a> Retevis_RB23 | | | | +| <a name="Retevis_RB26"></a> Retevis_RB26 | | | | +| <a name="Retevis_RB27"></a> Retevis_RB27 | | | | +| <a name="Retevis_RB27B"></a> Retevis_RB27B | | | | +| <a name="Retevis_RB27V"></a> Retevis_RB27V | | | | +| <a name="Retevis_RB615"></a> Retevis_RB615 | | | | +| <a name="Retevis_RB617"></a> Retevis_RB617 | | | | +| <a name="Retevis_RB618"></a> Retevis_RB618 | | | | +| <a name="Retevis_RB619"></a> Retevis_RB619 | | | | +| <a name="Retevis_RB627B"></a> Retevis_RB627B | | | | +| <a name="Retevis_RB75"></a> Retevis_RB75 | | | | +| <a name="Retevis_RB85"></a> Retevis_RB85 | | | | +| <a name="Retevis_RT1"></a> Retevis_RT1 | | | | +| <a name="Retevis_RT16"></a> Retevis_RT16 | | | | +| <a name="Retevis_RT19"></a> Retevis_RT19 | | | | +| <a name="Retevis_RT21"></a> Retevis_RT21 | | | | +| <a name="Retevis_RT22"></a> Retevis_RT22 | | | | +| <a name="Retevis_RT22FRS"></a> Retevis_RT22FRS | | | | +| <a name="Retevis_RT22S"></a> Retevis_RT22S | | | | +| <a name="Retevis_RT23"></a> Retevis_RT23 | | | | +| <a name="Retevis_RT26"></a> Retevis_RT26 | | | | +| <a name="Retevis_RT29_UHF"></a> Retevis_RT29_UHF | | | | +| <a name="Retevis_RT29_VHF"></a> Retevis_RT29_VHF | | | | +| <a name="Retevis_RT40B"></a> Retevis_RT40B | | | | +| <a name="Retevis_RT47"></a> Retevis_RT47 | | | | +| <a name="Retevis_RT47V"></a> Retevis_RT47V | | | | +| <a name="Retevis_RT6"></a> Retevis_RT6 | | | | +| <a name="Retevis_RT619"></a> Retevis_RT619 | | | | +| <a name="Retevis_RT622"></a> Retevis_RT622 | | | | +| <a name="Retevis_RT647"></a> Retevis_RT647 | | | | +| <a name="Retevis_RT668"></a> Retevis_RT668 | | | | +| <a name="Retevis_RT68"></a> Retevis_RT68 | | | | +| <a name="Retevis_RT76"></a> Retevis_RT76 | | | | +| <a name="Retevis_RT76P"></a> Retevis_RT76P | | | | +| <a name="Retevis_RT85"></a> Retevis_RT85 | | | | +| <a name="Retevis_RT87"></a> Retevis_RT87 | | | | +| <a name="Retevis_RT9000D_136-174"></a> Retevis_RT9000D_136-174 | | | | +| <a name="Retevis_RT9000D_220-260"></a> Retevis_RT9000D_220-260 | | | | +| <a name="Retevis_RT9000D_400-490"></a> Retevis_RT9000D_400-490 | | | | +| <a name="Retevis_RT9000D_66-88"></a> Retevis_RT9000D_66-88 | | | | +| <a name="Retevis_RT95"></a> Retevis_RT95 | | | Yes | +| <a name="Retevis_RT95_VOX"></a> Retevis_RT95_VOX | | | Yes | +| <a name="Retevis_RT98"></a> Retevis_RT98 | | | | +| <a name="Rugged_RH5R-V2"></a> Rugged_RH5R-V2 | | | | +| <a name="TDXone_TD-Q8A"></a> TDXone_TD-Q8A | | | | +| <a name="TIDRADIO_TD-H6"></a> TIDRADIO_TD-H6 | [@kk7ds](https://github.com/kk7ds) | 21-Oct-2022 | Yes | +| <a name="TID_TD-M8"></a> TID_TD-M8 | | | | +| <a name="TYT_TH-350"></a> TYT_TH-350 | | | Yes | +| <a name="TYT_TH-7800"></a> TYT_TH-7800 | | | | +| <a name="TYT_TH-7800_File"></a> TYT_TH-7800_File | | | | +| <a name="TYT_TH-9800"></a> TYT_TH-9800 | | | | +| <a name="TYT_TH-9800_File"></a> TYT_TH-9800_File | | | | +| <a name="TYT_TH-UV8000"></a> TYT_TH-UV8000 | | | | +| <a name="TYT_TH-UV88"></a> TYT_TH-UV88 | | | | +| <a name="TYT_TH-UVF1"></a> TYT_TH-UVF1 | | | | +| <a name="TYT_TH-UVF8D"></a> TYT_TH-UVF8D | | | | +| <a name="TYT_TH9000_144"></a> TYT_TH9000_144 | | | | +| <a name="TYT_TH9000_220"></a> TYT_TH9000_220 | | | | +| <a name="TYT_TH9000_440"></a> TYT_TH9000_440 | | | | +| <a name="Vertex_Standard_FTL-1011"></a> Vertex_Standard_FTL-1011 | | | | +| <a name="Vertex_Standard_FTL-2011"></a> Vertex_Standard_FTL-2011 | | | | +| <a name="Vertex_Standard_FTL-7011"></a> Vertex_Standard_FTL-7011 | | | | +| <a name="Vertex_Standard_FTL-8011"></a> Vertex_Standard_FTL-8011 | | | | +| <a name="Vertex_Standard_VXA-700"></a> Vertex_Standard_VXA-700 | | | | +| <a name="WACCOM_MINI-8900"></a> WACCOM_MINI-8900 | | | Yes | +| <a name="WLN_KD-C1"></a> WLN_KD-C1 | | | | +| <a name="Wouxun_KG-935G"></a> Wouxun_KG-935G | | | | +| <a name="Wouxun_KG-UV8D"></a> Wouxun_KG-UV8D | | | | +| <a name="Wouxun_KG-UV8D_Plus"></a> Wouxun_KG-UV8D_Plus | | | | +| <a name="Wouxun_KG-UV8E"></a> Wouxun_KG-UV8E | | | | +| <a name="Wouxun_KG-UV920P-A"></a> Wouxun_KG-UV920P-A | | | | +| <a name="Wouxun_KG-UV9D_Plus"></a> Wouxun_KG-UV9D_Plus | | | | +| <a name="Yaesu_FT-1500M"></a> Yaesu_FT-1500M | | | Yes | +| <a name="Yaesu_FT-1802M"></a> Yaesu_FT-1802M | | | Yes | +| <a name="Yaesu_FT-25R"></a> Yaesu_FT-25R | | | Yes | +| <a name="Yaesu_FT-2800M"></a> Yaesu_FT-2800M | | | Yes | +| <a name="Yaesu_FT-2900R_1900R"></a> Yaesu_FT-2900R_1900R | | | Yes | +| <a name="Yaesu_FT-2900R_1900RTXMod_Opened_Xmit"></a> Yaesu_FT-2900R_1900RTXMod_Opened_Xmit | | | Yes | +| <a name="Yaesu_FT-4VR"></a> Yaesu_FT-4VR | | | Yes | +| <a name="Yaesu_FT-4XE"></a> Yaesu_FT-4XE | | | Yes | +| <a name="Yaesu_FT-4XR"></a> Yaesu_FT-4XR | | | Yes | +| <a name="Yaesu_FT-50"></a> Yaesu_FT-50 | | | Yes | +| <a name="Yaesu_FT-60"></a> Yaesu_FT-60 | | | Yes | +| <a name="Yaesu_FT-65E"></a> Yaesu_FT-65E | | | Yes | +| <a name="Yaesu_FT-65R"></a> Yaesu_FT-65R | | | Yes | +| <a name="Yaesu_FT-70D"></a> Yaesu_FT-70D | | | Yes | +| <a name="Yaesu_FT-7100M"></a> Yaesu_FT-7100M | | | Yes | +| <a name="Yaesu_FT-7800_7900"></a> Yaesu_FT-7800_7900 | [@kk7ds](https://github.com/kk7ds) | 24-Oct-2022 | Yes | +| <a name="Yaesu_FT-8100"></a> Yaesu_FT-8100 | | | Yes | +| <a name="Yaesu_FT-817"></a> Yaesu_FT-817 | [@kk7ds](https://github.com/kk7ds) | 14-Feb-2019 | Yes | +| <a name="Yaesu_FT-817ND"></a> Yaesu_FT-817ND | | | Yes | +| <a name="Yaesu_FT-817ND_US"></a> Yaesu_FT-817ND_US | | | Yes | +| <a name="Yaesu_FT-818"></a> Yaesu_FT-818 | | | Yes | +| <a name="Yaesu_FT-818ND_US"></a> Yaesu_FT-818ND_US | | | Yes | +| <a name="Yaesu_FT-857_897"></a> Yaesu_FT-857_897 | | | Yes | +| <a name="Yaesu_FT-857_897_US"></a> Yaesu_FT-857_897_US | | | Yes | +| <a name="Yaesu_FT-8800"></a> Yaesu_FT-8800 | [@kk7ds](https://github.com/kk7ds) | 24-Oct-2022 | Yes | +| <a name="Yaesu_FT-8900"></a> Yaesu_FT-8900 | | | Yes | +| <a name="Yaesu_FT-90"></a> Yaesu_FT-90 | | | Yes | +| <a name="Yaesu_FTM-350"></a> Yaesu_FTM-350 | | | Yes | +| <a name="Yaesu_VX-170"></a> Yaesu_VX-170 | | | Yes | +| <a name="Yaesu_VX-2"></a> Yaesu_VX-2 | | | Yes | +| <a name="Yaesu_VX-3"></a> Yaesu_VX-3 | [@kk7ds](https://github.com/kk7ds) | 15-Feb-2019 | Yes | +| <a name="Yaesu_VX-5"></a> Yaesu_VX-5 | | | Yes | +| <a name="Yaesu_VX-6"></a> Yaesu_VX-6 | | | Yes | +| <a name="Yaesu_VX-7"></a> Yaesu_VX-7 | [@kk7ds](https://github.com/kk7ds) | 15-Feb-2019 | Yes | +| <a name="Yaesu_VX-8DR"></a> Yaesu_VX-8DR | [@kk7ds](https://github.com/kk7ds) | 15-Feb-2019 | Yes | +| <a name="Yaesu_VX-8GE"></a> Yaesu_VX-8GE | | | Yes | +| <a name="Yaesu_VX-8R"></a> Yaesu_VX-8R | | | Yes | +| <a name="Yedro_YC-M04VUS"></a> Yedro_YC-M04VUS | | | Yes | +| <a name="Zastone_ZT-X6"></a> Zastone_ZT-X6 | | | | +## Stats + +**Drivers:** 329 + +**Tested:** 10% (35/294) + +**Byte clean:** 45% (151/178) diff --git a/tests/__init__.py b/tests/__init__.py index d04e516..7fc393e 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,3 +1,4 @@ +import functools import glob import logging import os @@ -7,6 +8,7 @@ import sys import tempfile import unittest +import pytest import six from chirp import directory @@ -15,6 +17,24 @@ from tests import run_tests LOG = logging.getLogger('testadapter') +PY3_XFAIL = [] + + +def if_enabled(fn): + name = fn.__name__.replace('test_', '') + if 'CHIRP_TESTS' in os.environ: + tests_enabled = os.environ['CHIRP_TESTS'].split(',') + enabled = name in tests_enabled + else: + enabled = True + + def wrapper(*a, **k): + if enabled: + return fn(*a, **k) + else: + raise unittest.SkipTest('%s not enabled' % name) + + return wrapper class TestAdapterMeta(type): @@ -27,6 +47,7 @@ class TestAdapter(unittest.TestCase): SOURCE_IMAGE = None RADIO_INST = None testwrapper = None + XFAIL = False def shortDescription(self): test = self.id().split('.')[-1].replace('test_', '').replace('_', ' ') @@ -48,6 +69,17 @@ class TestAdapter(unittest.TestCase): def tearDownClass(cls): os.remove(cls.testimage) + def setUp(self): + self._out = run_tests.TestOutputANSI() + rid = "%s_%s_" % (self.RADIO_CLASS.VENDOR, self.RADIO_CLASS.MODEL) + rid = rid.replace("/", "_") + basefn, ext = os.path.splitext(self.testimage) + self.testimage = tempfile.mktemp('.%s' % ext, rid) + shutil.copy(self.SOURCE_IMAGE, self.testimage) + + def tearDown(self): + os.remove(self.testimage) + def _runtest(self, test): tw = run_tests.TestWrapper(self.RADIO_CLASS, self.testimage, @@ -65,27 +97,37 @@ class TestAdapter(unittest.TestCase): finally: testcase.cleanup() + @if_enabled def test_copy_all(self): self._runtest(run_tests.TestCaseCopyAll) + @if_enabled def test_brute_force(self): self._runtest(run_tests.TestCaseBruteForce) + @if_enabled def test_edges(self): self._runtest(run_tests.TestCaseEdges) + @if_enabled def test_settings(self): self._runtest(run_tests.TestCaseSettings) + @if_enabled def test_banks(self): self._runtest(run_tests.TestCaseBanks) + @if_enabled def test_detect(self): self._runtest(run_tests.TestCaseDetect) + @if_enabled def test_clone(self): self._runtest(run_tests.TestCaseClone) + def test_py3_expected(self): + assert self.SOURCE_IMAGE not in PY3_XFAIL + def _get_sub_devices(rclass, testimage): try: @@ -93,22 +135,43 @@ def _get_sub_devices(rclass, testimage): except Exception as e: tw = run_tests.TestWrapper(rclass, testimage) - rf = tw.do("get_features") + try: + rf = tw.do("get_features") + except Exception as e: + print('Failed to get features for %s: %s' % (rclass, e)) + # FIXME: If the driver fails to run get_features with no memobj + # we should not arrest the test load. This appears to happen for + # the Puxing777 for some reason, and not all the time. Figure that + # out, but until then, assume crash means "no sub devices". + return [rclass] if rf.has_sub_devices: return tw.do("get_sub_devices") else: return [rclass] +class TestAdapterXFAIL(TestAdapter): + @pytest.mark.xfail(reason=('Driver not expected to run in python3. ' + 'Remove from py3_remaining.txt'), strict=True) + def test_py3_expected(self): + pass + + class RadioSkipper(unittest.TestCase): def test_is_supported_by_environment(self): raise unittest.SkipTest('Running in py3 and driver is not supported') -def load_tests(loader, tests, pattern, suite=None): +def _load_tests(loader, tests, pattern, suite=None): if not suite: suite = unittest.TestSuite() + if 'CHIRP_TESTIMG' in os.environ: + images = os.environ['CHIRP_TESTIMG'].split() + else: + images = glob.glob("tests/images/*.img") + tests = [os.path.splitext(os.path.basename(img))[0] for img in images] + base = os.path.dirname(os.path.abspath(__file__)) base = os.path.join(base, 'images') images = glob.glob(os.path.join(base, "*")) @@ -118,13 +181,29 @@ def load_tests(loader, tests, pattern, suite=None): # This default is meaningless for us pattern = None + py3_remaining = [x.strip() for x in open(os.path.join( + base, '..', 'py3_remaining.txt')).readlines() + if not x.startswith('#')] + for image, test in tests.items(): try: rclass = directory.get_radio(test) + if os.path.basename(image) in py3_remaining: + PY3_XFAIL.append(image) + except Exception: - if six.PY3 and 'CHIRP_DEBUG' in os.environ: + if not six.PY3: + raise + + if 'CHIRP_DEBUG' in os.environ: LOG.error('Failed to load %s' % test) + + if os.path.basename(image) in py3_remaining: + # We expect this to fail to import in py3, so do not + # abort the test run. continue + print('%s not in py3 exclusion list %s...' % ( + os.path.basename(image), ','.join(py3_remaining))) raise for device in _get_sub_devices(rclass, image): class_name = 'TestCase_%s' % ( @@ -135,10 +214,16 @@ def load_tests(loader, tests, pattern, suite=None): else: dst = device device = device.__class__ + + if image in PY3_XFAIL: + cls = TestAdapterXFAIL + else: + cls = TestAdapter + tc = TestAdapterMeta( - class_name, (TestAdapter,), dict(RADIO_CLASS=device, - SOURCE_IMAGE=image, - RADIO_INST=dst)) + class_name, (cls,), dict(RADIO_CLASS=device, + SOURCE_IMAGE=image, + RADIO_INST=dst)) tests = loader.loadTestsFromTestCase(tc) if pattern: @@ -149,3 +234,13 @@ def load_tests(loader, tests, pattern, suite=None): suite.addTests(tests) return suite + + +def load_tests(loader, tests, pattern, suite=None): + try: + return _load_tests(loader, tests, pattern, suite=suite) + except Exception as e: + import traceback + print('Failed to load: %s' % e) + print(traceback.format_exc()) + raise diff --git a/tests/images/Abbree_AR-518.img b/tests/images/Abbree_AR-518.img Binary files differnew file mode 100644 index 0000000..c40e4a4 --- /dev/null +++ b/tests/images/Abbree_AR-518.img diff --git a/tests/images/Abbree_AR-63.img b/tests/images/Abbree_AR-63.img Binary files differnew file mode 100644 index 0000000..5edcccf --- /dev/null +++ b/tests/images/Abbree_AR-63.img diff --git a/tests/images/AnyTone_5888UV.img b/tests/images/AnyTone_5888UV.img Binary files differnew file mode 100644 index 0000000..9f0e7df --- /dev/null +++ b/tests/images/AnyTone_5888UV.img diff --git a/tests/images/AnyTone_5888UVIII.img b/tests/images/AnyTone_5888UVIII.img Binary files differnew file mode 100644 index 0000000..17e9676 --- /dev/null +++ b/tests/images/AnyTone_5888UVIII.img diff --git a/tests/images/AnyTone_778UV.img b/tests/images/AnyTone_778UV.img Binary files differnew file mode 100644 index 0000000..e1f2f65 --- /dev/null +++ b/tests/images/AnyTone_778UV.img diff --git a/tests/images/Anysecu_WP-9900.img b/tests/images/Anysecu_WP-9900.img Binary files differnew file mode 100644 index 0000000..6ca11c1 --- /dev/null +++ b/tests/images/Anysecu_WP-9900.img diff --git a/tests/images/BTECH_FRS-A1.img b/tests/images/BTECH_FRS-A1.img Binary files differnew file mode 100644 index 0000000..549f946 --- /dev/null +++ b/tests/images/BTECH_FRS-A1.img diff --git a/tests/images/BTECH_FRS-B1.img b/tests/images/BTECH_FRS-B1.img Binary files differnew file mode 100644 index 0000000..565ea0c --- /dev/null +++ b/tests/images/BTECH_FRS-B1.img diff --git a/tests/images/BTECH_GMRS-20V2.img b/tests/images/BTECH_GMRS-20V2.img Binary files differnew file mode 100644 index 0000000..8a53729 --- /dev/null +++ b/tests/images/BTECH_GMRS-20V2.img diff --git a/tests/images/BTECH_GMRS-V2.img b/tests/images/BTECH_GMRS-V2.img Binary files differnew file mode 100644 index 0000000..8c05c4f --- /dev/null +++ b/tests/images/BTECH_GMRS-V2.img diff --git a/tests/images/Baofeng_BF-T8.img b/tests/images/Baofeng_BF-T8.img Binary files differnew file mode 100644 index 0000000..f948048 --- /dev/null +++ b/tests/images/Baofeng_BF-T8.img diff --git a/tests/images/CRT_Micron_UV.img b/tests/images/CRT_Micron_UV.img Binary files differnew file mode 100644 index 0000000..e1f2f65 --- /dev/null +++ b/tests/images/CRT_Micron_UV.img diff --git a/tests/images/Explorer_QRZ-1.img b/tests/images/Explorer_QRZ-1.img Binary files differnew file mode 100644 index 0000000..a53beb9 --- /dev/null +++ b/tests/images/Explorer_QRZ-1.img diff --git a/tests/images/Kenwood_TM-D710G_CloneMode.img b/tests/images/Kenwood_TM-D710G_CloneMode.img Binary files differnew file mode 100644 index 0000000..2324564 --- /dev/null +++ b/tests/images/Kenwood_TM-D710G_CloneMode.img diff --git a/tests/images/Kenwood_TM-D710_CloneMode.img b/tests/images/Kenwood_TM-D710_CloneMode.img Binary files differnew file mode 100644 index 0000000..83d84ed --- /dev/null +++ b/tests/images/Kenwood_TM-D710_CloneMode.img diff --git a/tests/images/LUITON_LT-580_UHF.img b/tests/images/LUITON_LT-580_UHF.img Binary files differnew file mode 100644 index 0000000..7b03472 --- /dev/null +++ b/tests/images/LUITON_LT-580_UHF.img diff --git a/tests/images/LUITON_LT-580_VHF.img b/tests/images/LUITON_LT-580_VHF.img Binary files differnew file mode 100644 index 0000000..6795db5 --- /dev/null +++ b/tests/images/LUITON_LT-580_VHF.img diff --git a/tests/images/Lanchonlh_HG-UV98.img b/tests/images/Lanchonlh_HG-UV98.img Binary files differnew file mode 100644 index 0000000..ab20bb1 --- /dev/null +++ b/tests/images/Lanchonlh_HG-UV98.img diff --git a/tests/images/Midland_DBR2500.img b/tests/images/Midland_DBR2500.img Binary files differnew file mode 100644 index 0000000..e1f2f65 --- /dev/null +++ b/tests/images/Midland_DBR2500.img diff --git a/tests/images/QYT_KT-8R.img b/tests/images/QYT_KT-8R.img Binary files differnew file mode 100644 index 0000000..debc2ee --- /dev/null +++ b/tests/images/QYT_KT-8R.img diff --git a/tests/images/QYT_KT-WP12.img b/tests/images/QYT_KT-WP12.img Binary files differnew file mode 100644 index 0000000..93e92df --- /dev/null +++ b/tests/images/QYT_KT-WP12.img diff --git a/tests/images/Quansheng_TG-UV2+.img b/tests/images/Quansheng_TG-UV2+.img Binary files differnew file mode 100644 index 0000000..71ed9aa --- /dev/null +++ b/tests/images/Quansheng_TG-UV2+.img diff --git a/tests/images/Radioddity_GA-510.img b/tests/images/Radioddity_GA-510.img Binary files differnew file mode 100644 index 0000000..cadbe21 --- /dev/null +++ b/tests/images/Radioddity_GA-510.img diff --git a/tests/images/Radioddity_UV-5G.img b/tests/images/Radioddity_UV-5G.img Binary files differnew file mode 100644 index 0000000..1fa459e --- /dev/null +++ b/tests/images/Radioddity_UV-5G.img diff --git a/tests/images/Retevis_RA85.img b/tests/images/Retevis_RA85.img Binary files differnew file mode 100644 index 0000000..aa6efc0 --- /dev/null +++ b/tests/images/Retevis_RA85.img diff --git a/tests/images/Retevis_RB15.img b/tests/images/Retevis_RB15.img Binary files differnew file mode 100644 index 0000000..2630dbc --- /dev/null +++ b/tests/images/Retevis_RB15.img diff --git a/tests/images/Retevis_RB17.img b/tests/images/Retevis_RB17.img Binary files differnew file mode 100644 index 0000000..7c061ab --- /dev/null +++ b/tests/images/Retevis_RB17.img diff --git a/tests/images/Retevis_RB17A.img b/tests/images/Retevis_RB17A.img Binary files differnew file mode 100644 index 0000000..36ed38e --- /dev/null +++ b/tests/images/Retevis_RB17A.img diff --git a/tests/images/Retevis_RB17P.img b/tests/images/Retevis_RB17P.img Binary files differnew file mode 100644 index 0000000..eb9f559 --- /dev/null +++ b/tests/images/Retevis_RB17P.img diff --git a/tests/images/Retevis_RB17V.img b/tests/images/Retevis_RB17V.img Binary files differnew file mode 100644 index 0000000..4a7811e --- /dev/null +++ b/tests/images/Retevis_RB17V.img diff --git a/tests/images/Retevis_RB18.img b/tests/images/Retevis_RB18.img Binary files differnew file mode 100644 index 0000000..c60af0a --- /dev/null +++ b/tests/images/Retevis_RB18.img diff --git a/tests/images/Retevis_RB19.img b/tests/images/Retevis_RB19.img Binary files differnew file mode 100644 index 0000000..0576e84 --- /dev/null +++ b/tests/images/Retevis_RB19.img diff --git a/tests/images/Retevis_RB19P.img b/tests/images/Retevis_RB19P.img Binary files differnew file mode 100644 index 0000000..89293f0 --- /dev/null +++ b/tests/images/Retevis_RB19P.img diff --git a/tests/images/Retevis_RB23.img b/tests/images/Retevis_RB23.img Binary files differnew file mode 100644 index 0000000..b9c8a00 --- /dev/null +++ b/tests/images/Retevis_RB23.img diff --git a/tests/images/Retevis_RB26.img b/tests/images/Retevis_RB26.img Binary files differnew file mode 100644 index 0000000..b39c873 --- /dev/null +++ b/tests/images/Retevis_RB26.img diff --git a/tests/images/Retevis_RB27.img b/tests/images/Retevis_RB27.img Binary files differnew file mode 100644 index 0000000..3dbb4f5 --- /dev/null +++ b/tests/images/Retevis_RB27.img diff --git a/tests/images/Retevis_RB27B.img b/tests/images/Retevis_RB27B.img Binary files differnew file mode 100644 index 0000000..c10f2b4 --- /dev/null +++ b/tests/images/Retevis_RB27B.img diff --git a/tests/images/Retevis_RB27V.img b/tests/images/Retevis_RB27V.img Binary files differnew file mode 100644 index 0000000..52f8580 --- /dev/null +++ b/tests/images/Retevis_RB27V.img diff --git a/tests/images/Retevis_RB615.img b/tests/images/Retevis_RB615.img Binary files differnew file mode 100644 index 0000000..c60f2b5 --- /dev/null +++ b/tests/images/Retevis_RB615.img diff --git a/tests/images/Retevis_RB617.img b/tests/images/Retevis_RB617.img Binary files differnew file mode 100644 index 0000000..22a20ea --- /dev/null +++ b/tests/images/Retevis_RB617.img diff --git a/tests/images/Retevis_RB618.img b/tests/images/Retevis_RB618.img Binary files differnew file mode 100644 index 0000000..7681b15 --- /dev/null +++ b/tests/images/Retevis_RB618.img diff --git a/tests/images/Retevis_RB619.img b/tests/images/Retevis_RB619.img Binary files differnew file mode 100644 index 0000000..620e81c --- /dev/null +++ b/tests/images/Retevis_RB619.img diff --git a/tests/images/Retevis_RB627B.img b/tests/images/Retevis_RB627B.img Binary files differnew file mode 100644 index 0000000..b7f06ee --- /dev/null +++ b/tests/images/Retevis_RB627B.img diff --git a/tests/images/Retevis_RB75.img b/tests/images/Retevis_RB75.img Binary files differnew file mode 100644 index 0000000..304c04c --- /dev/null +++ b/tests/images/Retevis_RB75.img diff --git a/tests/images/Retevis_RB85.img b/tests/images/Retevis_RB85.img Binary files differnew file mode 100644 index 0000000..a9e83ba --- /dev/null +++ b/tests/images/Retevis_RB85.img diff --git a/tests/images/Retevis_RT1.img b/tests/images/Retevis_RT1.img Binary files differnew file mode 100644 index 0000000..cac0d24 --- /dev/null +++ b/tests/images/Retevis_RT1.img diff --git a/tests/images/Retevis_RT16.img b/tests/images/Retevis_RT16.img Binary files differnew file mode 100644 index 0000000..72d08f2 --- /dev/null +++ b/tests/images/Retevis_RT16.img diff --git a/tests/images/Retevis_RT19.img b/tests/images/Retevis_RT19.img Binary files differnew file mode 100644 index 0000000..62b5aa0 --- /dev/null +++ b/tests/images/Retevis_RT19.img diff --git a/tests/images/Retevis_RT22FRS.img b/tests/images/Retevis_RT22FRS.img Binary files differnew file mode 100644 index 0000000..cafce14 --- /dev/null +++ b/tests/images/Retevis_RT22FRS.img diff --git a/tests/images/Retevis_RT22S.img b/tests/images/Retevis_RT22S.img Binary files differnew file mode 100644 index 0000000..e0a9fa6 --- /dev/null +++ b/tests/images/Retevis_RT22S.img diff --git a/tests/images/Retevis_RT29_UHF.img b/tests/images/Retevis_RT29_UHF.img Binary files differnew file mode 100644 index 0000000..381ee00 --- /dev/null +++ b/tests/images/Retevis_RT29_UHF.img diff --git a/tests/images/Retevis_RT29_VHF.img b/tests/images/Retevis_RT29_VHF.img Binary files differnew file mode 100644 index 0000000..ee275c0 --- /dev/null +++ b/tests/images/Retevis_RT29_VHF.img diff --git a/tests/images/Retevis_RT40B.img b/tests/images/Retevis_RT40B.img Binary files differnew file mode 100644 index 0000000..2d3d480 --- /dev/null +++ b/tests/images/Retevis_RT40B.img diff --git a/tests/images/Retevis_RT47.img b/tests/images/Retevis_RT47.img Binary files differnew file mode 100644 index 0000000..9aea994 --- /dev/null +++ b/tests/images/Retevis_RT47.img diff --git a/tests/images/Retevis_RT47V.img b/tests/images/Retevis_RT47V.img Binary files differnew file mode 100644 index 0000000..b95d9a0 --- /dev/null +++ b/tests/images/Retevis_RT47V.img diff --git a/tests/images/Retevis_RT619.img b/tests/images/Retevis_RT619.img Binary files differnew file mode 100644 index 0000000..6db1598 --- /dev/null +++ b/tests/images/Retevis_RT619.img diff --git a/tests/images/Retevis_RT622.img b/tests/images/Retevis_RT622.img Binary files differnew file mode 100644 index 0000000..13a3419 --- /dev/null +++ b/tests/images/Retevis_RT622.img diff --git a/tests/images/Retevis_RT647.img b/tests/images/Retevis_RT647.img Binary files differnew file mode 100644 index 0000000..33fdae0 --- /dev/null +++ b/tests/images/Retevis_RT647.img diff --git a/tests/images/Retevis_RT668.img b/tests/images/Retevis_RT668.img Binary files differnew file mode 100644 index 0000000..9ff00d0 --- /dev/null +++ b/tests/images/Retevis_RT668.img diff --git a/tests/images/Retevis_RT68.img b/tests/images/Retevis_RT68.img Binary files differnew file mode 100644 index 0000000..7c14049 --- /dev/null +++ b/tests/images/Retevis_RT68.img diff --git a/tests/images/Retevis_RT76.img b/tests/images/Retevis_RT76.img Binary files differnew file mode 100644 index 0000000..e716ae9 --- /dev/null +++ b/tests/images/Retevis_RT76.img diff --git a/tests/images/Retevis_RT87.img b/tests/images/Retevis_RT87.img Binary files differnew file mode 100644 index 0000000..383716a --- /dev/null +++ b/tests/images/Retevis_RT87.img diff --git a/tests/images/Retevis_RT9000D_136-174.img b/tests/images/Retevis_RT9000D_136-174.img Binary files differnew file mode 100644 index 0000000..3cb8813 --- /dev/null +++ b/tests/images/Retevis_RT9000D_136-174.img diff --git a/tests/images/Retevis_RT9000D_220-260.img b/tests/images/Retevis_RT9000D_220-260.img Binary files differnew file mode 100644 index 0000000..d1f16fb --- /dev/null +++ b/tests/images/Retevis_RT9000D_220-260.img diff --git a/tests/images/Retevis_RT9000D_400-490.img b/tests/images/Retevis_RT9000D_400-490.img Binary files differnew file mode 100644 index 0000000..bfa52f3 --- /dev/null +++ b/tests/images/Retevis_RT9000D_400-490.img diff --git a/tests/images/Retevis_RT9000D_66-88.img b/tests/images/Retevis_RT9000D_66-88.img Binary files differnew file mode 100644 index 0000000..2bf04e0 --- /dev/null +++ b/tests/images/Retevis_RT9000D_66-88.img diff --git a/tests/images/Retevis_RT95.img b/tests/images/Retevis_RT95.img Binary files differnew file mode 100644 index 0000000..e1f2f65 --- /dev/null +++ b/tests/images/Retevis_RT95.img diff --git a/tests/images/Rugged_RH5R-V2.img b/tests/images/Rugged_RH5R-V2.img Binary files differnew file mode 100644 index 0000000..56c3e80 --- /dev/null +++ b/tests/images/Rugged_RH5R-V2.img diff --git a/tests/images/TYT_TH-UV88.img b/tests/images/TYT_TH-UV88.img Binary files differnew file mode 100644 index 0000000..8796711 --- /dev/null +++ b/tests/images/TYT_TH-UV88.img diff --git a/tests/images/Vertex_Standard_FTL-2011.img b/tests/images/Vertex_Standard_FTL-2011.img Binary files differnew file mode 100644 index 0000000..5eff340 --- /dev/null +++ b/tests/images/Vertex_Standard_FTL-2011.img diff --git a/tests/images/Wouxun_KG-935G.img b/tests/images/Wouxun_KG-935G.img Binary files differnew file mode 100644 index 0000000..033f0d7 --- /dev/null +++ b/tests/images/Wouxun_KG-935G.img diff --git a/tests/images/Wouxun_KG-UV920P-A.img b/tests/images/Wouxun_KG-UV920P-A.img Binary files differnew file mode 100644 index 0000000..6fc02f8 --- /dev/null +++ b/tests/images/Wouxun_KG-UV920P-A.img diff --git a/tests/images/Yaesu_FTM-7250D_R.img b/tests/images/Yaesu_FTM-7250D_R.img Binary files differnew file mode 100755 index 0000000..2ec6832 --- /dev/null +++ b/tests/images/Yaesu_FTM-7250D_R.img diff --git a/tests/py3_driver_testers.txt b/tests/py3_driver_testers.txt new file mode 100644 index 0000000..ed5a37d --- /dev/null +++ b/tests/py3_driver_testers.txt @@ -0,0 +1,41 @@ +# Format is: +# Driver_ID,Tester,Test Date +# Tester is preferred as a github id, but obfuscated email or name is +# acceptable. If a driver is literally identical to another, use +# +DRIVER_KEY to mark it as implied-tested. +# Actually Arcshell AR-6 which is a direct clone +Baofeng_BF-888,@kk7ds,13-Feb-2019 +Baofeng_UV-3R,@yarda,26-Sep-2022 +Baofeng_UV-5R,@lekv,23-Oct-2022 +Icom_IC-2200H,@kk7ds,24-Oct-2022 +Icom_IC-2820H,@kk7ds,22-Oct-2022 +Icom_IC-7200,@kk7ds,22-Oct-2022 +Icom_IC-7300,@kk7ds,22-Oct-2022 +Icom_IC-7610,@kk7ds,24-Oct-2022 +Icom_IC-910,@mfncooper,1-Oct-2021 +Icom_ID-31A,@kk7ds,12-Feb-2019 +Icom_ID-800H_v2,@kk7ds,22-Oct-2022 +Icom_ID-880H,@kk7ds,22-Oct-2022 +Kenwood_TH-D72_live_mode,@kk7ds,21-Oct-2022 +Kenwood_TH-D74_live_mode,@kk7ds,20-Oct-2022 +Kenwood_TH-F7,@sv1,19-Oct-2022 +Kenwood_TM-271,+Kenwood_TM-281,23-Oct-2022 +Kenwood_TM-281,@kk7ds,23-Oct-2022 +Kenwood_TM-D700,@kk7ds,20-Oct-2022 +Kenwood_TM-D710G,@kk7ds,22-Oct-2022 +Kenwood_TM-D710G_CloneMode,@kk7ds,22-Oct-2022 +Kenwood_TM-V71,@kk7ds,21-Oct-2022 +Kenwood_TK-7102,@kk7ds,15-Feb-2019 +Kenwood_TK-7108,@kk7ds,15-Feb-2019 +Kenwood_TK-7180,@kk7ds,18-Oct-2022 +Kenwood_TK-8102,@kk7ds,15-Feb-2019 +Kenwood_TK-8108,@kk7ds,15-Feb-2019 +Kenwood_TK-8180,@kk7ds,18-Oct-2022 +Radioddity_GA-510,@kk7ds,21-Oct-2022 +TIDRADIO_TD-H6,@kk7ds,21-Oct-2022 +Yaesu_FT-7800_7900,@kk7ds,24-Oct-2022 +Yaesu_FT-8800,@kk7ds,24-Oct-2022 +Yaesu_FT-817,@kk7ds,14-Feb-2019 +Yaesu_VX-3,@kk7ds,15-Feb-2019 +Yaesu_VX-8DR,@kk7ds,15-Feb-2019 +Yaesu_VX-7,@kk7ds,15-Feb-2019 diff --git a/tests/py3_remaining.txt b/tests/py3_remaining.txt new file mode 100644 index 0000000..3f406d1 --- /dev/null +++ b/tests/py3_remaining.txt @@ -0,0 +1,17 @@ +Baojie_BJ-9900.img +LUITON_LT-725UV.img +Puxing_PX-2R.img +Puxing_PX-777.img +Puxing_PX-888K.img +TYT_TH-UV3R-25.img +TYT_TH-UV3R.img +Wouxun_KG-816.img +Wouxun_KG-818.img +Wouxun_KG-UV6.img +Wouxun_KG-UVD1P.img +Yaesu_FT-1D_R.img +Yaesu_FT2D_R.img +Yaesu_FT3D_R.img +Yaesu_FT-450D.img +Yaesu_FTM-3200D_R.img +Yaesu_FTM-7250D_R.img diff --git a/tests/run_tests.py b/tests/run_tests.py index 195f4c4..671b3dc 100644 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -451,7 +451,9 @@ class TestCaseBruteForce(TestCase): tmp = copy.deepcopy(m) if mode not in chirp_common.MODES: continue - if mode == "DV": + if mode == "DV" and \ + isinstance(self._wrapper._dst, + chirp_common.IcomDstarSupport): tmp = chirp_common.DVMemory() try: ensure_urcall(tmp.dv_urcall) @@ -895,8 +897,9 @@ class TestCaseDetect(TestCase): elif issubclass(radio.__class__, self._wrapper._dstclass): pass elif radio.__class__ != self._wrapper._dstclass: - raise TestFailedError("%s detected as %s" % - (self._wrapper._dstclass, radio.__class__)) + raise TestFailedError("%s detected as %s for %s" % + (self._wrapper._dstclass, radio.__class__, + filename)) return [] TESTS["Detect"] = TestCaseDetect @@ -1342,8 +1345,10 @@ Available tests: test_out = TestOutputHTML(options.html) else: stdout = sys.stdout - if not os.path.exists("logs"): + try: os.mkdir("logs") + except FileExistsError: + pass sys.stdout = open("logs/verbose", "w") test_out = TestOutputANSI(stdout) diff --git a/tests/unit/base.py b/tests/unit/base.py index 1e112ce..8b90a44 100644 --- a/tests/unit/base.py +++ b/tests/unit/base.py @@ -48,3 +48,12 @@ def mock_gtk(): def unmock_gtk(): for module in pygtk_mocks: del sys.modules[module] + + +class BaseGTKTest(BaseTest): + def setUp(self): + super(BaseGTKTest, self).setUp() + try: + import gtk + except ImportError: + self.skipTest('pygtk not available') diff --git a/tests/unit/test_directory.py b/tests/unit/test_directory.py index d48bb48..c447173 100644 --- a/tests/unit/test_directory.py +++ b/tests/unit/test_directory.py @@ -1,5 +1,7 @@ import base64 +import glob import json +import os import tempfile from tests.unit import base @@ -67,3 +69,26 @@ class TestDirectory(base.BaseTest): self.assertEqual('Barmaster 2000', radio.MODEL) self.assertEqual('A', radio.VARIANT) + +class TestDetectBruteForce(base.BaseTest): + def test_detect_all(self): + # Attempt a brute-force detection of all test images. + # + # This confirms that no test image is detected by more than one + # radio class. If it is, fail and report those classes. + + path = os.path.dirname(__file__) + path = os.path.join(path, '..', 'images', '*.img') + test_images = glob.glob(path) + self.assertNotEqual(0, len(test_images)) + for image in test_images: + detections = [] + filedata = open(image, 'rb').read() + for cls in directory.RADIO_TO_DRV: + if not hasattr(cls, 'match_model'): + continue + if cls.match_model(filedata, image): + detections.append(cls) + if len(detections) > 1: + raise Exception('Detection of %s failed: %s' % (image, + detections)) diff --git a/tests/unit/test_memedit_edits.py b/tests/unit/test_memedit_edits.py index fdf971c..b024353 100644 --- a/tests/unit/test_memedit_edits.py +++ b/tests/unit/test_memedit_edits.py @@ -6,21 +6,13 @@ from tests.unit import base __builtins__["_"] = lambda s: s -memedit = None - - -class TestEdits(base.BaseTest): - def setUp(self): - global memedit - super(TestEdits, self).setUp() - base.mock_gtk() - from chirp.ui import memedit as memedit_module - memedit = memedit_module +try: + from chirp.ui import memedit +except ImportError: + memedit = None - def tearDown(self): - super(TestEdits, self).tearDown() - base.unmock_gtk() +class TestEdits(base.BaseGTKTest): def _test_tone_column_change(self, col, ini_tmode='', ini_cmode='', exp_tmode=None, exp_cmode=None): diff --git a/tests/unit/test_settings.py b/tests/unit/test_settings.py index ccc4308..3fb84f0 100644 --- a/tests/unit/test_settings.py +++ b/tests/unit/test_settings.py @@ -54,6 +54,28 @@ class TestSettingValues(base.BaseTest): self._set_and_catch(value, "Jkl", "Xyz") self.assertEqual(value.get_options(), opts) + def test_radio_setting_value_list_by_index(self): + opts = ["Abc", "Def", "Ghi"] + value = settings.RadioSettingValueList(opts, current_index=1) + self.assertEqual(value.get_value(), "Def") + self.assertEqual(int(value), 1) + self._set_and_test(value, "Def", "Ghi", "Abc") + self._set_and_catch(value, "Jkl", "Xyz") + self.assertEqual(value.get_options(), opts) + + # Make sure we int() the index, as we may pass a bitwise object + value = settings.RadioSettingValueList(opts, current_index='1') + self.assertEqual(value.get_value(), "Def") + + value.set_index(0) + self.assertEqual(value.get_value(), 'Abc') + + # Same here, int() the index + value.set_index('0') + self.assertEqual(value.get_value(), 'Abc') + + self.assertRaises(IndexError, value.set_index, 7) + def test_radio_setting_value_string(self): value = settings.RadioSettingValueString(1, 5, "foo", autopad=False) self.assertEqual(value.get_value(), "foo") @@ -111,6 +133,8 @@ class TestSettingContainers(base.BaseTest): self.assertEqual(rs.value, val) rs.value = False self.assertEqual(val.get_value(), False) + self.assertEqual('foo:False', str(rs)) + self.assertEqual('[RadioSetting foo:False]', repr(rs)) def test_radio_setting_multi(self): val1 = settings.RadioSettingValueBoolean(True) diff --git a/tests/unit/test_shiftdialog.py b/tests/unit/test_shiftdialog.py index fe0b62d..227c1af 100644 --- a/tests/unit/test_shiftdialog.py +++ b/tests/unit/test_shiftdialog.py @@ -5,6 +5,10 @@ except ImportError: from mox3 import mox from tests.unit import base +try: + from chirp.ui import shiftdialog +except ImportError: + shiftdialog = None from chirp import chirp_common from chirp import errors @@ -50,18 +54,7 @@ class FakeRadioThread(object): pass -class ShiftDialogTest(base.BaseTest): - def setUp(self): - global shiftdialog - super(ShiftDialogTest, self).setUp() - base.mock_gtk() - from chirp.ui import shiftdialog as shiftdialog_module - shiftdialog = shiftdialog_module - - def tearDown(self): - super(ShiftDialogTest, self).tearDown() - base.unmock_gtk() - +class ShiftDialogTest(base.BaseGTKTest): def _test_hole(self, fn, starting, arg, expected): radio = FakeRadio(*tuple(starting)) radio.get_features().memory_bounds = (0, 5) diff --git a/tests/unit/test_wxui_radiothread.py b/tests/unit/test_wxui_radiothread.py new file mode 100644 index 0000000..c60da8c --- /dev/null +++ b/tests/unit/test_wxui_radiothread.py @@ -0,0 +1,105 @@ +import sys +import time +from unittest import mock + +sys.modules['wx'] = wx = mock.MagicMock() + +from tests.unit import base +from chirp.wxui import radiothread + + +class TestRadioThread(base.BaseTest): + def setUp(self): + super().setUp() + + def test_radiojob(self): + radio = mock.MagicMock() + editor = mock.MagicMock() + job = radiothread.RadioJob(editor, 'get_memory', [12], {}) + self.assertIsNone(job.dispatch(radio)) + radio.get_memory.assert_called_once_with(12) + self.assertEqual(job.result, radio.get_memory.return_value) + + def test_radiojob_exception(self): + radio = mock.MagicMock() + radio.get_memory.side_effect = ValueError('some error') + editor = mock.MagicMock() + job = radiothread.RadioJob(editor, 'get_memory', [12], {}) + self.assertIsNone(job.dispatch(radio)) + radio.get_memory.assert_called_once_with(12) + self.assertIsInstance(job.result, ValueError) + + def test_thread(self): + radio = mock.MagicMock() + radio.get_features.side_effect = ValueError('some error') + editor = mock.MagicMock() + # Simulate an edit conflict with the first event by returning + # False for "delivered" to force us to queue an event. + editor.radio_thread_event.side_effect = [False, True, True, True] + thread = radiothread.RadioThread(radio) + mem = mock.MagicMock() + job1id = thread.submit(editor, 'get_memory', 12) + job2id = thread.submit(editor, 'set_memory', mem) + job3id = thread.submit(editor, 'get_features') + # We have to start the thread after we submit the main jobs so + # the order is stable for comparison. + thread.start() + + # Wait for the main jobs to be processed before we signal exit + while not all([radio.get_memory.called, + radio.set_memory.called, + radio.get_features.called]): + time.sleep(0.1) + + thread.end() + thread.join(5) + self.assertFalse(thread.is_alive()) + radio.get_memory.assert_called_once_with(12) + radio.set_memory.assert_called_once_with(mem) + radio.get_features.assert_called_once_with() + self.assertEqual(4, editor.radio_thread_event.call_count) + + # We expect the jobs to be delivered in order of + # priority. Since we return False for the first call to + # radio_thread_event(), job2 should be queued and then + # delivered first on the next cycle. + expected_order = [job2id, job2id, job3id, job1id] + for i, (jobid, call) in enumerate( + zip(expected_order, + editor.radio_thread_event.call_args_list)): + job = call[0][0] + self.assertEqual(jobid, job.id) + + # We should call non-blocking for every call except the last + # one, when the queue is empty + editor.radio_thread_event.assert_has_calls([ + mock.call(mock.ANY, block=False), + mock.call(mock.ANY, block=False), + mock.call(mock.ANY, block=False), + mock.call(mock.ANY, block=True), + ]) + + def test_thread_abort_priority(self): + radio = mock.MagicMock() + radio.get_features.side_effect = ValueError('some error') + editor = mock.MagicMock() + thread = radiothread.RadioThread(radio) + mem = mock.MagicMock() + job1id = thread.submit(editor, 'get_memory', 12) + job2id = thread.submit(editor, 'set_memory', mem) + job3id = thread.submit(editor, 'get_features') + thread.end() + # We have to start the thread after we submit the main jobs so + # the order is stable for comparison. + thread.start() + + thread.join(5) + self.assertFalse(thread.is_alive()) + + # Our end sentinel should have gone to the head of the queue + # so that exiting the application does not leave a thread + # running in the background fetching hundreds of memories. + radio.get_memory.assert_not_called() + radio.set_memory.assert_not_called() + radio.get_features.assert_not_called() + wx.PostEvent.assert_not_called() |
