mirror of
https://github.com/microsoft/mscclpp.git
synced 2026-05-12 17:26:04 +00:00
coverage update
This commit is contained in:
@@ -124,8 +124,8 @@ steps:
|
||||
workingDirectory: '$(System.DefaultWorkingDirectory)'
|
||||
|
||||
- task: Bash@3
|
||||
name: MpUnitTestsCoverageNonPerf
|
||||
displayName: Run mp_unit_tests (non-perf) with coverage
|
||||
name: TestsCoverageNonPerf
|
||||
displayName: Run unit_tests + mp_unit_tests (non-perf) with coverage
|
||||
inputs:
|
||||
targetType: 'inline'
|
||||
script: |
|
||||
@@ -141,11 +141,12 @@ steps:
|
||||
export PATH=/usr/local/mpi/bin:\$PATH; \
|
||||
cd /root/mscclpp; \
|
||||
export LD_LIBRARY_PATH=/root/mscclpp/build_coverage/lib:\$LD_LIBRARY_PATH; \
|
||||
./build_coverage/bin/unit_tests; \
|
||||
mpirun --allow-run-as-root -tag-output -np 2 ./build_coverage/bin/mp_unit_tests --exclude-perf-tests; \
|
||||
mpirun --allow-run-as-root -tag-output -np 4 ./build_coverage/bin/mp_unit_tests --exclude-perf-tests; \
|
||||
cd build_coverage; \
|
||||
lcov --directory . --capture --output-file coverage.info; \
|
||||
lcov --remove coverage.info '/usr/*' '*/test/*' '*/build/*' --output-file coverage.info; \
|
||||
lcov --directory . --capture --output-file coverage.info --ignore-errors mismatch; \
|
||||
lcov --remove coverage.info '/usr/*' '*/test/*' '*/build/*' --output-file coverage.info --ignore-errors unused; \
|
||||
lcov --list coverage.info"'
|
||||
kill $CHILD_PID
|
||||
workingDirectory: '$(System.DefaultWorkingDirectory)'
|
||||
|
||||
Reference in New Issue
Block a user