From 3e13fa1f097ec3d350e131e0826d8f97f700917b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Tue, 8 Feb 2011 22:36:05 +0100
Subject: Added extra parameter support to coverage script.


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
-- 
cgit v0.10.2-6-g49f6