rdkcentral / rdk-halif-test-hdmi_cec

RDK HDMI CEC Hardware Abstraction Layer test suite
Apache License 2.0
4 stars 1 forks source link

EMU: Initial Startup, state machine and build makery #15

Closed sramani-metro closed 3 months ago

sramani-metro commented 4 months ago

Task 1:

Goal: Create Intiial Startup and basic code to build.

Init/Deinit

Acceptance Criteria

Ulrond commented 3 months ago
sramani-metro commented 3 months ago
  1. Created Emulator start/stop tests with ut_core.
  2. Enhanced test main to pass in profile path and control plane parameters
  3. Created a few test profile yaml configs under emulator/profiles/ for testing. Started testing with sink (TV) config

    To build:

    ./build_ut.sh

    This will now build emulator sources instead of the skeleton sources.

    To Run:

    ./ut/bin/run.sh -p /rdk-halif-hdmi_cec/ut/emulator/profiles/test_sink.yaml -c 9998

After running, select the Emulator Lifecycle menu to start the emulator.

sramani-metro commented 3 months ago

Created PR https://github.com/rdkcentral/rdk-halif-test-hdmi_cec/pull/21

sramani-metro commented 3 months ago

Whats done

Addressed majority of the review comments. Renamed emulator as Virtual Component. All methods now handle negative cases first and then the positive flow. Updated the template to configure the device map as a N-ary tree. this will allow the device network to be represented in the yaml config as a parent/children relationship. Provided Insert/Remove/Find functionality to manage devices in the network. Made the L1 tests pass based on the updated changes

Whats next

Waiting for inputs on moving enum strings mapping functionality to ut_kvp as a generic function.

Ulrond commented 3 months ago

Moved to closed due to #21 being resolved - new branch required for new work.