Skip to content

Commit f36c69a

Browse files
authored
bpo-45847: Port test modules to PY_STDLIB_MOD (GH-29660)
1 parent fdcc46d commit f36c69a

File tree

5 files changed

+380
-226
lines changed

5 files changed

+380
-226
lines changed

Makefile.pre.in

+7-5
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,13 @@ OPENSSL_LIBS=@OPENSSL_LIBS@
211211
OPENSSL_LDFLAGS=@OPENSSL_LDFLAGS@
212212
OPENSSL_RPATH=@OPENSSL_RPATH@
213213

214-
# Module compiler and linker flags
215-
# yes: module is available
216-
# missing: build dependency is missing
217-
# disabled: module is disabled
218-
# n/a: module is not available on the current platform
214+
# Module state, compiler flags and linker flags
215+
# Empty CFLAGS and LDFLAGS are omitted.
216+
# states:
217+
# * yes: module is available
218+
# * missing: build dependency is missing
219+
# * disabled: module is disabled
220+
# * n/a: module is not available on the current platform
219221
# MODULE_EGG=yes # yes, missing, disabled, n/a
220222
# MODULE_EGG_CFLAGS=
221223
# MODULE_EGG_LDFLAGS=

Modules/Setup.stdlib.in

+15
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,18 @@
7676

7777
# _scproxy needs SystemConfiguration and CoreFoundation framework
7878
@MODULE__SCPROXY_TRUE@_scproxy _scproxy.c
79+
80+
81+
############################################################################
82+
# Test modules
83+
84+
@MODULE__XXTESTFUZZ_TRUE@_xxtestfuzz _xxtestfuzz/_xxtestfuzz.c _xxtestfuzz/fuzzer.c
85+
@MODULE__TESTBUFFER_TRUE@_testbuffer _testbuffer.c
86+
@MODULE__TESTINTERNALCAPI_TRUE@_testinternalcapi _testinternalcapi.c
87+
88+
# Some testing modules MUST be built as shared libraries.
89+
*shared*
90+
@MODULE__TESTCAPI_TRUE@_testcapi _testcapimodule.c
91+
@MODULE__TESTIMPORTMULTIPLE_TRUE@_testimportmultiple _testimportmultiple.c
92+
@MODULE__TESTMULTIPHASE_TRUE@_testmultiphase _testmultiphase.c
93+
@MODULE__CTYPES_TEST_TRUE@_ctypes_test _ctypes/_ctypes_test.c

0 commit comments

Comments
 (0)