fix result file path
authorYeongjong Lee <yj34.lee@samsung.com>
Fri, 13 Jul 2018 02:18:39 +0000 (11:18 +0900)
committerYeongjong Lee <yj34.lee@samsung.com>
Fri, 13 Jul 2018 10:51:56 +0000 (19:51 +0900)
TC/execute.sh

index c16ce7be41d30112da3ce993598c388946e4e598..781fadef18d2c96359da5b82ebae52259b7eb086 100755 (executable)
@@ -281,27 +281,76 @@ while read line_libs; do
                                        sed -i 's/#//g' $elm_exception_list
                                        sed -i 's/DEPRECATED//g' $elm_exception_list
                                        sed -i 's/\.c//g' $elm_exception_list
+
+                                       before_path=`pwd`
                                        cd elementary
-                                       ./utc_elm
-                                       cd ..
+
+                                       ./utc_elm &> /dev/null
+
+                                       #add log result to execute file
+                                       tc_log_file="utc_elm.log"
+                                       cat $tc_log_file >> $before_path"/$JOURNAL_RESULT";
+                                       #delete check log
+                                       rm -rf $tc_log_file
+
+                                       #add xml result to execute file
+                                       tc_xml_file="utc_elm.xml"
+                                       cat $tc_xml_file >> $before_path"/$XML_RESULT";
+                                       #delete check xml
+                                       rm -rf $tc_xml_file
+
+                                       cd $before_path
+
                                        rm $elm_exception_list
                                elif [[ "$line_libs" =~ "EINA" ]]; then
                                        sed -i 's/ //g' $eina_exception_list
                                        sed -i 's/#//g' $eina_exception_list
                                        sed -i 's/DEPRECATED//g' $eina_exception_list
                                        sed -i 's/\.c//g' $eina_exception_list
+                                       before_path=`pwd`
                                        cd eina
-                                       ./utc_eina
-                                       cd ..
+
+                                       ./utc_eina &> /dev/null
+
+                                       #add log result to execute file
+                                       tc_log_file="utc_eina.log"
+                                       cat $tc_log_file >> $before_path"/$JOURNAL_RESULT";
+                                       #delete check log
+                                       rm -rf $tc_log_file
+
+                                       #add xml result to execute file
+                                       tc_xml_file="utc_eina.xml"
+                                       cat $tc_xml_file >> $before_path"/$XML_RESULT";
+                                       #delete check xml
+                                       rm -rf $tc_xml_file
+
+                                       cd $before_path
+
                                        rm $eina_exception_list
                                elif [[ "$line_libs" =~ "ECORE" ]]; then
                                        sed -i 's/ //g' $ecore_exception_list
                                        sed -i 's/#//g' $ecore_exception_list
                                        sed -i 's/DEPRECATED//g' $ecore_exception_list
                                        sed -i 's/\.c//g' $ecore_exception_list
+                                       before_path=`pwd`
                                        cd ecore
-                                       ./utc_ecore
-                                       cd ..
+
+                                       ./utc_ecore &> /dev/null
+
+                                       #add log result to execute file
+                                       tc_log_file="utc_ecore.log"
+                                       cat $tc_log_file >> $before_path"/$JOURNAL_RESULT";
+                                       #delete check log
+                                       rm -rf $tc_log_file
+
+                                       #add xml result to execute file
+                                       tc_xml_file="utc_ecore.xml"
+                                       cat $tc_xml_file >> $before_path"/$XML_RESULT";
+                                       #delete check xml
+                                       rm -rf $tc_xml_file
+
+                                       cd $before_path
+
                                        rm $ecore_exception_list
                                fi
                                echo "End modules execute Lib Scen";