8000 Setup test case for coexisting object directories by oleurodecision · Pull Request #832 · gcovr/gcovr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Setup test case for coexisting object directories #832

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
26f12c7
Fix extract of test data to correct path
Spacetown Oct 15, 2023
e5c5b36
add coverage test when several object dirs are present
oleurodecision Apr 6, 2023
cc2d131
fixed source extension (.cpp instead of .cc, my bad!)
oleurodecision Sep 22, 2023
9d8266e
added more formats in reference
oleurodecision Sep 22, 2023
849647d
test_gocvr : modified RE_HTML_HEADER_DATE to match optional offset
oleurodecision Sep 22, 2023
f9044e6
Update CHANGELOG.rst
Spacetown Sep 27, 2023
6885b27
Apply suggestions from code review
Spacetown Sep 27, 2023
d61bf3a
Fix formatting
Spacetown Sep 27, 2023
f3d6fa7
added comments in candidate_tests.bash
oleurodecision Sep 28, 2023
a68e834
removed sample script
oleurodecision Oct 19, 2023
01d6c43
dedicated folders for all expected tests
oleurodecision Oct 19, 2023
e2ab23c
Run gcovr really in parallel.
Spacetown Oct 19, 2023
229e68e
fixing concurrency issues by call runs once
oleurodecision Oct 20, 2023
94d8bce
Sync output of make
Spacetown Oct 23, 2023
718b785
Remove run.%.done since it has no effect
Spacetown Oct 23, 2023
1da6161
Chain the generation because of parallel execution
Spacetown Oct 24, 2023
35f1256
Fix double execution
Spacetown Oct 31, 2023
e1c6f55
Generate JSON file not in parallel
Spacetown Oct 31, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
8000
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ Internal changes:
- Use ``build`` instead of calling ``setup.py`` directly. (:issue:`819`)
- Add nox session to import reference file from pipeline. (:issue:`831`)
- Add support for ``clang-15`` in our test suite and fix test with write protection under Mac OS. (:issue:`853`)
- Add test for parallel execution of multiple gcovr instances. (:issue:`832`)

6.0 (08 March 2023)
-------------------
Expand Down
2 changes: 1 addition & 1 deletion gcovr/tests/add_coverages/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ coverage_foo.json:
$(GCOVR) -d --json-pretty -o $@

# Just use --json-pretty and --json and pass the output filename directly.
coverage_bar.json:
coverage_bar.json: coverage_foo.json
./testcase_bar
$(GCOVR) -d --json-pretty --json $@

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cmake_minimum_required(VERSION 3.14)

project(gcovr_parallel_calls LANGUAGES CXX)

set(CMAKE_CXX_FLAGS_PROFILE --coverage)

add_executable(parallel_call)

target_sources (parallel_call
PRIVATE
source/fn_00.cpp
source/fn_01.cpp
source/fn_02.cpp
source/fn_03.cpp
source/fn_04.cpp
source/fn_05.cpp
source/fn_06.cpp
source/fn_07.cpp
source/fn_08.cpp
source/fn_09.cpp
source/main.cpp)

if(ODD)
target_compile_definitions (parallel_call PRIVATE ODD)
endif()