Skip to end of metadata
Go to start of metadata

Test 1

  1. Modify weston.ini to use ivi-shell.so (remove hmi-controller.so if it exists)

    [core]
    shell=ivi-shell.so
    
    [ivi-shell]
    ivi-module=ivi-controller.so,ivi-input-controller.so
  2. Set Environmental values (if needed)

    export XDG_RUNTIME_DIR=/var/run/<your user name>/1000
    export LD_LIBRARY_PATH=<your installation path>/lib
  3. Start-up Weston:

    /usr/bin/weston --log=/var/log/w
    1. or, if you login via ssh

      openvt -s -w -v -- weston --log=/var/log/w
  4. Start-up HMI helper: (at another ssh login)

    /usr/bin/layer-add-surfaces 1000 1
  5. then, there will be messages like

    root@qemux86:~# /usr/bin/layer-add-surfaces 1000 1
    CreateWithDimension: layer ID (1000), Width (640), Height (480)
    SetVisibility      : layer ID (1000), ILM_TRUE
    layer: 1000 created
  6. run EGLWLMockNavigation: (at another ssh login)

    /usr/bin/EGLWLMockNavigation
  7. then, you can see the navi. demo screen like


  8. and, the console of "layer-add-surfaces" will show

    root@qemux86:~# /usr/bin/layer-add-surfaces 1000 1
    CreateWithDimension: layer ID (1000), Width (640), Height (480)
    SetVisibility      : layer ID (1000), ILM_TRUE
    layer: 1000 created
    surface                : 10 created
    SetDestinationRectangle: surface ID (10), Width (800), Height (480)
    SetSourceRectangle     : surface ID (10), Width (800), Height (480)
    SetVisibility          : surface ID (10), ILM_TRUE
    layerAddSurface        : surface ID (10) is added to layer ID (1000)

     

     

     


