3 # Weston IVI Plugin Test
5 # Remark: This examination premises that Weston does not run.
8 mkdir ../tests/testlog 2> /dev/null
9 rm -fr ../tests/testlog/* 2> /dev/null
11 # 2 Start Pseudo event device (for Touch Panel)
12 ../tests/test-send_event -d -mq=5551 2> ../tests/testlog/event_log.log &
15 # 3 Set Environment for Test
16 export WESTON_IVI_PLUGIN_DIR="../src/.libs"
19 export XDG_CONFIG_HOME="../tests"
20 MOD_DIR="$PWD/../src/.libs"
21 /usr/bin/weston --modules=$MOD_DIR/ico_plugin_loader.so --idle-time=0 $WESTON_BACKEND --log=../tests/testlog/weston.log &
25 export LD_LIBRARY_PATH=../src/.libs:$LD_LIBRARY_PATH
27 # 6 Start test-homescreen
28 ../tests/test-homescreen < ../tests/testdata/hs_animatest.dat 2> ../tests/testlog/test-homescreen.log
32 /usr/bin/killall weston
33 /usr/bin/killall test-send_event
38 /bin/grep "ERR>" testlog/*
39 if [ "$?" != "1" ] ; then
42 /bin/grep "WRN>" testlog/*
43 if [ "$?" != "1" ] ; then
46 /bin/grep "Error" testlog/*
47 if [ "$?" != "1" ] ; then
50 /bin/grep "error" testlog/* | /bin/grep -v "error_but_no_problem_for_test"
51 if [ "$?" != "1" ] ; then
54 /bin/grep "Fail" testlog/* | /bin/grep -v "error_but_no_problem_for_test" | /bin/grep -v "initialize backlight"
55 if [ "$?" != "1" ] ; then
59 if [ $FOUND_ERR = 0 ] ; then
60 echo "Weston IVI Plugin Test: OK"
62 echo "Weston IVI Plugin Test: ERROR"