Skip to content

Run C API tests as part of setup.py on Linux - #355

Closed
diptorupd wants to merge 2 commits into
IntelPython:masterfrom
diptorupd:fix/C_API_test
Closed

diptorupd wants to merge 2 commits into
IntelPython:masterfrom
diptorupd:fix/C_API_test

Conversation

@diptorupd

@diptorupd diptorupd commented Apr 2, 2021 •

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread scripts/build_backend.py
]
subprocess.check_call(cmake_args, stderr=subprocess.STDOUT, shell=False)
subprocess.check_call(["make", "V=1", "-j", "4"])
subprocess.check_call(["make", "check"])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note: check_call raises an exception if the subprocess returns with a non-zero return code, so any failures in C-API test suite will fail the Python build as desired.

@oleksandr-pavlyk

oleksandr-pavlyk commented Apr 2, 2021 •

Copy link
Copy Markdown
Contributor

I think it is a good idea to add support for CLI option to develop command that could override building/running of C-API tests. Otherwise Python-API development becomes too time-consuming.

Perhaps something via env-variables, like used to control run of CODE_COVERAGE = os.environ.get("CODE_COVERAGE")

@diptorupd diptorupd changed the title Fixes a bug in c api tests and runs c api tests as part of setup.py … Run C API tests as part of setup.py on Linux Apr 2, 2021
@diptorupd diptorupd mentioned this pull request Apr 5, 2021
@diptorupd

Copy link
Copy Markdown
Contributor Author

Closing this PR as #109 and #90 are already trying to address the same issue.

@diptorupd diptorupd closed this May 22, 2021
@diptorupd
diptorupd deleted the fix/C_API_test branch May 22, 2021 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build gtest Related to running gtest in C API backend infrastructure tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants