source: branches/ali/UNIT_TESTER/gcov2msg.sh

Last change on this file was 8611, checked in by westram, 13 years ago

merge from e4fix [8160] [8161] [8162] [8163] [8164] [8165] [8166] [8167]

  • renames
    • ED4_species_pointer (get/set methods)
  • coverage
    • reports now controlled via Makefile.setup.local
    • fixed failure propagation from gcov2msg.*
  • fixed
    • return type of ED4_create_faligner_window
    • several free/delete mismatches
  • regression test for ED4_char_table (build on [8159])
    • loosened dependency of ED4_char_table from global ED4_ROOT (to get test working)
  • consensus-update-methods
    • pass UpdateRange as object
  • build_consensus_string
    • removed default-params (instead use diff functions flavors)
    • no longer uses uncommon offsets
    • no longer propagate "no changes" upwards through consensi
  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/bin/bash
2
3CAKEDEPTH=3
4
5enter() {
6    local DIR=$1
7    echo "cake[$CAKEDEPTH]: Entering directory \`$DIR'"
8}
9leave() {
10    local DIR=$1
11    echo "cake[$CAKEDEPTH]: Leaving directory \`$DIR'"
12}
13
14show_coverage() {
15    local DIR=$1
16    if [ -d $DIR/GENC ]; then
17        # handle special compilation in PROBE_COM/GENC and NAMES_COM/GENC
18        ./gcov2msg.pl --srcdirs=$DIR/C --builddir=$DIR $DIR/O
19    else 
20        ./gcov2msg.pl $DIR 
21    fi
22}
23
24show_coverage_otherdir() {
25    local DIR=$1
26    enter $DIR
27    show_coverage $DIR
28    local EXITCODE=$?
29    leave $DIR
30    return $EXITCODE
31}
32
33# ------------------------------------------------------------
34
35main () {
36    local FULLUNITDIR=$1
37    local UNITLIBNAME=$2
38
39    if [ -z "$UNITLIBNAME" ]; then
40        echo "Usage: gcov2msg.sh fullunitdir unitlibname"
41        false
42    else
43        # perform additional coverage analysis for some tests
44        if [ "$UNITLIBNAME" = "arb_probe" ]; then
45            show_coverage $FULLUNITDIR && \
46            show_coverage_otherdir `dirname $FULLUNITDIR`/PROBE_COM
47        else
48            show_coverage $FULLUNITDIR
49        fi
50    fi
51}
52
53main $*
Note: See TracBrowser for help on using the repository browser.