Skip to content

Commit b726c49

Browse files
committed
iox-eclipse-iceoryx#521 separate timing_tests in codecov
Signed-off-by: Dietrich Krönke <dietrich.kroenke@apex.ai>
1 parent 825e60e commit b726c49

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

.codecov.yml

+4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,14 @@ coverage:
1717
default:
1818
target: 70%
1919
threshold: 2% # allow coverage to drop maximum by a defined value
20+
flags:
21+
- unittest
2022
patch:
2123
default:
2224
target: auto
2325
threshold: 2% # allow coverage to drop maximum by a defined value
26+
flags:
27+
- unittest
2428
changes: no
2529

2630
parsers:

.github/workflows/coverage_doc.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
# Softwares installed in ubuntu-18.04 instance
2525
# https://github.com/actions/virtual-environments/blob/master/images/linux/Ubuntu1804-README.md
2626
run: |
27-
sudo apt-get update
27+
sudo apt-get update
2828
sudo apt-get install -y libacl1-dev libncurses5-dev git cmake build-essential doxygen graphviz texlive-font-utils lcov
2929
sudo apt-get install -y plantuml texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-fonts-recommended
3030
@@ -37,10 +37,13 @@ jobs:
3737
run: |
3838
mkdir $GITHUB_WORKSPACE/lcov_results
3939
mkdir $GITHUB_WORKSPACE/lcov_results/unittest
40+
mkdir $GITHUB_WORKSPACE/lcov_results/unittest_timing
4041
# add flag to include coverage
4142
sudo $GITHUB_WORKSPACE/tools/add_test_users.sh
4243
$GITHUB_WORKSPACE/tools/iceoryx_build_test.sh build-strict build-all test-add-user -c unit
4344
cp -rf $GITHUB_WORKSPACE/build/lcov/ $GITHUB_WORKSPACE/lcov_results/unittest/
45+
$GITHUB_WORKSPACE/tools/iceoryx_build_test.sh build-strict build-all test-add-user -c unit-timing clean
46+
cp -rf $GITHUB_WORKSPACE/build/lcov/ $GITHUB_WORKSPACE/lcov_results/unittest_timing/
4447
4548
- name: Upload coverage to Codecov
4649
uses: codecov/codecov-action@v1
@@ -50,6 +53,14 @@ jobs:
5053
flags: unittests
5154
fail_ci_if_error: true
5255

56+
- name: Upload coverage to Codecov
57+
uses: codecov/codecov-action@v1
58+
with:
59+
file: ./lcov_results/unittest/lcov/iceoryx_lcov_result_unit-timing.info
60+
name: iceoryx
61+
flags: unittests_timing
62+
fail_ci_if_error: true
63+
5364
- name: Generate doxygen documentation
5465
run: |
5566
# add flag to include coverage

tools/run_tests.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

33
# Copyright (c) 2019-2020 by Robert Bosch GmbH. All rights reserved.
4+
# Copyright (c) 2021 by Apex.AI Inc. All rights reserved.
45
#
56
# Licensed under the Apache License, Version 2.0 (the "License");
67
# you may not use this file except in compliance with the License.
@@ -55,7 +56,7 @@ set_sanitizer_options() {
5556
if [[ ! -f $(which llvm-symbolizer) ]]
5657
then
5758
echo "WARNING : llvm-symbolizer not found. Stack trace may not be symbolized!"
58-
fi
59+
fi
5960
}
6061

6162
for arg in "$@"; do
@@ -70,7 +71,7 @@ for arg in "$@"; do
7071
"continue-on-error")
7172
CONTINUE_ON_ERROR=true
7273
;;
73-
"all" | "unit" | "integration")
74+
"all" | "unit" | "unit-timing" | "integration")
7475
TEST_SCOPE="$arg"
7576
;;
7677
*)
@@ -131,11 +132,12 @@ execute_test() {
131132
;;
132133
"unit")
133134
make module_tests
135+
;;
136+
"unit-timing")
134137
make timing_module_tests
135138
;;
136139
"integration")
137140
make integration_tests
138-
make timing_integration_tests
139141
;;
140142
"timingtest")
141143
make timing_module_tests

0 commit comments

Comments
 (0)