[FL-2601] Move Infrared unit test data to assets (#1396)
* Move samsung raw data to assets * Add more assets and fix bugs * Clean up code * Implement all raw data as assets * Remove input data from old test files * Better signal names * Better file opening logic * Implement loading parsed data from files * Move most of RC5 tests into assets * Add more test cases * Add more test cases * Eliminate RUN_DECODER macro * Better code structure * Implement run_encoder function * More encoder tests * Move all encoder tests to assets * Move all test data to assets * Normalise function names * Rename code files * Uncomment other tests * Swich test order to avoid weird memory leaks * UnitTests: cleanup output and redirect it into stdout * UnitTests: selectable tests and better reporting Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
511
assets/unit_tests/infrared/test_nec.irtest
Normal file
511
assets/unit_tests/infrared/test_nec.irtest
Normal file
File diff suppressed because one or more lines are too long
137
assets/unit_tests/infrared/test_nec42.irtest
Normal file
137
assets/unit_tests/infrared/test_nec42.irtest
Normal file
@@ -0,0 +1,137 @@
|
||||
Filetype: IR tests file
|
||||
Version: 1
|
||||
#
|
||||
name: encoder_decoder_input1
|
||||
type: parsed_array
|
||||
count: 26
|
||||
#
|
||||
protocol: NEC42
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42
|
||||
address: 01 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42
|
||||
address: 01 00 00 00
|
||||
command: 80 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42
|
||||
address: 00 00 00 00
|
||||
command: 80 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: NEC42
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: NEC42
|
||||
address: FF 1F 00 00
|
||||
command: FF 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42
|
||||
address: FE 1F 00 00
|
||||
command: FF 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42
|
||||
address: FE 1F 00 00
|
||||
command: 7F 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42
|
||||
address: FF 1F 00 00
|
||||
command: 7F 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42
|
||||
address: FF 1F 00 00
|
||||
command: FF 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42
|
||||
address: FF 1F 00 00
|
||||
command: FF 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: NEC42
|
||||
address: AA 0A 00 00
|
||||
command: 55 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42
|
||||
address: 55 15 00 00
|
||||
command: AA 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42
|
||||
address: 55 15 00 00
|
||||
command: 55 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42
|
||||
address: AA 0A 00 00
|
||||
command: AA 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42
|
||||
address: AA 0A 00 00
|
||||
command: AA 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: NEC42
|
||||
address: AA 0A 00 00
|
||||
command: AA 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42
|
||||
address: AA 0A 00 00
|
||||
command: AA 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: NEC42
|
||||
address: AA 0A 00 00
|
||||
command: AA 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: NEC42
|
||||
address: 55 15 00 00
|
||||
command: 55 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42
|
||||
address: 55 15 00 00
|
||||
command: 55 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: NEC42
|
||||
address: 55 15 00 00
|
||||
command: 55 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: NEC42
|
||||
address: 55 15 00 00
|
||||
command: 55 00 00 00
|
||||
repeat: true
|
||||
#
|
163
assets/unit_tests/infrared/test_nec42ext.irtest
Normal file
163
assets/unit_tests/infrared/test_nec42ext.irtest
Normal file
@@ -0,0 +1,163 @@
|
||||
Filetype: IR tests file
|
||||
Version: 1
|
||||
#
|
||||
name: decoder_input1
|
||||
type: raw
|
||||
data: 2000000 9000 4500 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560
|
||||
#
|
||||
name: decoder_expected1
|
||||
type: parsed_array
|
||||
count: 1
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
name: decoder_input2
|
||||
type: raw
|
||||
data: 2000000 9000 4500 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 2000000 9000 4500 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 560 10000 560
|
||||
#
|
||||
name: decoder_expected2
|
||||
type: parsed_array
|
||||
count: 1
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
name: encoder_decoder_input1
|
||||
type: parsed_array
|
||||
count: 26
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: 01 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: 01 00 00 00
|
||||
command: 00 80 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: 00 00 00 00
|
||||
command: 00 80 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: FF 00 F0 03
|
||||
command: 0F F0 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: FE 00 F0 03
|
||||
command: 0F F0 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: FE 00 F0 03
|
||||
command: 0F 70 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: FF 00 F0 03
|
||||
command: 0F 70 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: FF 00 F0 03
|
||||
command: 0F F0 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: FF 00 F0 03
|
||||
command: 0F F0 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: AA AA AA 02
|
||||
command: 55 55 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: 55 55 55 01
|
||||
command: AA AA 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: 55 55 55 01
|
||||
command: 55 55 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: AA AA AA 02
|
||||
command: AA AA 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: AA AA AA 02
|
||||
command: AA AA 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: AA AA AA 02
|
||||
command: AA AA 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: AA AA AA 02
|
||||
command: AA AA 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: AA AA AA 02
|
||||
command: AA AA 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: 55 55 55 01
|
||||
command: 55 55 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: 55 55 55 01
|
||||
command: 55 55 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: 55 55 55 01
|
||||
command: 55 55 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: NEC42ext
|
||||
address: 55 55 55 01
|
||||
command: 55 55 00 00
|
||||
repeat: true
|
||||
#
|
684
assets/unit_tests/infrared/test_necext.irtest
Normal file
684
assets/unit_tests/infrared/test_necext.irtest
Normal file
File diff suppressed because one or more lines are too long
341
assets/unit_tests/infrared/test_rc5.irtest
Normal file
341
assets/unit_tests/infrared/test_rc5.irtest
Normal file
@@ -0,0 +1,341 @@
|
||||
Filetype: IR tests file
|
||||
Version: 1
|
||||
#
|
||||
name: decoder_input1
|
||||
type: raw
|
||||
data: 27888 888 888 1776 1776 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 888 888
|
||||
#
|
||||
name: decoder_expected1
|
||||
type: parsed_array
|
||||
count: 1
|
||||
#
|
||||
protocol: RC5
|
||||
address: 13 00 00 00
|
||||
command: 10 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
name: decoder_input2
|
||||
type: raw
|
||||
data: 27888 888 888 888 888 888 888 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 888 888
|
||||
#
|
||||
name: decoder_expected2
|
||||
type: parsed_array
|
||||
count: 1
|
||||
#
|
||||
protocol: RC5
|
||||
address: 13 00 00 00
|
||||
command: 10 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
name: decoder_input3
|
||||
type: raw
|
||||
data: 27888 888 888 1776 1776 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 1776 888
|
||||
#
|
||||
name: decoder_expected3
|
||||
type: parsed_array
|
||||
count: 1
|
||||
#
|
||||
protocol: RC5
|
||||
address: 13 00 00 00
|
||||
command: 11 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
name: decoder_input4
|
||||
type: raw
|
||||
data: 27888 888 888 888 888 888 888 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 1776 888
|
||||
#
|
||||
name: decoder_expected4
|
||||
type: parsed_array
|
||||
count: 1
|
||||
#
|
||||
protocol: RC5
|
||||
address: 13 00 00 00
|
||||
command: 11 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
name: decoder_input5
|
||||
type: raw
|
||||
data: 27888 888 888 1776 1776 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888
|
||||
#
|
||||
name: decoder_expected5
|
||||
type: parsed_array
|
||||
count: 1
|
||||
#
|
||||
protocol: RC5
|
||||
address: 1F 00 00 00
|
||||
command: 3F 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
name: decoder_input6
|
||||
type: raw
|
||||
data: 27888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888
|
||||
#
|
||||
name: decoder_expected6
|
||||
type: parsed_array
|
||||
count: 1
|
||||
#
|
||||
protocol: RC5
|
||||
address: 1F 00 00 00
|
||||
command: 3F 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
name: decoder_input7
|
||||
type: raw
|
||||
data: 27888 888 888 1776 1776 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 1776 888 27888 888 888 888 888 888 888 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 1776 888 27888 888 888 888 888 888 888 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 1776 888 27888 888 888 888 888 888 888 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 1776 888 27888 888 888 1776 1776 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 1776 888 27888 888 888 888 888 888 888 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 888 888 27888 888 888 1776 1776 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 888 888 27888 888 888 1776 1776 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 888 888 27888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 27888 888 888 1776 1776 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 27888 888 888 1776 1776 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888
|
||||
#
|
||||
name: decoder_expected7
|
||||
type: parsed_array
|
||||
count: 11
|
||||
#
|
||||
protocol: RC5
|
||||
address: 13 00 00 00
|
||||
command: 11 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 13 00 00 00
|
||||
command: 11 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 13 00 00 00
|
||||
command: 11 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC5
|
||||
address: 13 00 00 00
|
||||
command: 11 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC5
|
||||
address: 13 00 00 00
|
||||
command: 11 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 13 00 00 00
|
||||
command: 10 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 13 00 00 00
|
||||
command: 10 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 13 00 00 00
|
||||
command: 10 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC5
|
||||
address: 1F 00 00 00
|
||||
command: 3F 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 1F 00 00 00
|
||||
command: 3F 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 1F 00 00 00
|
||||
command: 3F 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
name: encoder_input1
|
||||
type: parsed_array
|
||||
count: 11
|
||||
#
|
||||
protocol: RC5
|
||||
address: 13 00 00 00
|
||||
command: 11 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 13 00 00 00
|
||||
command: 11 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 13 00 00 00
|
||||
command: 11 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC5
|
||||
address: 13 00 00 00
|
||||
command: 11 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC5
|
||||
address: 13 00 00 00
|
||||
command: 11 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 13 00 00 00
|
||||
command: 10 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 13 00 00 00
|
||||
command: 10 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 13 00 00 00
|
||||
command: 10 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC5
|
||||
address: 1F 00 00 00
|
||||
command: 3F 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 1F 00 00 00
|
||||
command: 3F 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 1F 00 00 00
|
||||
command: 3F 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
name: encoder_expected1
|
||||
type: raw
|
||||
data: 27888 888 888 1776 1776 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 1776 888 27888 888 888 888 888 888 888 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 1776 888 27888 888 888 888 888 888 888 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 1776 888 27888 888 888 888 888 888 888 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 1776 888 27888 888 888 1776 1776 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 1776 888 27888 888 888 888 888 888 888 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 888 888 27888 888 888 1776 1776 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 888 888 27888 888 888 1776 1776 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 888 888 27888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 27888 888 888 1776 1776 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 27888 888 888 1776 1776 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888 888
|
||||
#
|
||||
name: encoder_decoder_input1
|
||||
type: parsed_array
|
||||
count: 26
|
||||
#
|
||||
protocol: RC5
|
||||
address: 1F 00 00 00
|
||||
command: 3F 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 10 00 00 00
|
||||
command: 01 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 01 00 00 00
|
||||
command: 20 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 01 00 00 00
|
||||
command: 20 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 01 00 00 00
|
||||
command: 20 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC5
|
||||
address: 01 00 00 00
|
||||
command: 20 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC5
|
||||
address: 01 00 00 00
|
||||
command: 20 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC5
|
||||
address: 01 00 00 00
|
||||
command: 20 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC5
|
||||
address: 1F 00 00 00
|
||||
command: 3F 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 0A 00 00 00
|
||||
command: 2A 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 15 00 00 00
|
||||
command: 15 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5
|
||||
address: 15 00 00 00
|
||||
command: 15 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC5X
|
||||
address: 1F 00 00 00
|
||||
command: 3F 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5X
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5X
|
||||
address: 10 00 00 00
|
||||
command: 01 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5X
|
||||
address: 01 00 00 00
|
||||
command: 20 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5X
|
||||
address: 01 00 00 00
|
||||
command: 20 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5X
|
||||
address: 01 00 00 00
|
||||
command: 20 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC5X
|
||||
address: 01 00 00 00
|
||||
command: 20 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC5X
|
||||
address: 01 00 00 00
|
||||
command: 20 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC5X
|
||||
address: 01 00 00 00
|
||||
command: 20 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC5X
|
||||
address: 1F 00 00 00
|
||||
command: 3F 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5X
|
||||
address: 0A 00 00 00
|
||||
command: 2A 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5X
|
||||
address: 15 00 00 00
|
||||
command: 15 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC5X
|
||||
address: 15 00 00 00
|
||||
command: 15 00 00 00
|
||||
repeat: true
|
||||
#
|
29
assets/unit_tests/infrared/test_rc5x.irtest
Normal file
29
assets/unit_tests/infrared/test_rc5x.irtest
Normal file
@@ -0,0 +1,29 @@
|
||||
Filetype: IR tests file
|
||||
Version: 1
|
||||
#
|
||||
name: decoder_input1
|
||||
type: raw
|
||||
data: 27888 1776 888 888 1776 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 888 888
|
||||
#
|
||||
name: decoder_expected1
|
||||
type: parsed_array
|
||||
count: 1
|
||||
#
|
||||
protocol: RC5X
|
||||
address: 13 00 00 00
|
||||
command: 10 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
name: encoder_input1
|
||||
type: parsed_array
|
||||
count: 1
|
||||
#
|
||||
protocol: RC5X
|
||||
address: 13 00 00 00
|
||||
command: 10 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
name: encoder_expected1
|
||||
type: raw
|
||||
data: 27888 1776 888 888 1776 1776 888 888 1776 888 888 1776 1776 1776 888 888 888 888 888 888
|
||||
#
|
341
assets/unit_tests/infrared/test_rc6.irtest
Normal file
341
assets/unit_tests/infrared/test_rc6.irtest
Normal file
@@ -0,0 +1,341 @@
|
||||
Filetype: IR tests file
|
||||
Version: 1
|
||||
#
|
||||
name: decoder_input1
|
||||
type: raw
|
||||
data: 27000 2666 889 444 888 444 444 444 444 444 888 1332 888 444 444 888 888 888 888 444 444 888 888 888 888 444 444 444 444 444 444 444 444 444 27000 2666 889 444 888 444 444 444 444 1332 888 444 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 444 444 444 27000 2666 889 444 888 444 444 444 444 1332 888 444 888 444 444 888 888 888 888 888 444 444 888 888 888 444 444 444 444 444 444 444 444 888 27000 2666 889 444 888 444 444 444 444 444 888 1332 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 444 444 444 27000 2666 889 444 888 444 444 444 444 1332 888 444 888 444 444 888 888 888 888 444 444 888 888 888 888 444 444 444 444 444 444 444 444 444 27000 2666 889 444 888 444 444 444 444 444 888 1332 888 444 444 888 888 888 888 888 444 444 888 888 888 444 444 444 444 444 444 444 444 444 27000 2666 889 444 888 444 444 444 444 1332 888 444 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 444 444 444 444 444 444 444 27000 2666 889 444 888 444 444 444 444 1332 888 444 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 444 444 888 444 444 27000 2666 889 444 888 444 444 444 444 1332 888 444 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 444 444 888 27000 2666 889 444 888 444 444 444 444 1332 888 444 888 444 444 888 888 888 888 888 444 444 888 888 888 444 444 444 444 444 444 444 444 444
|
||||
#
|
||||
name: decoder_expected1
|
||||
type: parsed_array
|
||||
count: 6
|
||||
#
|
||||
protocol: RC6
|
||||
address: 94 00 00 00
|
||||
command: A0 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 93 00 00 00
|
||||
command: A0 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 93 00 00 00
|
||||
command: A0 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 94 00 00 00
|
||||
command: A0 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 95 00 00 00
|
||||
command: A0 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 95 00 00 00
|
||||
command: A0 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
name: decoder_input2
|
||||
type: raw
|
||||
data: 27000 2666 889 444 888 444 444 444 444 444 888 1332 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 444 444 444 27000 2666 889 444 888 444 444 444 444 444 888 1332 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 444 444 444 27000 2666 889 444 888 444 444 444 444 1332 888 444 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 888 27000 2666 889 444 888 444 444 444 444 1332 888 444 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 888 27000 2666 889 444 888 444 444 444 444 1332 888 444 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 888 27000 2666 889 444 888 444 444 444 444 444 888 1332 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 444 444 444 27000 2666 889 444 888 444 444 444 444 1332 888 444 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 444 444 444 27000 2666 889 444 888 444 444 444 444 1332 888 444 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 444 444 444
|
||||
#
|
||||
name: decoder_expected2
|
||||
type: parsed_array
|
||||
count: 8
|
||||
#
|
||||
protocol: RC6
|
||||
address: 93 00 00 00
|
||||
command: A0 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 93 00 00 00
|
||||
command: A0 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC6
|
||||
address: 93 00 00 00
|
||||
command: A1 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 93 00 00 00
|
||||
command: A1 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC6
|
||||
address: 93 00 00 00
|
||||
command: A1 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC6
|
||||
address: 93 00 00 00
|
||||
command: A0 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 93 00 00 00
|
||||
command: A0 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 93 00 00 00
|
||||
command: A0 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
name: encoder_input1
|
||||
type: parsed_array
|
||||
count: 8
|
||||
#
|
||||
protocol: RC6
|
||||
address: 93 00 00 00
|
||||
command: A0 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 93 00 00 00
|
||||
command: A0 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC6
|
||||
address: 93 00 00 00
|
||||
command: A1 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 93 00 00 00
|
||||
command: A1 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC6
|
||||
address: 93 00 00 00
|
||||
command: A1 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC6
|
||||
address: 93 00 00 00
|
||||
command: A0 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 93 00 00 00
|
||||
command: A0 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 93 00 00 00
|
||||
command: A0 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
name: encoder_expected1
|
||||
type: raw
|
||||
data: 27000 2666 889 444 888 444 444 444 444 444 888 1332 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 444 444 444 27000 2666 889 444 888 444 444 444 444 444 888 1332 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 444 444 444 27000 2666 889 444 888 444 444 444 444 1332 888 444 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 888 27000 2666 889 444 888 444 444 444 444 1332 888 444 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 888 27000 2666 889 444 888 444 444 444 444 1332 888 444 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 888 27000 2666 889 444 888 444 444 444 444 444 888 1332 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 444 444 444 27000 2666 889 444 888 444 444 444 444 1332 888 444 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 444 444 444 27000 2666 889 444 888 444 444 444 444 1332 888 444 888 444 444 888 888 444 444 888 444 444 444 444 888 888 888 444 444 444 444 444 444 444 444 444
|
||||
#
|
||||
name: encoder_decoder_input1
|
||||
type: parsed_array
|
||||
count: 40
|
||||
#
|
||||
protocol: RC6
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 80 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 80 00 00 00
|
||||
command: 01 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 00 00 00 00
|
||||
command: 01 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC6
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC6
|
||||
address: FF 00 00 00
|
||||
command: FF 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 7F 00 00 00
|
||||
command: FF 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 7F 00 00 00
|
||||
command: FE 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: FF 00 00 00
|
||||
command: FE 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: FF 00 00 00
|
||||
command: FF 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: FF 00 00 00
|
||||
command: FF 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC6
|
||||
address: AA 00 00 00
|
||||
command: 55 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 55 00 00 00
|
||||
command: AA 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 55 00 00 00
|
||||
command: 55 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: AA 00 00 00
|
||||
command: AA 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: AA 00 00 00
|
||||
command: AA 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC6
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 80 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 80 00 00 00
|
||||
command: 01 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 00 00 00 00
|
||||
command: 01 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC6
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 00 00 00 00
|
||||
command: 00 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC6
|
||||
address: FF 00 00 00
|
||||
command: FF 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 7F 00 00 00
|
||||
command: FF 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 7F 00 00 00
|
||||
command: FE 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: FF 00 00 00
|
||||
command: FE 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: FF 00 00 00
|
||||
command: FF 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: FF 00 00 00
|
||||
command: FF 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC6
|
||||
address: AA 00 00 00
|
||||
command: 55 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 55 00 00 00
|
||||
command: AA 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 55 00 00 00
|
||||
command: 55 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: AA 00 00 00
|
||||
command: AA 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: AA 00 00 00
|
||||
command: AA 00 00 00
|
||||
repeat: true
|
||||
#
|
||||
protocol: RC6
|
||||
address: 93 00 00 00
|
||||
command: A0 00 00 00
|
||||
repeat: false
|
||||
#
|
||||
protocol: RC6
|
||||
address: 93 00 00 00
|
||||
command: A1 00 00 00
|
||||
repeat: false
|
||||
#
|
535
assets/unit_tests/infrared/test_samsung32.irtest
Normal file
535
assets/unit_tests/infrared/test_samsung32.irtest
Normal file
File diff suppressed because one or more lines are too long
1060
assets/unit_tests/infrared/test_sirc.irtest
Normal file
1060
assets/unit_tests/infrared/test_sirc.irtest
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user