[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:
@@ -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
|
||||
#
|
||||
Reference in New Issue
Block a user