summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-08-14 09:13:11 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-08-16 22:13:28 (GMT)
commitd3dad1ccfe1741a5a5f2c610d995b5c8cc603844 (patch)
treeee78712720803addda4a7c3f2e1bc50b402c8257 /tools/coverage/GenerateCoverageResults.sh
parent8e53a2df443901f786932942759e5fe7b632852e (diff)
downloadswift-contrib-d3dad1ccfe1741a5a5f2c610d995b5c8cc603844.zip
swift-contrib-d3dad1ccfe1741a5a5f2c610d995b5c8cc603844.tar.bz2
Move coverage tools to BuildTools dir.
Diffstat (limited to 'tools/coverage/GenerateCoverageResults.sh')
-rwxr-xr-xtools/coverage/GenerateCoverageResults.sh42
1 files changed, 0 insertions, 42 deletions
diff --git a/tools/coverage/GenerateCoverageResults.sh b/tools/coverage/GenerateCoverageResults.sh
deleted file mode 100755
index f006e4b..0000000
--- a/tools/coverage/GenerateCoverageResults.sh
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/sh
-
-# This script assumes that it is run from the toplevel directory, that
-# the 'configure' script has been called with '--enable-coverage'
-
-if [ ! -f config.status ]; then
- echo "Please configure your build with --enable-coverage and rebuild."
- exit -1
-fi
-grep -q "\-\-enable-coverage" config.status
-if [ "$?" != 0 ]; then
- echo "Please configure your build with --enable-coverage and rebuild."
- exit -1
-fi
-
-SOURCE_DIR=.
-SCRIPT_DIR=tools/coverage
-LCOVDIR=3rdParty/LCov
-
-RESULTS_DIR=tools/coverage/results
-OUTPUT_DIR=$RESULTS_DIR/coverage-`git log --pretty=format:%ct-%h | head -n 1`
-
-make -C $SOURCE_DIR
-if [ ! -f $OUTPUT_DIR ]; then
- mkdir -p $OUTPUT_DIR
-fi
-
-# Reset counters
-$LCOVDIR/lcov --zerocounters --directory $SOURCE_DIR
-
-# All tests
-make -C $SOURCE_DIR test
-$LCOVDIR/lcov --capture --directory $SOURCE_DIR -b $SOURCE_DIR --output-file $OUTPUT_DIR/all.info --test-name all
-cp $OUTPUT_DIR/all.info $OUTPUT_DIR/all.info.orig
-$SCRIPT_DIR/FilterLCovData.py $OUTPUT_DIR/all.info
-
-# Generate HTML
-$LCOVDIR/gendesc -o $OUTPUT_DIR/descriptions $SCRIPT_DIR/descriptions.txt
-$LCOVDIR/genhtml --no-function-coverage --title "Swift Coverage" --output-directory $OUTPUT_DIR $OUTPUT_DIR/all.info
-
-# Generate summary
-$SCRIPT_DIR/GenerateSummary.py $OUTPUT_DIR/all.info $OUTPUT_DIR/summary