summaryrefslogtreecommitdiff
path: root/decoder/test/ir_irmp/test.conf
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2021-12-25 20:02:00 +0100
committerGerhard Sittig <gerhard.sittig@gmx.net>2021-12-26 13:37:03 +0100
commit97b2e74f29fa79c15ece5844fd99aa2dd0f6d0b0 (patch)
tree60df01b16f7f866ad2e8d27959145554b76d2468 /decoder/test/ir_irmp/test.conf
parent873dd231a86f022c00d2f4562c18694024b1051c (diff)
downloadsigrok-test-97b2e74f29fa79c15ece5844fd99aa2dd0f6d0b0.tar.gz
sigrok-test-97b2e74f29fa79c15ece5844fd99aa2dd0f6d0b0.zip
ir_irmp: introduce IRMP test cases, cover NEC/RC5/RC6/SIRC and others
The upstream IRMP project's decoder core is only slowly moving, we can consider the IRMP decoder integration to be stable and don't expect the output to change violently any longer. The issue of requiring a single core instance remains and affects the GUI, but not the single threaded test suite. This set of test cases re-uses the NEC, RC5, RC6, and SIRC dumps which are covered by individual decoders, too. Ideally detection results would be identical, but in practise the annotation positions and the level of details will differ between implementations due to their internal operation and design choices. The IRMP test set also covers dumps which are not covered by other IR decoders. It's interesting to see how not all key repetitions are caught and how single press might be missed as well. It's valuable to remain aware during maintenance, and see how occassional failure changes. This is why an empty output for a non-empty dump is kept here, too.
Diffstat (limited to 'decoder/test/ir_irmp/test.conf')
-rw-r--r--decoder/test/ir_irmp/test.conf79
1 files changed, 79 insertions, 0 deletions
diff --git a/decoder/test/ir_irmp/test.conf b/decoder/test/ir_irmp/test.conf
new file mode 100644
index 0000000..67889ea
--- /dev/null
+++ b/decoder/test/ir_irmp/test.conf
@@ -0,0 +1,79 @@
+test exception_samplerate
+ protocol-decoder ir_irmp
+ input misc/no-samplerate.sr
+ output ir_irmp exception match SamplerateError
+
+test nec_tv_matsui_0001_button_av_hold
+ protocol-decoder ir_irmp channel ir=6
+ input ir/nec/hama_8in1/tv_matsui_0001/tv_matsui_0001_button_av_hold.sr
+ output ir_irmp annotation match nec_tv_matsui_0001_button_av_hold.output
+
+test nec_extended_capture
+ protocol-decoder ir_irmp channel ir=0
+ input ir/nec/extended/unknown_ceiling_light.sr
+ output ir_irmp annotation match nec_extended_capture.output
+
+test rc5_vcr_philips_0082_button1_hold_one_bogus_packet
+ protocol-decoder ir_irmp channel ir=0
+ input ir/rc-5/hama_8in1/vcr_philips_0082_button1_hold_one_bogus_packet.sr
+ output ir_irmp annotation match rc5_vcr_philips_0082_button1_hold_one_bogus_packet.output
+
+test rc5_vcr_philips_0082_button1_hold
+ protocol-decoder ir_irmp channel ir=1
+ input ir/rc-5/hama_8in1/vcr_philips_0082_button1_hold.sr
+ output ir_irmp annotation match rc5_vcr_philips_0082_button1_hold.output
+
+test rc5_vcr_philips_0082_button2_hold
+ protocol-decoder ir_irmp channel ir=1
+ input ir/rc-5/hama_8in1/vcr_philips_0082_button2_hold.sr
+ output ir_irmp annotation match rc5_vcr_philips_0082_button2_hold.output
+
+test rc5_vcr_philips_0082_button_standby_hold
+ protocol-decoder ir_irmp channel ir=1
+ input ir/rc-5/hama_8in1/vcr_philips_0082_button_standby_hold.sr
+ output ir_irmp annotation match rc5_vcr_philips_0082_button_standby_hold.output
+
+test rc6_kathrein_rc674_numbers
+ protocol-decoder ir_irmp channel ir=0
+ input ir/rc-6/kathrein/kathrein_rc674_numbers.sr
+ output ir_irmp annotation match rc6_kathrein_rc674_numbers.output
+
+test rc6_philips_rc2143604_numbers
+ protocol-decoder ir_irmp channel ir=0
+ input ir/rc-6/philips/philips_rc2143604_numbers.sr
+ output ir_irmp annotation match rc6_philips_rc2143604_numbers.output
+
+test rc6_philips_unknown_numbers
+ protocol-decoder ir_irmp channel ir=0
+ input ir/rc-6/philips/philips_unknown_numbers.sr
+ output ir_irmp annotation match rc6_philips_unknown_numbers.output
+
+test sirc_1
+ protocol-decoder ir_irmp channel ir=0
+ input ir/sirc/sirc-1.sr
+ output ir_irmp annotation match sirc_1.output
+
+test sirc_2
+ protocol-decoder ir_irmp channel ir=0
+ input ir/sirc/sirc-2.sr
+ output ir_irmp annotation match sirc_2.output
+
+test other_bose_button1_press
+ protocol-decoder ir_irmp channel ir=1
+ input ir/other/bose/ir_bose_button1_press.sr
+ output ir_irmp annotation match other_bose_press.output
+
+test other_bose_button1_hold
+ protocol-decoder ir_irmp channel ir=1
+ input ir/other/bose/ir_bose_button1_hold.sr
+ output ir_irmp annotation match other_bose_hold.output
+
+test other_nec_ru_m111_press
+ protocol-decoder ir_irmp channel ir=1
+ input ir/other/nec_ru-m111/ir_nec_ru-m111_button1_press.sr
+ output ir_irmp annotation match other_nec_rum111_press.output
+
+test other_nec_ru_m111_hold
+ protocol-decoder ir_irmp channel ir=1
+ input ir/other/nec_ru-m111/ir_nec_ru-m111_button1_hold.sr
+ output ir_irmp annotation match other_nec_rum111_hold.output