Skip to content

Commit

Permalink
bpo-45847: Port test modules to PY_STDLIB_MOD (pythonGH-29660)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiran authored and remykarem committed Dec 7, 2021
1 parent cf325fa commit 6ea686e
Show file tree
Hide file tree
Showing 5 changed files with 380 additions and 226 deletions.
12 changes: 7 additions & 5 deletions Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,13 @@ OPENSSL_LIBS=@OPENSSL_LIBS@
OPENSSL_LDFLAGS=@OPENSSL_LDFLAGS@
OPENSSL_RPATH=@OPENSSL_RPATH@

# Module compiler and linker flags
# yes: module is available
# missing: build dependency is missing
# disabled: module is disabled
# n/a: module is not available on the current platform
# Module state, compiler flags and linker flags
# Empty CFLAGS and LDFLAGS are omitted.
# states:
# * yes: module is available
# * missing: build dependency is missing
# * disabled: module is disabled
# * n/a: module is not available on the current platform
# MODULE_EGG=yes # yes, missing, disabled, n/a
# MODULE_EGG_CFLAGS=
# MODULE_EGG_LDFLAGS=
Expand Down
15 changes: 15 additions & 0 deletions Modules/Setup.stdlib.in
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,18 @@

# _scproxy needs SystemConfiguration and CoreFoundation framework
@MODULE__SCPROXY_TRUE@_scproxy _scproxy.c


############################################################################
# Test modules

@MODULE__XXTESTFUZZ_TRUE@_xxtestfuzz _xxtestfuzz/_xxtestfuzz.c _xxtestfuzz/fuzzer.c
@MODULE__TESTBUFFER_TRUE@_testbuffer _testbuffer.c
@MODULE__TESTINTERNALCAPI_TRUE@_testinternalcapi _testinternalcapi.c

# Some testing modules MUST be built as shared libraries.
*shared*
@MODULE__TESTCAPI_TRUE@_testcapi _testcapimodule.c
@MODULE__TESTIMPORTMULTIPLE_TRUE@_testimportmultiple _testimportmultiple.c
@MODULE__TESTMULTIPHASE_TRUE@_testmultiphase _testmultiphase.c
@MODULE__CTYPES_TEST_TRUE@_ctypes_test _ctypes/_ctypes_test.c
Loading

0 comments on commit 6ea686e

Please sign in to comment.