summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-08 21:36:05 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-08 21:48:24 (GMT)
commit3e13fa1f097ec3d350e131e0826d8f97f700917b (patch)
tree0e83033f813cfa7bb447da4a72fcf8c184b33646 /BuildTools/Coverage
parent56693179fb060f1c5c62e612469852daa472e725 (diff)
downloadswift-3e13fa1f097ec3d350e131e0826d8f97f700917b.zip
swift-3e13fa1f097ec3d350e131e0826d8f97f700917b.tar.bz2
Added extra parameter support to coverage script.
Diffstat (limited to 'BuildTools/Coverage')
-rwxr-xr-xBuildTools/Coverage/GenerateCoverageResults.sh9
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