Bug fix TIVI-976 ,TIVI-974 and addition of the window animation interface.
[profile/ivi/ico-uxf-weston-plugin.git] / tests / weston-plugin-test.homescreen
1 #!/bin/sh
2 #
3 #       Weston IVI Plugin Test
4 #         Examination to operate only the program of the HomeScreen.
5 #
6 #         Remark: This examination premises that Weston does not run.
7
8 # 1 Delete log file
9 rm -fr ../tests/testlog
10 mkdir ../tests/testlog
11
12 # 2 Weston/Wayland Envionment
13 export XDG_RUNTIME_DIR=/tmp/run-root
14 export QT_QPA_PLATFORM=wayland
15 export ELM_ENGINE=wayland_egl
16 export ECORE_EVAS_ENGINE=wayland_egl
17 #export ELM_ENGINE=wayland_shm
18 #export ECORE_EVAS_ENGINE=wayland_shm
19 export EVAS_FONT_DPI=72
20 export ECORE_IMF_MODULE=isf
21 export ELM_MODULES="ctxpopup_copypasteUI>entry/api:datetime_input_ctxpopup>datetime/api"
22 export ELM_SCALE="0.7"
23 export ELM_PROFILE=mobile
24
25 # 3 Set Environment for Test
26 export WESTON_IVI_PLUGIN_DIR="../src/.libs"
27
28 # 4 Start Weston
29 export XDG_CONFIG_HOME="../tests"
30 MOD_DIR="$PWD/../src/.libs"
31 /usr/bin/weston --backend=drm-backend.so --modules=$MOD_DIR/ico_plugin_loader.so --idle-time=0 --log=../tests/testlog/weston.log &
32 sleep 2
33
34 # 5 Set library path
35 export LD_LIBRARY_PATH=../src/.libs:$LD_LIBRARY_PATH
36
37 # 6 Start test-homescreen
38 ../tests/test-homescreen -prompt=1 2> ../tests/testlog/test-homescreen.log
39
40 # 7 End of Test
41 sleep 2
42 /usr/bin/killall weston
43