ivi-shell test suite and bugfixes found by these test cases

Nobuhiko Tanibata nobuhiko_tanibata at xddp.denso.co.jp
Sun Jun 21 23:02:15 PDT 2015


Hi,

I am proposing a set of patches; ivi-shell test suite and bug fixes 
found
by these test cases. This test suite is implemented based on following 
test
framework.
http://lists.freedesktop.org/archives/wayland-devel/2015-March/020932.html

This test suite consists of four parts to verify ivi-shell important 
functionalities.
- ivi_surface
- ivi_layer
- ivi_screen
- notification when properties of ivi_surface/layer are changed.


Test set of ivi_surface)
  ivi_surface is created by client by using 
ivi_application::surface_create.
  So I am using helper client to verify lifetime of ivi_surface.
  
http://cgit.freedesktop.org/wayland/weston/tree/protocol/ivi-application.xml

  This test set consists of three patches to verify normal use cases and 
bad
  condition.

  36e2e4e tests: test set for ivi-surface normal use case with helper 
client
  a2aad7d tests: test set for ivi-surface with bad condition in server 
side
  2d2def2 tests: test set for ivi-surface bad condition with helper 
client


Test set of ivi_layer)
  ivi_layer is mainly used by controller module which works on 
server/weston.
  However some tests need client helper to create ivi_surfaces which are
  assigned to ivi_layer.

  4e55d9d tests: test set for ivi-layer normal use case with helper 
client
  c420e06 tests: test set for ivi-layer normal use case in server side
  dde756d tests: test set for ivi-layer bad condition with helper-client
  018e00d tests: test set for ivi-layer with bad condition in server side


Test set of ivi_screen)
  ivi_screen is only used by controller module. So that test case of 
normal
  use cases and bad condition are implemented on server side only.

  b6b098e tests: test set for ivi-screen normal use case in server side
  cbd0aa2 tests: test set for ivi-screen with bad condition in server 
side


Test set of notifications)
  ivi_shell supports features of receiving notification of properties 
change.
  These one needs client helper to create ivi_surfaces as well. These 
test
  set proposes verification of normal use case and bad condition.

  e722bab tests: test set for ivi-shell notification normal use case with 
helper client
  fcef111 tests: test set for ivi-shell notification normal use case in 
server side
  b89f6ea tests: test set for ivi-shell notification in bad condition 
with helper client
  101eb7b tests: test set for ivi-shell notification with bad condition 
in server side


Patches to fix bugs found by this test suite)
  The following 13 patches fixes bugs found by the test suite.

  6e50c24 ivi-shell: bugfix, check limitation of ivi_layout_surface 
opacity
  f1d7418 ivi-shell: bugfix, check limitation of ivi_layout_layer opacity
  9af51bd ivi-shell: Fix wrong link of wl_list_for_each() of ivilayer
  1cb28f1 ivi-shell: bugfix, SEVG by adding NULL check in 
ivi_layout_get_screen_resolution
  0d9e9da ivi-shell: make ivi_layout_surface destruction explicit
  0432454 ivi-shell: fix ivi_shell_surface lifetime
  4abdbae ivi-shell: bugfix, add ref_count to ivi_layout_layer
  7c32128 ivi-shell: add new method to remove a callback to get 
notification of ivi_surface property changes.
  bca6b2c ivi-shell: add new method to remove a callback to get 
notificaiton of ivi_layer property changes.
  332a401 ivi-shell: add interface to get screen ID
  d56257e ivi-shell: bugfix, send notification when properties are 
changed according to event mask.
  d5d1640 ivi-shell: bugfix, update event_mask when new propertiy is not 
same as before.
  f5675a7 ivi-shell: rename to ivi_layout_layer_destroy()


Nobuhiko Tanibata (27):
  6e50c24 ivi-shell: bugfix, check limitation of ivi_layout_surface 
opacity
  f1d7418 ivi-shell: bugfix, check limitation of ivi_layout_layer opacity
  9af51bd ivi-shell: Fix wrong link of wl_list_for_each() of ivilayer
  1cb28f1 ivi-shell: bugfix, SEVG by adding NULL check in 
ivi_layout_get_screen_resolution
  0d9e9da ivi-shell: make ivi_layout_surface destruction explicit
  0432454 ivi-shell: fix ivi_shell_surface lifetime
  4abdbae ivi-shell: bugfix, add ref_count to ivi_layout_layer
  7c32128 ivi-shell: add new method to remove a callback to get 
notification of ivi_surface property changes.
  bca6b2c ivi-shell: add new method to remove a callback to get 
notificaiton of ivi_layer property changes.
  332a401 ivi-shell: add interface to get screen ID
  d56257e ivi-shell: bugfix, send notification when properties are 
changed according to event mask.
  d5d1640 ivi-shell: bugfix, update event_mask when new propertiy is not 
same as before.
  f5675a7 ivi-shell: rename to ivi_layout_layer_destroy()
  36e2e4e tests: test set for ivi-surface normal use case with helper 
client
  2d2def2 tests: test set for ivi-surface bad condition with helper 
client
  a2aad7d tests: test set for ivi-surface with bad condition in server 
side
  4e55d9d tests: test set for ivi-layer normal use case with helper 
client
  c420e06 tests: test set for ivi-layer normal use case in server side
  dde756d tests: test set for ivi-layer bad condition with helper-client
  018e00d tests: test set for ivi-layer with bad condition in server side
  b6b098e tests: test set for ivi-screen normal use case in server side
  cbd0aa2 tests: test set for ivi-screen with bad condition in server 
side
  3265dea tests: make the test context persistent
  e722bab tests: test set for ivi-shell notification normal use case with 
helper client
  fcef111 tests: test set for ivi-shell notification normal use case in 
server side
  b89f6ea tests: test set for ivi-shell notification in bad condition 
with helper client
  101eb7b tests: test set for ivi-shell notification with bad condition 
in server side

  ivi-shell/ivi-layout-export.h    |   23 +-
  ivi-shell/ivi-layout-private.h   |    5 +-
  ivi-shell/ivi-layout.c           |  205 ++++++++++++------
  ivi-shell/ivi-shell.c            |   48 +++--
  tests/ivi-test.h                 |    4 +
  tests/ivi_layout-internal-test.c | 1086 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
  tests/ivi_layout-test-plugin.c   |  747 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
  tests/ivi_layout-test.c          |  235 ++++++++++++++++++++
  8 files changed, 2249 insertions(+), 104 deletions(-)














More information about the wayland-devel mailing list