Print desctiprion of recommended checklist
authorJiwon Kim <jiwon177.kim@samsung.com>
Mon, 13 Feb 2017 05:17:18 +0000 (14:17 +0900)
committerJiwon Kim <jiwon177.kim@samsung.com>
Mon, 13 Feb 2017 05:17:20 +0000 (14:17 +0900)
Print pre/post checklist.
Someone always miss one of them, then spend a lot of time to re-test.

Change-Id: I9364c75a5522d906c929b47597d4ee7ccfdcc6a4
Signed-off-by: Jiwon Kim <jiwon177.kim@samsung.com>
TC/execute.sh

index dfd90d5258b78012d06b66a1d11fb53292bd14bc..65e8c84314f0858cd850aa2e5d4acc033b0c093a 100755 (executable)
@@ -38,6 +38,45 @@ function usage_echo()
        echo "e.g) ./execute.sh mobile ECORE EDJE"
 }
 
+function print_checklist_pre()
+{
+       echo "=================================================="
+       echo "----- Recommended checklist BEFORE execution -----"
+       echo "It just recommendation to check your mistake about"
+       echo "TC preconditions."
+       echo "You can ignore this messages if your preparation"
+       echo "is perfect."
+       echo ""
+       echo "1. Check display state. (always should bright)"
+       echo ""
+       sleep 1
+       echo "2. Check lockscreen if exist. (should unlock)"
+       echo ""
+       sleep 1
+       echo "3. Check disk space of results dir"
+       echo "   (If not enough, move to another mounting point)"
+       echo ""
+       sleep 1
+       echo "4. Install 'python' and 'python-lxml'."
+       echo "   (If you want to create html result successfully)"
+       echo ""
+       sleep 1
+       echo "5. Check internet connection"
+       echo "   (If you will test 'ecore_con' or 'elm_map' ...)"
+       sleep 1
+       echo "=================================================="
+}
+
+function print_checklist_post()
+{
+       echo "=================================================="
+       echo "----- Recommended checklist AFTER execution -----"
+       echo "Please check crash dump dir"
+       echo "Sometimes some crashed case does not be counted "
+       echo "into a total result"
+       echo "=================================================="
+}
+
 env | grep "XDG_RUNTIME_DIR" >/dev/null
 if [ $? -eq 1 ]; then
    echo "${red}Error: ${reset}Change the mode by using \"su -\""
@@ -70,6 +109,8 @@ else
        exit
 fi
 
+print_checklist_pre
+
 export TET_SUITE_ROOT=`pwd`
 export EVAS_NO_DRI_SWAPBUF=1
 export EINA_LOG_ABORT=0
@@ -274,6 +315,8 @@ done < $JOURNAL_RESULT
 ALL_PASSED_TC=`expr $ALL_CHECK_TC - $ALL_FAILED_TC` #$(($ALL_CHECK_TC - $ALL_FAILED_TC))
 ALL_PASSED_TC=`expr $ALL_PASSED_TC - $ALL_ERRORS_TC` #$(($ALL_PASSED_TC - $ALL_ERRORS_TC))
 
+print_checklist_post
+
 echo "Checked $ALL_CHECK_TC, passed $ALL_PASSED_TC, failed $ALL_FAILED_TC, errors $ALL_ERRORS_TC"
 
 #add result to top of journal