Test 2

  1. install *-test at build/conf/local.conf

    IMAGE_INSTALL_append += " \
        wayland-ivi-extension-test \
        "
  2. modify /etc/xdg/weston/weston.ini like above
  3. run weston

    /usr/bin/weston --log=/var/log/w
  4. ssh login at another terminal, and run ivi-layermanagement-api-test

    root@qemux86:/opt/tests/wayland-ivi-extension# ./ivi-layermanagement-api-test
    Running main() from gtest_main.cc
    [==========] Running 67 tests from 2 test cases.
    [----------] Global test environment set-up.
    [----------] 24 tests from NotificationTest
    [ RUN      ] NotificationTest.ilm_layerAddNotificationWithoutCallback
    ... snip ...
    [ RUN      ] NotificationTest.DefaultIsNotToReceiveNotificationsSurface
    [       OK ] NotificationTest.DefaultIsNotToReceiveNotificationsSurface (513 ms)
    [----------] 24 tests from NotificationTest (3345 ms total)
    
    [----------] 43 tests from IlmCommandTest
    [ RUN      ] IlmCommandTest.SetGetSurfaceOrientation
    [       OK ] IlmCommandTest.SetGetSurfaceOrientation (11 ms)
    ... snip ...
    [ RUN      ] IlmCommandTest.ilm_takeLayerScreenshot
    /storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/wayland-ivi-extension/1.9.0-r1/git/ivi-layermanagement-api/test/ilm_control_test.cpp:717: Failure
    Value of: f!=NULL
      Actual: false
    Expected: true
    [  FAILED  ] IlmCommandTest.ilm_takeLayerScreenshot (1009 ms)
    [ RUN      ] IlmCommandTest.ilm_takeLayerScreenshot_InvalidInputs
    [       OK ] IlmCommandTest.ilm_takeLayerScreenshot_InvalidInputs (4 ms)
    [ RUN      ] IlmCommandTest.ilm_takeSurfaceScreenshot
    /storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/wayland-ivi-extension/1.9.0-r1/git/ivi-layermanagement-api/test/ilm_control_test.cpp:756: Failure
    Value of: f!=NULL
      Actual: false
    Expected: true
    [  FAILED  ] IlmCommandTest.ilm_takeSurfaceScreenshot (1020 ms)
    [ RUN      ] IlmCommandTest.ilm_takeSurfaceScreenshot_InvalidInputs
    [       OK ] IlmCommandTest.ilm_takeSurfaceScreenshot_InvalidInputs (9 ms)
    [ RUN      ] IlmCommandTest.ilm_surfaceGetPixelformat
    /storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/wayland-ivi-extension/1.9.0-r1/git/ivi-layermanagement-api/test/ilm_control_test.cpp:806: Failure
    Value of: p1
      Actual: 0
    Expected: ILM_PIXELFORMAT_RGBA_4444
    Which is: 6
    [  FAILED  ] IlmCommandTest.ilm_surfaceGetPixelformat (31 ms)
    [ RUN      ] IlmCommandTest.ilm_surfaceGetPixelformat_InvalidInput
    [       OK ] IlmCommandTest.ilm_surfaceGetPixelformat_InvalidInput (8 ms)
    ... snip ...
    [ RUN      ] IlmCommandTest.LayerSetRenderOrder_empty
    [       OK ] IlmCommandTest.LayerSetRenderOrder_empty (14 ms)
    [----------] 43 tests from IlmCommandTest (3492 ms total)
    
    [----------] Global test environment tear-down
    [==========] 67 tests from 2 test cases ran. (6838 ms total)
    [  PASSED  ] 64 tests.
    [  FAILED  ] 3 tests, listed below:
    [  FAILED  ] IlmCommandTest.ilm_takeLayerScreenshot
    [  FAILED  ] IlmCommandTest.ilm_takeSurfaceScreenshot
    [  FAILED  ] IlmCommandTest.ilm_surfaceGetPixelformat
    
     3 FAILED TESTS
    

     

  5. run ivi-input-api-test
    root@qemux86:/opt/tests/wayland-ivi-extension# ./ivi-input-api-test
    Running main() from gtest_main.cc
    [==========] Running 8 tests from 2 test cases.
    [----------] Global test environment set-up.
    [----------] 6 tests from IlmNullPointerTest
    [ RUN      ] IlmNullPointerTest.ilm_set_input_focus_null_pointer
    Invalid Argument
    [       OK ] IlmNullPointerTest.ilm_set_input_focus_null_pointer (6 ms)
    [ RUN      ] IlmNullPointerTest.ilm_get_input_focus_null_pointer
    Invalid Argument
    Invalid Argument
    Invalid Argument
    [       OK ] IlmNullPointerTest.ilm_get_input_focus_null_pointer (9 ms)
    [ RUN      ] IlmNullPointerTest.ilm_set_input_event_acceptance_null_pointer
    Invalid Argument
    surface ID 0 not found
    [       OK ] IlmNullPointerTest.ilm_set_input_event_acceptance_null_pointer (7 ms)
    [ RUN      ] IlmNullPointerTest.ilm_get_input_event_acceptance_null_pointer
    Invalid Argument
    Invalid Argument
    [       OK ] IlmNullPointerTest.ilm_get_input_event_acceptance_null_pointer (6 ms)
    [ RUN      ] IlmNullPointerTest.ilm_get_input_devices_null_pointer
    Invalid Argument
    Invalid Argument
    [       OK ] IlmNullPointerTest.ilm_get_input_devices_null_pointer (6 ms)
    [ RUN      ] IlmNullPointerTest.ilm_get_input_device_capabilities_null_pointer
    Invalid Argument
    Invalid Argument
    [       OK ] IlmNullPointerTest.ilm_get_input_device_capabilities_null_pointer (4 ms)
    [----------] 6 tests from IlmNullPointerTest (40 ms total)
    
    [----------] 2 tests from IlmCommandTest
    [ RUN      ] IlmCommandTest.ilm_input_focus
    [       OK ] IlmCommandTest.ilm_input_focus (16 ms)
    [ RUN      ] IlmCommandTest.ilm_input_event_acceptance
    [       OK ] IlmCommandTest.ilm_input_event_acceptance (9 ms)
    [----------] 2 tests from IlmCommandTest (25 ms total)
    
    [----------] Global test environment tear-down
    [==========] 8 tests from 2 test cases ran. (67 ms total)
    [  PASSED  ] 8 tests.
     

     

     

 

  • No labels