HomeScreen: Adding a config to adjust background of menu window
[profile/ivi/ico-uxf-homescreen.git] / tests / homescreen / homescreen-test.sh
1 #!/bin/sh
2
3 ## log file
4 mkdir /var/log/ico > /dev/null 2>&1
5 export HOMESCREEN_LOG=/var/log/ico/org.tizen.ico.homescreen.log
6 export ONSCREEN_LOG=/var/log/ico/org.tizen.ico.onscreen.log
7
8 ## make dat
9 ./homescreen-test-makedat.sh
10
11 ## GUI test
12 ico_send_inputevent -m < testdata/gui-test.dat
13
14 ## CUI test
15 #Hide tile screen
16 ico_send_hscommand json/hide-tile.json
17 sleep 3
18 #Show tile screen
19 ico_send_hscommand json/show-tile.json
20 sleep 3
21 #Show application
22 ico_send_hscommand json/hide-tile.json
23 sleep 3
24 ico_send_hscommand json/show-app1.json
25 sleep 3
26 #Move and resize application
27 ico_send_hscommand json/geom-app1-1.json
28 sleep 3
29 ico_send_hscommand json/geom-app1-2.json
30 sleep 3
31 ico_send_hscommand json/geom-app1-3.json
32 sleep 3
33 #Terminate application
34 ico_send_hscommand json/term-app1.json
35 sleep 3
36 ico_send_hscommand json/show-tile.json
37 sleep 3
38 #Terminate application
39 ico_send_hscommand json/hide-tile.json
40 sleep 3
41 ico_send_hscommand json/exec-app1.json
42 sleep 3
43 #Application on tile screen
44 ico_send_hscommand json/show-tile.json
45 sleep 3
46
47 ## Check Error
48 FOUND_ERR=0
49 /bin/grep -i "err" $HOMESCREEN_LOG
50 if [ "$?" != "1" ] ; then
51     FOUND_ERR=1
52 fi
53 /bin/grep -i "err" $ONSCREEN_LOG
54 if [ "$?" != "1" ] ; then
55     FOUND_ERR=1
56 fi
57 /bin/grep -i "fail" $HOMESCREEN_LOG
58 if [ "$?" != "1" ] ; then
59     FOUND_ERR=1
60 fi
61 /bin/grep -i "fail" $ONSCREEN_LOG
62 if [ "$?" != "1" ] ; then
63     FOUND_ERR=1
64 fi
65
66 ## delete dat file
67 rm -f testdata/gui-test.dat
68
69 echo " "
70 echo " "
71 if [ $FOUND_ERR = 0 ] ; then
72         echo "org.tizen.ico.homescreen Test: OK"
73 else
74     echo "org.tizen.ico.homescreen Test: Please check the upper log whether there is not a critical bug"
75 fi
76