diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-02-08 21:36:05 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-02-08 21:48:24 (GMT) |
commit | 3e13fa1f097ec3d350e131e0826d8f97f700917b (patch) | |
tree | 0e83033f813cfa7bb447da4a72fcf8c184b33646 /BuildTools | |
parent | 56693179fb060f1c5c62e612469852daa472e725 (diff) | |
download | swift-contrib-3e13fa1f097ec3d350e131e0826d8f97f700917b.zip swift-contrib-3e13fa1f097ec3d350e131e0826d8f97f700917b.tar.bz2 |
Added extra parameter support to coverage script.
Diffstat (limited to 'BuildTools')
-rwxr-xr-x | BuildTools/Coverage/GenerateCoverageResults.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/BuildTools/Coverage/GenerateCoverageResults.sh b/BuildTools/Coverage/GenerateCoverageResults.sh index f06c484..111dc07 100755 --- a/BuildTools/Coverage/GenerateCoverageResults.sh +++ b/BuildTools/Coverage/GenerateCoverageResults.sh @@ -6,8 +6,11 @@ SOURCE_DIR=. SCRIPT_DIR=BuildTools/Coverage LCOVDIR=3rdParty/LCov -RESULTS_DIR=BuildTools/Coverage/results -OUTPUT_DIR=$RESULTS_DIR/coverage-`git log --pretty=format:%ct-%h | head -n 1` +#RESULTS_DIR=BuildTools/Coverage/results +#OUTPUT_DIR=$RESULTS_DIR/coverage-`git log --pretty=format:%ct-%h | head -n 1` + +OUTPUT_DIR=BuildTools/Coverage/coverage +rm -rf $OUTPUT_DIR if [ ! -d $OUTPUT_DIR ]; then mkdir -p $OUTPUT_DIR @@ -17,7 +20,7 @@ fi $LCOVDIR/lcov --zerocounters --directory $SOURCE_DIR # Build & run all tests -scons coverage=1 test=all +./scons coverage=1 test=all $@ # Run SCons $LCOVDIR/lcov --capture --directory $SOURCE_DIR -b $SOURCE_DIR --output-file $OUTPUT_DIR/all.info --test-name all |