summaryrefslogtreecommitdiff
path: root/scripts/build_and_run_tests.sh
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-10-28 19:22:26 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-10-29 02:33:05 +0100
commit6ae7e08c5211fc01155295df4f706dad1836cb80 (patch)
treeff900f9b143da33aba062f5d702bc34518a4badf /scripts/build_and_run_tests.sh
parent3c1889fbd0d7b96aae16f3479ac8aae70a7e15f7 (diff)
downloadbiboumi-6ae7e08c5211fc01155295df4f706dad1836cb80.tar.gz
biboumi-6ae7e08c5211fc01155295df4f706dad1836cb80.tar.bz2
biboumi-6ae7e08c5211fc01155295df4f706dad1836cb80.tar.xz
biboumi-6ae7e08c5211fc01155295df4f706dad1836cb80.zip
Add code coverage support
make coverage runs the test_suite and generates a report
Diffstat (limited to 'scripts/build_and_run_tests.sh')
-rwxr-xr-xscripts/build_and_run_tests.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/build_and_run_tests.sh b/scripts/build_and_run_tests.sh
index 738ef52..43d32c1 100755
--- a/scripts/build_and_run_tests.sh
+++ b/scripts/build_and_run_tests.sh
@@ -2,6 +2,7 @@
set -e -x
-cmake .. $@
+cmake .. -DCMAKE_BUILD_TYPE=Debug $@
make -j$(nproc) biboumi test_suite
make -j$(nproc) check
+make -j$(nproc) coverage