From: Naresh Kamboju <[email protected]>

runltp hacked to run tests with gcov
this may not be prefect approach but works
following two files use to copy gcov dependent files
 - copy_source_n_gcon_files.sh
 - copy_gcda_files.sh

Signed-off-by: Naresh Kamboju <[email protected]>
---
 runltp |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/runltp b/runltp
index 63c625f..5db402f 100755
--- a/runltp
+++ b/runltp
@@ -813,10 +813,24 @@ main()
                cp ${TMP}/alltests.tmp ${TMP}/alltests
                rm -rf ${TMP}/alltests.tmp
        fi
+
+    #start gcov
+    echo ${LTPROOT}
+    ${LTPROOT}/copy_gcon_file_in_to_bin.sh ${LTPROOT}/testcases/bin/ ${LTPROOT}
+    #end gcov
+
     # Some tests need to run inside the "bin" directory.
     cd "${LTPROOT}/testcases/bin"
     "${LTPROOT}/bin/ltp-pan" $QUIET_MODE -e -S $INSTANCES $DURATION -a $$ -n 
$$ $PRETTY_PRT -f ${TMP}/alltests $LOGFILE $OUTPUTFILE $FAILCMDFILE
 
+    #start gcov
+    ${LTPROOT}/copy_gcda_files.sh ${LTPROOT}/testcases/bin/ ${LTPROOT}
+    for gcov_file in `awk '{print $2}' ${TMP}/alltests`
+    do
+       gcov $gcov_file
+    done
+    #end gcov
+
     if [ $? -eq 0 ]; then
       echo "INFO: ltp-pan reported all tests PASS"
       VALUE=0
-- 
1.7.9.5


------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to