8000 Update the test driver to share the reference data between the different compiler versions by Spacetown · Pull Request #556 · gcovr/gcovr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update the test driver to share the reference data between the different compiler versions #556

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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Internal changes:
- Ensure that shell files are always checked out with LF linebreaks. (:issue:`538`)
- Add test for compiler option ``-fprofile-abs-path``. (:issue:`521`)
- Ensure that shell files are always saved with LF linebreaks. (:issue:`547`)
- Update the test driver to share the reference data between the different compiler versions. (:issue:`556`)

5.0 (11 June 2021)
------------------
Expand Down
6 changes: 6 additions & 0 deletions doc/examples/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,19 @@ def __str__(self):
return os.path.basename(self.baseline)


def is_compiler(actual: str, *expected: str) -> bool:
return any(compiler in actual for compiler in expected)


def find_test_cases():
if sys.platform.startswith('win'):
return
for script in glob.glob(datadir + '/*.sh'):
basename = os.path.basename(script)
name, _ = os.path.splitext(basename)
for ext in 'txt xml csv json html'.split():
if ext == "html" and is_compiler(os.getenv("CC"), "gcc-5", "gcc-6"):
continue
baseline = '{datadir}/{name}.{ext}'.format(
datadir=datadir,
name=name,
Expand Down

This file was deleted.

7068

This file was deleted.

Loading
0