flipperzero-firmware/assets/unit_tests/infrared/test_samsung32.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

536 lines
17 KiB
Plaintext

Filetype: IR tests file
Version: 1
#
name: decoder_input1
type: raw
data: 3129767 4513 4483 565 530 586 1670 563 1664 588 1666 566 530 586 535 560 535 591 531 565 531 585 1669 563 1666 587 1640 593 531 566 530 587 536 559 562 564 531 585 537 558 1670 562 1665 587 534 561 534 592 530 566 529 587 1668 564 1664 589 533 563 533 594 1661 560 1667 565 1661 591 1664 558 46325 4517 4480 558 1668 595 679127 4511 4485 562 532 584 1671 561 1666 587 1668 564 532 585 537 559 537 589 533 562 533 593 1661 561 1667 586 1642 590 532 563 531 585 537 559 564 563 1666 567 528 588 535 613 483 593 530 586 536 559 536 590 1637 584 537 558 1669 594 1661 561 1667 586 1642 591 1664 559 1670 583 534 567 46429 4515 4480 558 1671 593 618571 4508 4488 560 561 566 1663 559 1667 583 1670 562 534 582 540 565 531 587 536 560 536 590 1664 558 1670 583 1644 588 535 561 534 592 530 566 557 610 1616 616 479 585 537 558 537 589 534 584 539 567 529 587 534 561 534 592 1663 559 1668 564 1664 588 1666 566 1661 581 1646 585 1669 563 46106 4511 4485 563 1664 589 514897 4514 4482 556 564 614 1616 565 1664 589 1666 557 538 588 534 562 534 592 529 566 529 587 1667 565 1663 590 1638 584 538 568 527 590 534 562 562 566 530 587 1642 590 532 563 530 586 537 589 533 563 533 583 539 566 1661 561 561 566 1663 559 1668 584 1671 563 1666 556 1671 591 1663 559 46210 4508 4488 560 1668 585 683922 4509 4487 561 560 565 1662 559 1669 585 1670 562 534 583 540 566 529 586 535 560 535 591 1663 559 1669 584 1644 588 534 561 533 593 529 556 567 561 1668 564 1664 590 534 563 532 584 538 557 537 589 534 562 534 593 530 566 555 561 1667 564 1662 589 1665 557 1671 581 1647 586 1669 564 46686 4514 4481 556 1672 592 1088255 4514 4481 557 564 562 1667 565 1663 591 1665 558 538 590 533 564 532 583 539 567 528 588 1666 566 1663 580 1648 585 537 559 537 589 533 562 560 618 478 589 535 562 1667 565 1662 588 531 565 531 585 537 558 536 590 1666 566 1661 592 530 566 530 586 1669 564 1664 558 1669 594 1662 560 46291 4510 4485 563 1663 589 97349 4510 4487 561 1666 586 97560 4513 4482 566 1662 591 97123 4510 4485 563 1664 588 97605 4508 4487 561 1666 586 97371 4518 4478 560 1668 595 97514 4518 4478 560 1667 586 97014 4515 4480 568 1660 593 96719 4516 4481 567 1660 593 97528 4515 4480 568 1659 593 97453 4510 4485 563 1665 587 97351 4518 4477 561 1668 585 97216 4511 4484 564 1664 589 97708 4518 4477 561 1667 586 96718 4516 4479 559 1669 594 97070 4515 4480 568 1660 593 97500 4511 4484 564 1662 590 97425 4515 4481 567 1660 593 97025 4515 4482 566 1660 592 96796 4509 4487 561 1666 587 97399 4512 4484 565 1662 591 97486 4516 4480 567 1658 594 97425 4515 4481 567 1659 593 97511 4510 4485 563 1664 650 96969 4511 4485 562 1665 588 97243 4512 4484 564 1663 590 97031 4519 4478 560 1666 586 97548 4514 4482 566 1661 591 97302 4515 4480 568 1659 593 97726 4510 4486 562 1665 588 97396 4514 4482 566 1661 592 97301 4515 4480 568 1661 593 97453 4518 4477 560 1667 585 97430 4518 4477 561 1665 587 97521 4511 4484 564 1664 589 97182 4512 4484 564 1663 590 97760 4516 4479 559 1668 595 97268 4516 4479 559 1668 595 97243 4512 4485 563 1663 589 97695 4510 4486 562 1664 588 374205 4513 4483 565 530 586 1669 564 1665 589 1667 567 529 587 535 560 535 591 531 565 530 585 1669 563 1664 588 1639 593 529 566 529 587 536 560 563 565 532 585 537 560 1669 563 1664 587 534 561 534 592 529 566 529 586 1668 564 1663 589 532 563 534 593 1661 562 1666 566 1662 591 1664 558 149343 4512 4483 565 530 586 1669 563 1664 588 1667 565 530 586 536 560 536 590 532 563 531 586 1670 563 1666 567 1660 592 530 565 529 586 537 558 563 563 532 584 538 568 1661 561 1665 587 535 560 535 592 532 565 531 587 1669 563 1665 587 534 561 534 592 1663 559 1668 564 1662 590 1666 566 116399 4514 4482 566 531 587 1669 564 1664 589 1666 566 529 587 535 561 535 592 531 565 529 587 1668 564 1664 558 1670 595 529 566 528 589 535 560 562 565 531 585 536 559 1668 564 1664 589 534 561 533 593 530 565 528 588 1668 564 1665 590 533 564 532 594 1661 561 1666 566 1661 592 1663 558 121946 4517 4478 559 537 590 1664 568 1660 593 1661 560 536 590 531 564 531 585 537 559 536 590 1665 568 1661 561 1666 587 537 559 529 591 531 564 558 558 537 588 533 562 1665 567 1659 593 530 565 529 587 536 561 535 592 1664 559 1671 593 530 566 528 587 1667 565 1662 558 1668 595 1660 561 46509 4516 4479 558 1668 594 88785 4512 4484 564 530 585 1669 563 1664 588 1666 566 530 587 536 560 535 592 532 565 531 585 1669 563 1665 557 1669 594 530 566 530 586 535 560 562 564 530 585 537 558 1669 563 1664 589 535 561 534 593 529 566 529 586 1668 564 1664 589 533 562 532 594 1661 561 1666 565 1662 591 1665 558 289651 4512 4483 564 531 586 1669 563 1665 588 1667 565 529 587 536 560 536 590 531 563 531 584 1670 562 1666 556 1671 592 529 566 531 586 536 561 562 564 532 585 537 558 1669 563 1665 588 535 561 536 590 530 565 531 585 1669 563 1664 587 534 561 533 593 1662 561 1669 564 1663 590 1665 567 46302 4509 4487 561 1667 585 97097 4513 4483 565 529 587 1668 564 1663 589 1666 567 529 587 536 560 535 591 530 565 529 587 1669 563 1664 558 1669 594 529 566 527 587 535 561 561 563 530 586 537 560 1669 563 1663 589 534 561 532 594 529 566 528 587 1668 564 1663 589 532 563 532 594 1660 561 1667 566 1661 592 1663 558 46311 4510 4485 562 1665 589 99001 4514 4481 566 528 587 1667 565 1662 589 1664 568 528 588 535 561 535 593 529 567 528 589 1668 564 1663 559 1668 595 528 567 527 589 534 562 561 565 530 586 536 560 1668 564 1663 590 533 563 532 595 524 567 527 588 1667 565 1662 590 532 563 531 595 1659 562 1666 566 1661 593 1664 559 300259 4514 4482 556 565 561 1668 564 1663 589 1664 556 539 588 535 561 535 643 478 568 530 587 1668 564 1664 589 1636 594 529 567 528 588 534 561 561 565 1662 560 536 590 532 564 531 586 537 589 532 564 533 584 538 568 528 588 1667 565 1662 560 1669 584 1670 562 1666 587 1641 591 1664 559 46271 4561 4435 562 1666 586 81421 4514 4482 556 565 561 1667 565 1662 589 1664 558 538 588 534 562 534 593 530 567 530 587 1669 564 1663 589 1637 594 529 567 528 588 534 561 560 566 1663 559 535 591 531 565 530 587 538 589 533 563 533 583 539 567 529 587 1667 565 1662 560 1669 584 1669 563 1666 587 1640 592 1663 560 46296 4516 4480 558 1669 594 80690 4508 4489 560 561 565 1663 558 1670 593 1660 561 534 592 530 565 530 586 537 560 536 591 1664 558 1670 583 1644 587 535 560 534 592 530 566 556 559 1669 563 532 584 538 558 537 588 534 582 540 567 530 588 535 562 535 591 1663 559 1669 564 1665 588 1666 566 1662 560 1668 585 1669 563 136483 4511 4485 563 531 585 1671 561 1666 587 1668 564 531 585 536 559 537 589 532 563 532 584 1670 562 1666 587 1642 591 531 566 531 585 536 559 563 563 1665 567 528 588 535 561 534 593 529 567 556 560 535 591 530 565 531 585 1670 563 1665 568 1660 593 1662 560 1668 564 1663 590 1666 566 129038 4511 4484 564 533 583 1670 562 1666 587 1668 565 532 586 537 559 536 591 532 564 532 594 1660 562 1666 566 1660 593 531 565 530 586 537 558 563 563 1664 568 528 589 535 562 533 595 530 567 556 560 535 591 531 565 531 584 1669 563 1664 567 1661 592 1662 559 1668 564 1663 590 1666 566 46187 4511 4486 562 1665 589 110663 4517 4478 558 536 590 1665 568 1660 593 1661 560 536 590 531 564 531 584 537 558 536 590 1665 567 1661 561 1666 587 536 560 535 591 532 564 559 557 1670 562 532 594 529 567 528 649 473 561 561 565 531 585 536 559 536 589 1665 567 1660 562 1666 587 1668 564 1663 558 1669 594 1661 561 143736 4517 4479 559 536 591 1664 558 1670 593 1661 559 536 590 531 564 531 585 536 559 537 589 1665 567 1661 561 1666 587 536 560 536 590 530 564 557 558 1669 562 533 593 528 568 530 586 534 561 560 566 530 586 536 560 536 591 1664 558 1671 562 1666 587 1667 565 1663 559 1668 594 1660 562 46234 4514 4482 566 1661 591 120661 4564 4432 565 530 586 1669 563 1665 587 1666 566 531 585 536 559 536 591 532 564 532 586 1670 563 1666 557 1666 592 530 565 530 586 536 560 562 563 1664 558 538 588 533 562 533 593 528 558 565 561 534 582 541 566 530 586 1670 563 1664 567 1660 593 1662 560 1668 564 1663 590 1665 567 46472 4513 4484 564 1664 588 125301 4511 4484 564 532 584 1670 562 1666 587 1668 565 531 586 537 560 537 591 532 565 533 584 1671 562 1666 566 1661 591 530 565 532 584 536 559 562 564 1665 567 529 587 534 563 535 593 529 568 556 561 535 592 531 565 531 585 1669 563 1665 567 1660 593 1663 559 1668 564 1664 589 1666 567 200253 4517 4479 558 562 615 1613 558 1670 592 1661 560 536 591 531 616 480 585 537 559 537 641 1613 568 1661 582 1646 586 536 559 535 591 532 564 558 558 1670 562 533 592 530 566 529 588 536 581 542 617 479 587 537 560 536 590 1665 557 1670 562 1666 587 1668 564 1664 558 1669 593 1662 561 46230 4570 4426 561 1667 586 115418 4514 4483 565 557 561 1669 563 1664 589 1666 566 529 587 534 561 534 592 530 566 530 586 1668 564 1664 589 1639 594 529 567 528 587 534 561 561 565 1663 559 535 590 532 563 532 584
#
name: decoder_expected1
type: parsed_array
count: 78
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 81 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 81 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 01 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 01 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 02 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 02 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 03 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 03 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 0C 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 01 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 01 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 01 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 01 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 01 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 01 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 01 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 01 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 01 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 01 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 01 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 01 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 01 00 00 00
repeat: true
#
protocol: Samsung32
address: 0E 00 00 00
command: 01 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 01 00 00 00
repeat: false
#
protocol: Samsung32
address: 0E 00 00 00
command: 01 00 00 00
repeat: true
#
name: encoder_decoder_input1
type: parsed_array
count: 26
#
protocol: Samsung32
address: 00 00 00 00
command: 00 00 00 00
repeat: false
#
protocol: Samsung32
address: 01 00 00 00
command: 00 00 00 00
repeat: false
#
protocol: Samsung32
address: 01 00 00 00
command: 80 00 00 00
repeat: false
#
protocol: Samsung32
address: 00 00 00 00
command: 80 00 00 00
repeat: false
#
protocol: Samsung32
address: 00 00 00 00
command: 00 00 00 00
repeat: false
#
protocol: Samsung32
address: 00 00 00 00
command: 00 00 00 00
repeat: true
#
protocol: Samsung32
address: 00 00 00 00
command: 00 00 00 00
repeat: false
#
protocol: Samsung32
address: 00 00 00 00
command: 00 00 00 00
repeat: true
#
protocol: Samsung32
address: FF 00 00 00
command: FF 00 00 00
repeat: false
#
protocol: Samsung32
address: FE 00 00 00
command: FF 00 00 00
repeat: false
#
protocol: Samsung32
address: FE 00 00 00
command: 7F 00 00 00
repeat: false
#
protocol: Samsung32
address: FF 00 00 00
command: 7F 00 00 00
repeat: false
#
protocol: Samsung32
address: FF 00 00 00
command: FF 00 00 00
repeat: false
#
protocol: Samsung32
address: FF 00 00 00
command: FF 00 00 00
repeat: true
#
protocol: Samsung32
address: AA 00 00 00
command: 55 00 00 00
repeat: false
#
protocol: Samsung32
address: 55 00 00 00
command: AA 00 00 00
repeat: false
#
protocol: Samsung32
address: 55 00 00 00
command: 55 00 00 00
repeat: false
#
protocol: Samsung32
address: AA 00 00 00
command: AA 00 00 00
repeat: false
#
protocol: Samsung32
address: AA 00 00 00
command: AA 00 00 00
repeat: true
#
protocol: Samsung32
address: AA 00 00 00
command: AA 00 00 00
repeat: false
#
protocol: Samsung32
address: AA 00 00 00
command: AA 00 00 00
repeat: true
#
protocol: Samsung32
address: AA 00 00 00
command: AA 00 00 00
repeat: true
#
protocol: Samsung32
address: 55 00 00 00
command: 55 00 00 00
repeat: false
#
protocol: Samsung32
address: 55 00 00 00
command: 55 00 00 00
repeat: true
#
protocol: Samsung32
address: 55 00 00 00
command: 55 00 00 00
repeat: true
#
protocol: Samsung32
address: 55 00 00 00
command: 55 00 00 00
repeat: true
#