1 # Test for Weston IVI Plugin for HomeScreen(SystemController)
2 # Surface Create and Destory
4 # 1. Launch Application (and app create surface)
5 launch ../tests/test-client < ../tests/testdata/cl_surface1.dat 2> ../tests/testlog/test-client01.log 1>&2
7 move test-client 250 150
13 # 2. Launch Application and resize/move/show
14 launch ../tests/test-client < ../tests/testdata/cl_surface2.dat 2> ../tests/testlog/test-client02.log 1>&2
16 resize test-client 600 400
17 move test-client 300 100
20 move test-client 400 150
22 move test-client 500 200
24 move test-client 600 250
26 move test-client 700 300
30 move test-client 100 200
31 resize test-client 150 100
34 resize test-client 300 200
36 resize test-client 450 300
38 resize test-client 600 400
40 resize test-client 400 250
42 resize test-client 200 150
44 resize test-client 100 50
49 # 3. Surface animation
50 launch ../tests/test-client < ../tests/testdata/cl_surface4.dat 2> ../tests/testlog/test-client04.log
52 resize test-client 200 300
53 move test-client 300 350 0
56 animation test-client fade 400
63 # slide.toleft and show/hide
64 animation test-client slide.toleft 400
70 # slide.toright and show/hide
71 animation test-client slide.toright 400
77 # slide.totop and show/hide
78 animation test-client slide.totop 400
84 # slide.tobottom and show/hide
85 animation test-client slide.tobottom 400
94 animation test-client zoom 600
101 animation test-client zoom 1000
104 move test-client 100 50 0 1
106 move test-client 500 400 0 1
110 resize test-client 80 50 1
112 resize test-client 300 200 1
116 animation test-client slide 600
117 move test-client 100 50 0 1
119 move test-client 500 400 0 1
123 animation test-client fade 600
124 resize test-client 80 50 1
126 resize test-client 300 200 1
130 animation test-client slide 600
131 resize test-client 80 50 1
133 resize test-client 300 200 1
140 launch ../tests/test-eflapp @1 -color=0xe02040ff 2> ../tests/testlog/test-eflapp.log 1>&2
144 move test-eflapp@1 0 150
146 animation test-eflapp@1 wipe.toleft 800
152 move test-eflapp@1 920 250
155 animation test-eflapp@1 wipe.toright 800
161 move test-eflapp@1 400 0
164 animation test-eflapp@1 wipe.tobottom 800
170 move test-eflapp@1 400 520
173 animation test-eflapp@1 wipe.totop 800
179 move test-eflapp@1 0 150
182 animation test-eflapp@1 swing.toleft 800
188 move test-eflapp@1 920 250
191 animation test-eflapp@1 swing.toright 800
197 move test-eflapp@1 400 0
200 animation test-eflapp@1 swing.tobottom 800
206 move test-eflapp@1 400 520
209 animation test-eflapp@1 swing.totop 800
220 # 4. Launch Weston sample client
221 #launch /usr/bin/wayland-flower 2> ../tests/testlog/wayland-flower.log 1>&2
223 #move wayland-flower 200 100
226 #resize wayland-flower 500 400
231 #launch /usr/bin/wayland-smoke 2> ../tests/testlog/wayland-smoke.log 1>&2
233 #move wayland-smoke 100 50
242 #resize wayland-smoke 400 400
250 #resize wayland-smoke 300 600
258 #resize wayland-smoke 450 300
270 launch ../tests/test-eflapp @1 -color=0xe02040ff > ../tests/testlog/test-eflapp1.log 1>&2
272 layer test-eflapp@1 51
273 move test-eflapp@1 100 200
277 launch ../tests/test-eflapp @2 -color=0xd020ff40 > ../tests/testlog/test-eflapp2.log 1>&2
279 layer test-eflapp@2 53
280 move test-eflapp@2 200 300
284 launch ../tests/test-eflapp @3 -color=0xc0ff2040 > ../tests/testlog/test-eflapp3.log 1>&2
286 layer test-eflapp@3 52
287 move test-eflapp@3 300 400
291 launch ../tests/test-eflapp @4 -color=0xb0808080 > ../tests/testlog/test-eflapp4.log 1>&2
293 layer test-eflapp@4 52
294 move test-eflapp@4 400 500
298 launch ../tests/test-eflapp @5 -color=0xa040a060 > ../tests/testlog/test-eflapp5.log 1>&2
300 layer test-eflapp@5 52
301 move test-eflapp@5 500 600
309 # resize EFL application
310 resize test-eflapp@2 300 300
312 resize test-eflapp@3 720 520
314 resize test-eflapp@3 520 380
316 resize test-eflapp@2 520 380
334 layer test-eflapp@1 50
336 layer test-eflapp@2 50
339 # 8. layer visibility control
357 launch ../tests/test-client @1 -color=0xe0ff2020 -postsleep=60 < ../tests/testdata/cl_surface3.dat 2> ../tests/testlog/test-client11.log 1>&2
360 layer test-client@1 51
361 move test-client@1 100 200 1
371 launch ../tests/test-client @2 -color=0xc020ff20 -postsleep=60 < ../tests/testdata/cl_surface3.dat 2> ../tests/testlog/test-client12.log 1>&2
374 layer test-client@2 51
375 move test-client@2 250 300 1
385 launch ../tests/test-client @3 -color=0xa02020ff -postsleep=60 < ../tests/testdata/cl_surface3.dat 2> ../tests/testlog/test-client13.log 1>&2
388 layer test-client@3 51
389 move test-client@3 400 400 1
426 input_conf InDev1 8 Sw1 0
427 input_conf InDev1 8 Sw2 1 Up 10
428 input_code InDev1 1 Down 11
429 input_conf InDev1 8 Sw3 2 Left 20 Right 21
430 input_code InDev1 2 Right 21
431 input_conf InDev1 8 Sw4 3
433 input_conf InDev2 8 Sw0 0
434 input_conf InDev2 8 Sw1 1
437 input_sw InDev1 2 20 1
439 input_sw InDev1 2 20 0
441 input_sw InDev2 0 1 1
443 input_sw InDev2 0 1 1
445 # assign input sw to application
446 input_add InDev1 1 test-client@1
447 input_add InDev1 2 test-client@2
448 input_add InDev1 3 test-client@3
449 input_add InDev2 0 test-client@1 1
450 input_add InDev2 1 test-client@1
453 input_sw InDev1 0 1 1
455 input_sw InDev1 0 1 0
457 input_sw InDev1 1 10 1
459 input_sw InDev1 1 10 0
461 input_sw InDev1 2 21 1
463 input_sw InDev1 2 21 0
465 input_sw InDev1 3 1 1
467 input_sw InDev1 3 1 0
469 input_sw InDev2 0 1 1
471 input_sw InDev2 0 1 0
473 input_sw InDev2 1 1 1
475 input_sw InDev2 1 1 0
477 # delete and change assign
478 ## same assign (NOP, but change to general assign)
479 input_add InDev2 0 test-client@1
480 ## same assign (NOP, but change to fixed assign)
481 input_add InDev2 0 test-client@1 1
483 input_add InDev2 1 test-client@2
485 input_del InDev1 1 test-client@1
486 ## delete but not assign
487 input_del InDev2 1 test-client@1
488 ## switch input event
489 input_sw InDev2 0 1 1
491 input_sw InDev2 0 1 0
493 input_sw InDev2 1 1 1
495 input_sw InDev2 1 1 0
497 input_sw InDev1 3 1 1
499 input_sw InDev1 3 1 0
501 # delete all assign without fixed assign(fixed = InDev2.0)