14.1 在 Windows 上运行测试套件
在 Windows 上,使用 PCBuild
文件夹中的 rt.bat
脚本。例如,如何在 x64 体系结构上执行快速模式来测试调试配置:
> cd PCbuild
> rt.bat -q -d -x64
== CPython 3.9
== Windows-10-10.0.17134-SP0 little-endian
== cwd: C:\repos\cpython\build\test_python_2784
== CPU count: 2
== encodings: locale=cp1252, FS=utf-8
Run tests sequentially
0:00:00 [ 1/420] test_grammar
0:00:00 [ 2/420] test_opcodes
0:00:00 [ 3/420] test_dict
0:00:00 [ 4/420] test_builtin
...
要针对 Release 配置运行回归测试套件,请从命令行中删除 -d 标志。
Last updated