Revision a763b81ee81810f5fa544165d5053bde478b2dbd authored by Konrad Werys on 28 November 2019, 13:47:50 UTC, committed by Konrad Werys on 28 November 2019, 13:47:50 UTC
1 parent e3f0532
Raw File
buildWithTestCoverage.sh
#!/bin/bash

git submodule update --init --recursive

cd ../..
mkdir tomato_test_coverage
cd tomato_test_coverage
rm -rf *
cmake ../tomato \
    -DCMAKE_CXX_FLAGS="--coverage" \
    -DCMAKE_INSTALL_PREFIX=install \
    -DCMAKE_CXX_STANDARD=98 \
    -DITK_DIR_HINTS="../ITK_install"

cmake --build . --config DEBUG --parallel 6
# cmake --build . --config DEBUG --target install

cd tests
./TomatoTests

cd ..
pwd
cp ../tomato/scriptsBuild/generateTestCoverageReport.sh generateTestCoverageReport.sh
ls
sh generateTestCoverageReport.sh
back to top