1#!/bin/tcsh -f 2 3# This is a helper file, to start a coverage test by hand 4 5# ----- INIT ENVIRONMENT ----- 6# setup a complete build environment, copy from our beanshell environment 7setenv SHELL /bin/tcsh 8source /net/margritte/usr/qaapi/workspace/qadev/scripts/init/staroffice.cshrc 9 10# do a setsolar 11 12setenv SOURCE_ROOT /cws/so-cwsserv06/qadev16 13setsolar -cwsname qadev16 -sourceroot -src680 -ver m25 -jdk14 unxlngi5 14 15 16# ----- CLEAN OLD COVERAGE INFOS ----- 17 18setenv SALDIR /cws/so-cwsserv06/qadev16/SRC680/src.m25/sal 19 20# this is a patch for sal, to see also "ustr" in string 21cd $SALDIR/rtl/source 22 23# strtmpl.c contains code, which is used for strings and ustrings. This file contain lot of makros 24# which unpacked at compile time. Due to the fact, gcov has some problems with such things, an idea is 25# to copy strtmpl.c to ustrtmpl.c and replace the include command in ustring.c 26# this is done be the follows lines. 27 28# cat ustring.c | sed -e "s/strtmpl.c/ustrtmpl.c/" > ustring.c.new ; mv -f ustring.c.new ustring.c 29# cp strtmpl.c ustrtmpl.c 30 31cd $SALDIR 32 33rm -f `find . -type f -name '*.bb' -print` 34rm -f `find . -type f -name '*.bbg' -print` 35rm -f `find . -type f -name '*.f' -print` 36rm -f `find . -type f -name '*.da' -print` 37rm -f `find . -type f -name '*.gcov' -print` 38 39rm -rf unxlngi5 40 41# ----- START A NEW BUILD WITH COVERAGE ----- 42setenv ENVCFLAGS "-O0 -ftest-coverage -fprofile-arcs" 43build TESTCOVERAGE=t 44deliver 45 46 47# ----- START THE TESTS ----- 48 49# unsetenv ENVCFLAGS 50cd cd $SALDIR/qa 51# cd qa/osl/file 52dmake test 53 54 55# ----- BUILD GCOV (coverage) FILES ----- 56cd cd $SALDIR/qa/helper/gcov 57statistics 58 59# the statistics file create some *.txt files, the most interesting one is realallchecked.txt, 60# which contain only the interface functions and it's run through in percent. 61# the gcov_resultcompare.pl use two of these files to give out a compare. 62 63# usage: gcov_resultcompare.pl -o realallchecked.txt -c <other>/realallchecked.txt 64 65