File: checkClass.sh

package info (click to toggle)
libgroboutils-java 5-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 8,496 kB
  • sloc: java: 59,880; xml: 12,762; sh: 377; perl: 104; makefile: 20
file content (24 lines) | stat: -rw-r--r-- 534 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

pushd $(dirname $0) > /dev/null
HERE=$(pwd)
popd

if [ -z $1 ]; then
    echo "Argument 1 is the classname to analyze."
    exit
fi
CLASSNAME="$1"
SRCDIR=$HERE/codecoverage/sources/dev
if [ ! -z $2 ]; then
    SRCDIR="$2"
fi
WORKDIR=$HERE/codecoverage/work
if [ ! -z $3 ]; then
    WORKDIR="$3"
fi


./pmake.sh codecoverage test-ait-2 -Dconfig.classname=$CLASSNAME -Dconfig.datadir=$WORKDIR/coverage/data -Dconfig.srcdir=$SRCDIR -Dconfig.origclassdir=$WORKDIR/classes/dev -Dconfig.covclassdir=$WORKDIR/coverage/classes