diff options
Diffstat (limited to 'BuildTools/Coverage/GenerateCoverageResults.sh')
-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 |