3 # Weston IVI Plugin Test (Resize Buf test)
5 # Remark: This examination premises that Weston does not run.
8 rm -fr ../tests/testlog/*
10 # 2 Start Pseudo event device (for Touch Panel)
11 ../tests/test-send_event -d -mq=5551 2> ../tests/testlog/event_log.log &
14 # 3 Weston/Wayland Envionment
15 export XDG_RUNTIME_DIR=/tmp/run-root
16 export QT_QPA_PLATFORM=wayland
17 export ELM_ENGINE=wayland_egl
18 export ECORE_EVAS_ENGINE=wayland_egl
19 #export ELM_ENGINE=wayland_shm
20 #export ECORE_EVAS_ENGINE=wayland_shm
21 export EVAS_FONT_DPI=72
22 export ECORE_IMF_MODULE=isf
23 export ELM_MODULES="ctxpopup_copypasteUI>entry/api:datetime_input_ctxpopup>datetime/api"
24 export ELM_SCALE="0.7"
25 export ELM_PROFILE=mobile
27 # 4 Set Environment for Test
28 export WESTON_IVI_PLUGIN_DIR="../src/.libs"
31 export XDG_CONFIG_HOME="../tests"
32 MOD_DIR="$PWD/../src/.libs"
33 /usr/bin/weston --backend=drm-backend.so --modules=$MOD_DIR/ico_plugin_loader.so --idle-time=0 --log=../tests/testlog/weston.log &
37 export LD_LIBRARY_PATH=../src/.libs:$LD_LIBRARY_PATH
39 # 7 Start test-homescreen
40 ../tests/test-homescreen < ../tests/testdata/hs_resize_smoke2.dat 2> ../tests/testlog/test-homescreen.log
44 /usr/bin/killall weston
45 /usr/bin/killall test-send_event
50 /bin/grep "ERR>" testlog/*
51 if [ "$?" != "1" ] ; then
54 /bin/grep "WRN>" testlog/*
55 if [ "$?" != "1" ] ; then
58 /bin/grep "Error" testlog/*
59 if [ "$?" != "1" ] ; then
62 /bin/grep "error" testlog/* | /bin/grep -v "error_but_no_problem_for_test"
63 if [ "$?" != "1" ] ; then
66 /bin/grep "Fail" testlog/* | /bin/grep -v "error_but_no_problem_for_test"
67 if [ "$?" != "1" ] ; then
71 if [ $FOUND_ERR = 0 ] ; then
72 echo "Weston IVI Plugin Test: OK"
74 echo "Weston IVI Plugin Test: ERROR"