]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-94751: Install, import and run the test C++ extension (MVP) (GH-94754)
authorPetr Viktorin <encukou@gmail.com>
Tue, 12 Jul 2022 15:06:05 +0000 (17:06 +0200)
committerGitHub <noreply@github.com>
Tue, 12 Jul 2022 15:06:05 +0000 (17:06 +0200)
commitec5db539b9df99c8b96149768dc2e8598dce2afa
treecd824cac3ad450310b9c756e6a7f728453b830d5
parentcfafd3adf8c3bb73881081f721e77ebfc94431ea
gh-94751: Install, import and run the test C++ extension (MVP) (GH-94754)

This is a quick-and-dirty way to run the C++ tests.
It can definitely be improved in the future, but it should fail when things go wrong.

- Run test functions on import (yes, this can definitely be improved)
- Fudge setuptools metadata (name & version) to make the extension installable
- Install and import the extension in test_cppext
Lib/test/_testcppext.cpp
Lib/test/setup_testcppext.py
Lib/test/test_cppext.py