[genlist]: removed bin files
[framework/uifw/elementary.git] / TC / execute.sh
1 export MACHINE=`echo $SBOX_UNAME_MACHINE`
2
3 if [ $MACHINE = "i686" ]
4 then
5         TET_SCEN_FILE=tet_scen_i686
6 else
7         TET_SCEN_FILE=tet_scen_arm
8 fi
9
10 TET_SCEN_NAME=all
11 RESULT_TO_JOURNAL="false"
12
13 if [ $# -eq 0 ]
14 then
15         RESULT_TO_JOURNAL="false"
16         TET_SCEN_NAME="tet_scen"        
17 fi
18
19 SCEN_FILE_INPUT="false"
20 args_count=0
21
22 for i in $* 
23 do
24         args_count=`expr $args_count + 1`
25         if [ $SCEN_FILE_INPUT = "true" ]
26         then
27                 TET_SCEN_FILE=$i
28                 SCEN_FILE_INPUT="false"
29         elif [ $i = "-j" ]
30         then
31                 RESULT_TO_JOURNAL="true"
32         elif [ $i = "-s" ]
33         then
34                 SCEN_FILE_INPUT="true"
35         elif [ $args_count = $# ]
36         then
37                 TET_SCEN_NAME=$i
38         fi
39 done
40
41 #Export the path information
42 . ./_export_env.sh
43
44 echo TET_ROOT=$TET_ROOT
45 echo TET_SUITE_ROOT=$TET_SUITE_ROOT
46 echo TET_SCEN_FILE=$TET_SCEN_FILE
47 echo TET_SCEN_NAME=$TET_SCEN_NAME
48 echo RESULT_TO_JOURNAL=$RESULT_TO_JOURNAL
49
50 RESULT_DIR=result
51 #if [ $MACHINE = "i686" ]
52 if [ $MACHINE = "i686" ]
53 then
54         TEXT_RESULT=$RESULT_DIR/EXE-i686-$TET_SCEN_NAME-$FILE_NAME_EXTENSION.html
55         JOURNAL_RESULT=$RESULT_DIR/EXE-i686-$TET_SCEN_NAME-$FILE_NAME_EXTENSION.journal
56 else
57         TEXT_RESULT=$RESULT_DIR/EXE-ARM-$TET_SCEN_NAME-$FILE_NAME_EXTENSION.html
58         JOURNAL_RESULT=$RESULT_DIR/EXE-ARM-$TET_SCEN_NAME-$FILE_NAME_EXTENSION.journal
59 fi              
60
61 ### Make Result output directory
62 echo
63 echo "$RESULT_DIR Folder Creat"
64 if [ -e $RESULT_DIR ]
65 then
66         echo "  -> $RESULT_DIR Folder exist"
67 else
68         mkdir $RESULT_DIR
69 fi
70
71 ##execute and mkae html report
72 if [ $RESULT_TO_JOURNAL = "false" ]
73 then
74         tcc -e -p -j - -s $TET_SCEN_FILE ./ $TET_SCEN_NAME
75 else
76         tcc -e -j $JOURNAL_RESULT -p -s $TET_SCEN_FILE ./ $TET_SCEN_NAME
77         grw -c 3 -f chtml -o $TEXT_RESULT -- $JOURNAL_RESULT
78         echo RESULT_SUMMARY     = $TEXT_RESULT
79         echo RESULT_JOURNAL  = $JOURNAL_RESULT
80 fi
81         rm -rf ./results