flipperzero-firmware/assets/unit_tests/infrared/test_nec42ext.irtest
Georgii Surkov 80629de01e
[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>
2022-07-17 18:21:56 +09:00

164 lines
3.4 KiB
Plaintext

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
#