unleashed-firmware/assets/unit_tests/infrared/test_rc5.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

341 lines
7.3 KiB
Text

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
#