1 export MACHINE=`echo $SBOX_UNAME_MACHINE`
3 if [ $MACHINE = "i686" ]
5 TET_SCEN_FILE=tet_scen_i686
7 TET_SCEN_FILE=tet_scen_arm
11 RESULT_TO_JOURNAL="false"
16 echo "ERROR : Scenario name not found"
19 echo "./build-tar-host.sh [-j] [-s scenario file name] [scenario name]"
20 echo " -j : Write the journal file for test result"
21 echo " scenario name : A scenario name in 'tet_scen'file"
26 SCEN_FILE_INPUT="false"
31 args_count=`expr $args_count + 1`
32 if [ $SCEN_FILE_INPUT = "true" ]
35 SCEN_FILE_INPUT="false"
38 RESULT_TO_JOURNAL="true"
41 SCEN_FILE_INPUT="true"
42 elif [ $args_count = $# ]
48 #Export the path information
51 echo TET_ROOT=$TET_ROOT
52 echo TET_SUITE_ROOT=$TET_SUITE_ROOT
53 echo TET_SCEN_FILE=$TET_SCEN_FILE
54 echo TET_SCEN_NAME=$TET_SCEN_NAME
55 echo RESULT_TO_JOURNAL=$RESULT_TO_JOURNAL
59 if [ $MACHINE = "i686" ]
61 TEXT_RESULT=$RESULT_DIR/BLD-i686-$TET_SCEN_NAME-$FILE_NAME_EXTENSION.html
62 JOURNAL_RESULT=$RESULT_DIR/BLD-i686-$TET_SCEN_NAME-$FILE_NAME_EXTENSION.journal
64 TEXT_RESULT=$RESULT_DIR/BLD-ARM-$TET_SCEN_NAME-$FILE_NAME_EXTENSION.html
65 JOURNAL_RESULT=$RESULT_DIR/BLD-ARM-$TET_SCEN_NAME-$FILE_NAME_EXTENSION.journal
68 ### Make Result output directory
70 echo "$RESULT_DIR Folder Create"
73 echo " -> $RESULT_DIR Folder exist"
78 ##execute and mkae html report
79 tcc -c -p -s $TET_SCEN_FILE ./ $TET_SCEN_NAME
80 if [ $RESULT_TO_JOURNAL = "false" ]
82 tcc -b -p -j - -s $TET_SCEN_FILE ./ $TET_SCEN_NAME
84 tcc -b -j $JOURNAL_RESULT -p -s $TET_SCEN_FILE ./ $TET_SCEN_NAME
85 grw -c 3 -f chtml -o $TEXT_RESULT -- $JOURNAL_RESULT
86 echo RESULT_SUMMARY = $TEXT_RESULT
87 echo RESULT_JOURNAL = $JOURNAL_RESULT