bump product version to 5.0.4.1
[LibreOffice.git] / sal / qa / helper / gcov / gcov_run.sh
blobf08ab259050cea330766da61bf31d6424038b918
1 #!/bin/tcsh -f
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 # This file incorporates work covered by the following license notice:
11 # Licensed to the Apache Software Foundation (ASF) under one or more
12 # contributor license agreements. See the NOTICE file distributed
13 # with this work for additional information regarding copyright
14 # ownership. The ASF licenses this file to you under the Apache
15 # License, Version 2.0 (the "License"); you may not use this file
16 # except in compliance with the License. You may obtain a copy of
17 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 # This is a helper file, to start a coverage test by hand
22 # ----- INIT ENVIRONMENT -----
23 # setup a complete build environment, copy from our beanshell environment
24 setenv SHELL /bin/tcsh
25 source /net/margritte/usr/qaapi/workspace/qadev/scripts/init/staroffice.cshrc
27 # do a setsolar
29 setenv SOURCE_ROOT /cws/so-cwsserv06/qadev16
30 setsolar -cwsname qadev16 -sourceroot -src680 -ver m25 -jdk14 unxlngi5
33 # ----- CLEAN OLD COVERAGE INFOS -----
35 setenv SALDIR /cws/so-cwsserv06/qadev16/SRC680/src.m25/sal
37 # this is a patch for sal, to see also "ustr" in string
38 cd $SALDIR/rtl/source
40 # strtmpl.c contains code, which is used for strings and ustrings. This file contain lot of makros
41 # which unpacked at compile time. Due to the fact, gcov has some problems with such things, an idea is
42 # to copy strtmpl.c to ustrtmpl.c and replace the include command in ustring.c
43 # this is done be the follows lines.
45 # cat ustring.c | sed -e "s/strtmpl.c/ustrtmpl.c/" > ustring.c.new ; mv -f ustring.c.new ustring.c
46 # cp strtmpl.c ustrtmpl.c
48 cd $SALDIR
50 rm -f `find . -type f -name '*.bb' -print`
51 rm -f `find . -type f -name '*.bbg' -print`
52 rm -f `find . -type f -name '*.f' -print`
53 rm -f `find . -type f -name '*.da' -print`
54 rm -f `find . -type f -name '*.gcov' -print`
56 rm -rf unxlngi5
58 # ----- START A NEW BUILD WITH COVERAGE -----
59 setenv ENVCFLAGS "-O0 -ftest-coverage -fprofile-arcs"
60 build TESTCOVERAGE=t
61 deliver
64 # ----- START THE TESTS -----
66 # unsetenv ENVCFLAGS
67 cd cd $SALDIR/qa
68 # cd qa/osl/file
69 dmake test
72 # ----- BUILD GCOV (coverage) FILES -----
73 cd cd $SALDIR/qa/helper/gcov
74 statistics
76 # the statistics file create some *.txt files, the most interesting one is realallchecked.txt,
77 # which contain only the interface functions and it's run through in percent.
78 # the gcov_resultcompare.pl use two of these files to give out a compare.
80 # usage: gcov_resultcompare.pl -o realallchecked.txt -c <other>/realallchecked.txt