diff options
author | Nakamura Hayato <hayato.nakamura@mail.toyota-td.jp> | 2013-08-30 20:21:41 +0900 |
---|---|---|
committer | Nakamura Hayato <hayato.nakamura@mail.toyota-td.jp> | 2013-08-30 20:59:12 +0900 |
commit | c0ddb023649b0d9d58e36f022cf5eef374aadde4 (patch) | |
tree | ed61d09bac6507d69bfd9b1789a33a73a4d3b50f /tests/testdata | |
parent | d445c3e4277a10f4ad3239236c3f6c7bb074719d (diff) | |
download | ico-uxf-weston-plugin-c0ddb023649b0d9d58e36f022cf5eef374aadde4.tar.gz ico-uxf-weston-plugin-c0ddb023649b0d9d58e36f022cf5eef374aadde4.tar.bz2 ico-uxf-weston-plugin-c0ddb023649b0d9d58e36f022cf5eef374aadde4.zip |
The change of the configuration and the implementation of the event input.
Change-Id: Ic38eaff32bba49a264ac224ed9e5c2407b6d202a
Signed-off-by: Nakamura Hayato <hayato.nakamura@mail.toyota-td.jp>
Diffstat (limited to 'tests/testdata')
-rw-r--r-- | tests/testdata/cl_surface2.dat | 2 | ||||
-rw-r--r-- | tests/testdata/cl_surface4.dat | 2 | ||||
-rw-r--r-- | tests/testdata/hs_animatest_all.dat | 67 | ||||
-rw-r--r-- | tests/testdata/hs_mapsurf.dat | 1 | ||||
-rw-r--r-- | tests/testdata/hs_sendinput.dat | 229 |
5 files changed, 231 insertions, 70 deletions
diff --git a/tests/testdata/cl_surface2.dat b/tests/testdata/cl_surface2.dat index 68b40f8..c642759 100644 --- a/tests/testdata/cl_surface2.dat +++ b/tests/testdata/cl_surface2.dat @@ -3,7 +3,7 @@ # # 1. Create Surface create-surface -# 2. Sleep 10 sec +# 2. Sleep 8 sec sleep 8 # 3. End of this Application (exit) bye diff --git a/tests/testdata/cl_surface4.dat b/tests/testdata/cl_surface4.dat index 62ff39e..9d27d43 100644 --- a/tests/testdata/cl_surface4.dat +++ b/tests/testdata/cl_surface4.dat @@ -6,6 +6,6 @@ create-surface # 2. Sleep 2 sec with color change sleep 0.1 clear-surface 0x80ff4060 -sleep 35 +sleep 60 # 3. End of this Application (exit) bye diff --git a/tests/testdata/hs_animatest_all.dat b/tests/testdata/hs_animatest_all.dat deleted file mode 100644 index df84c97..0000000 --- a/tests/testdata/hs_animatest_all.dat +++ /dev/null @@ -1,67 +0,0 @@ -# Test for Weston IVI Plugin for HomeScreen(SystemController) -# Animation Test -# -# 1. Surface animation -launch ../tests/test-client < ../tests/testdata/cl_surface4.dat 2> ../tests/testlog/test-client04.log -waitcreate 2 -resize test-client 200 300 -move test-client 300 400 0 -# -# fade and show/hide -animation test-client fade 400 -show test-client 1 -sleep 1 -hide test-client 1 -sleep 2 -# -# slide.toleft and show/hide -animation test-client slide.toleft 400 -show test-client 1 -sleep 1 -hide test-client 1 -sleep 2 -# -# slide.toright and show/hide -animation test-client slide.toright 400 -show test-client 1 -sleep 1 -hide test-client 1 -sleep 2 -# -# slide.totop and show/hide -animation test-client slide.totop 400 -show test-client 1 -sleep 1 -hide test-client 1 -sleep 2 -# -# slide.tobottom and show/hide -animation test-client slide.tobottom 400 -show test-client 1 -sleep 1 -hide test-client 1 -sleep 2 -# -# zoom and show/hide -animation test-client zoom 400 -show test-client 1 -sleep 1 -hide test-client 1 -sleep 3 -# -# fade and move -animation test-client fade 600 -move test-client 600 200 1 -sleep 2 -move test-client 500 300 1 -sleep 3 -# -waitdestroy 60 -sleep 1 -# -kill test-client -sleep 0.5 -# -# 2. End of Test -bye - diff --git a/tests/testdata/hs_mapsurf.dat b/tests/testdata/hs_mapsurf.dat index 149d6e3..d3d8f1b 100644 --- a/tests/testdata/hs_mapsurf.dat +++ b/tests/testdata/hs_mapsurf.dat @@ -31,7 +31,6 @@ sleep 2 kill test-client kill test-eflapp@1 sleep 1 -sleep 1 # # 2. End of Test bye diff --git a/tests/testdata/hs_sendinput.dat b/tests/testdata/hs_sendinput.dat new file mode 100644 index 0000000..eddbe8d --- /dev/null +++ b/tests/testdata/hs_sendinput.dat @@ -0,0 +1,229 @@ +# Test for Weston IVI Plugin for HomeScreen(SystemController) +# send input event Test +# +# 1. trigger clients +# +launch ../tests/test-client < ../tests/testdata/cl_surface4.dat 2> ../tests/testlog/test-client.log 1>&2 +waitcreate 2 +move test-client 100 200 +show test-client +sleep 1 +# +launch ../tests/test-eflapp @1 -color=0xe02040ff 2> ../tests/testlog/test-eflapp.log 1>&2 +waitcreate 2 +move test-eflapp@1 650 80 +show test-eflapp@1 +# +# 11. send pointer event to general pointer motion(general event) +# +sleep 1 +input_send @ pointer 0 ABS_Z 80 160 +sleep 0.1 +input_send @ pointer 0 ABS_X 270 +input_send @ pointer 0 ABS_Y 440 +sleep 0.1 +input_send @ pointer 0 BTN_LEFT 1 +sleep 0.2 +input_send @ pointer 0 BTN_LEFT 0 +sleep 0.5 +input_send @ pointer 0 ABS_X 272 +input_send @ pointer 0 ABS_Y 438 +sleep 0.1 +input_send @ pointer 0 BTN_LEFT 1 +sleep 0.1 +input_send @ pointer 0 ABS_X 271 +input_send @ pointer 0 ABS_Y 439 +sleep 0.1 +input_send @ pointer 0 BTN_LEFT 0 +sleep 1 +# +# 12. send keyboard event(general event) +# +active test-client +input_send @ keyboard 0 1 1 +input_send @ keyboard 0 1 0 +sleep 0.2 +input_send @ keyboard 0 2 1 +sleep 0.1 +input_send @ keyboard 0 2 0 +sleep 1 +# +# 13. send touch event(general event) +# +active test-client +input_send @ touch 0 ABS_Z 250 450 +input_send @ touch 0 BTN_TOUCH 1 +sleep 0.1 +input_send @ touch 0 ABS_Z 255 455 +sleep 0.2 +input_send @ touch 0 BTN_TOUCH 0 +sleep 1 +# +# 14. switch event(general event) +# +active test-client +input_send @ switch 0 11 1 +input_send @ switch 0 11 0 +sleep 0.1 +input_send @ switch 0 12 1 +sleep 0.1 +input_send @ switch 0 12 0 +sleep 1 +# +# 15. haptic event(general event) +# +active test-client +input_send @ haptic 0 ABS_Z 260 460 +sleep 0.1 +input_send @ haptic 0 ABS_Z 262 462 +sleep 0.1 +input_send @ haptic 0 BTN_LEFT 1 +sleep 0.1 +input_send @ haptic 0 BTN_LEFT 0 +sleep 1 +# +# 21. send pointer event to general pointer motion(appid) +# +sleep 1 +input_send @test-client pointer 0 ABS_Z 80 160 +sleep 0.1 +input_send @test-client pointer 0 ABS_X 270 +input_send @test-client pointer 0 ABS_Y 440 +sleep 0.1 +input_send @test-client pointer 0 BTN_LEFT 1 +sleep 0.2 +input_send @test-client pointer 0 BTN_LEFT 0 +sleep 0.5 +input_send @test-client pointer 0 ABS_X 272 +input_send @test-client pointer 0 ABS_Y 438 +sleep 0.1 +input_send @test-client pointer 0 BTN_LEFT 1 +sleep 0.1 +input_send @test-client pointer 0 ABS_X 271 +input_send @test-client pointer 0 ABS_Y 439 +sleep 0.1 +input_send @test-client pointer 0 BTN_LEFT 0 +sleep 1 +# +# 22. send keyboard event(appid) +# +active test-client +input_send @test-client keyboard 0 1 1 +input_send @test-client keyboard 0 1 0 +sleep 0.2 +input_send @test-client keyboard 0 2 1 +sleep 0.1 +input_send @test-client keyboard 0 2 0 +sleep 1 +# +# 23. send touch event(appid) +# +active test-client +input_send @test-client touch 0 ABS_Z 250 450 +input_send @test-client touch 0 BTN_TOUCH 1 +sleep 0.1 +input_send @test-client touch 0 ABS_Z 255 455 +sleep 0.2 +input_send @test-client touch 0 BTN_TOUCH 0 +sleep 1 +# +# 24. switch event(appid) +# +active test-client +input_send @test-client switch 0 11 1 +input_send @test-client switch 0 11 0 +sleep 0.1 +input_send @test-client switch 0 12 1 +sleep 0.1 +input_send @test-client switch 0 12 0 +sleep 1 +# +# 25. haptic event(appid) +# +active test-client +input_send @test-client haptic 0 ABS_Z 260 460 +sleep 0.1 +input_send @test-client haptic 0 ABS_Z 262 462 +sleep 0.1 +input_send @test-client haptic 0 BTN_LEFT 1 +sleep 0.1 +input_send @test-client haptic 0 BTN_LEFT 0 +sleep 1 +# +# 31. send pointer event to general pointer motion(urface id) +# +sleep 1 +input_send test-client pointer 0 ABS_Z 80 160 +sleep 0.1 +input_send test-client pointer 0 ABS_X 270 +input_send test-client pointer 0 ABS_Y 440 +sleep 0.1 +input_send test-client pointer 0 BTN_LEFT 1 +sleep 0.2 +input_send test-client pointer 0 BTN_LEFT 0 +sleep 0.5 +input_send test-client pointer 0 ABS_X 272 +input_send test-client pointer 0 ABS_Y 438 +sleep 0.1 +input_send test-client pointer 0 BTN_LEFT 1 +sleep 0.1 +input_send test-client pointer 0 ABS_X 271 +input_send test-client pointer 0 ABS_Y 439 +sleep 0.1 +input_send test-client pointer 0 BTN_LEFT 0 +sleep 1 +# +# 32. send keyboard event(surface id) +# +active test-client +input_send test-client keyboard 0 1 1 +input_send test-client keyboard 0 1 0 +sleep 0.2 +input_send test-client keyboard 0 2 1 +sleep 0.1 +input_send test-client keyboard 0 2 0 +sleep 1 +# +# 33. send touch event(surface id) +# +active test-client +input_send test-client touch 0 ABS_Z 250 450 +input_send test-client touch 0 BTN_TOUCH 1 +sleep 0.1 +input_send test-client touch 0 ABS_Z 255 455 +sleep 0.2 +input_send test-client touch 0 BTN_TOUCH 0 +sleep 1 +# +# 34. switch event(surface id) +# +active test-client +input_send test-client switch 0 11 1 +input_send test-client switch 0 11 0 +sleep 0.1 +input_send test-client switch 0 12 1 +sleep 0.1 +input_send test-client switch 0 12 0 +sleep 1 +# +# 35. haptic event(surface id) +# +active test-client +input_send test-client haptic 0 ABS_Z 260 460 +sleep 0.1 +input_send test-client haptic 0 ABS_Z 262 462 +sleep 0.1 +input_send test-client haptic 0 BTN_LEFT 1 +sleep 0.1 +input_send test-client haptic 0 BTN_LEFT 0 +sleep 1 +# +sleep 60 +# +kill test-client +kill test-eflapp@1 +sleep 1 +# +# 99. End of Test +bye + |