File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change 99
99
}
100
100
101
101
102
+ # Tests to run during PGO profiling.
103
+ #
104
+ # This set was copied from test.libregrtest.pgo in the CPython source
105
+ # distribution.
106
+ PGO_TESTS = {
107
+ "test_array" ,
108
+ "test_base64" ,
109
+ "test_binascii" ,
110
+ "test_binop" ,
111
+ "test_bisect" ,
112
+ "test_bytes" ,
113
+ "test_bz2" ,
114
+ "test_cmath" ,
115
+ "test_codecs" ,
116
+ "test_collections" ,
117
+ "test_complex" ,
118
+ "test_dataclasses" ,
119
+ "test_datetime" ,
120
+ "test_decimal" ,
121
+ "test_difflib" ,
122
+ "test_embed" ,
123
+ "test_float" ,
124
+ "test_fstring" ,
125
+ "test_functools" ,
126
+ "test_generators" ,
127
+ "test_hashlib" ,
128
+ "test_heapq" ,
129
+ "test_int" ,
130
+ "test_itertools" ,
131
+ "test_json" ,
132
+ "test_long" ,
133
+ "test_lzma" ,
134
+ "test_math" ,
135
+ "test_memoryview" ,
136
+ "test_operator" ,
137
+ "test_ordered_dict" ,
138
+ "test_pickle" ,
139
+ "test_pprint" ,
140
+ "test_re" ,
141
+ "test_set" ,
142
+ "test_sqlite" ,
143
+ "test_statistics" ,
144
+ "test_struct" ,
145
+ "test_tabnanny" ,
146
+ "test_time" ,
147
+ "test_unicode" ,
148
+ "test_xml_etree" ,
149
+ "test_xml_etree_c" ,
150
+ }
151
+
152
+
102
153
def log (msg ):
103
154
if isinstance (msg , bytes ):
104
155
msg_str = msg .decode ("utf-8" , "replace" )
@@ -1889,6 +1940,10 @@ def build_cpython(
1889
1940
tests = [l .strip () for l in tests .decode ("utf-8" ).splitlines () if l .strip ()]
1890
1941
1891
1942
for test in sorted (tests ):
1943
+ # Only look at specific tests, to keep runtime down.
1944
+ if test not in PGO_TESTS :
1945
+ continue
1946
+
1892
1947
# test_regrtest hangs for some reason. It is the test for the
1893
1948
# test harness itself and isn't exercising useful code. Skip it.
1894
1949
if test == "test_regrtest" :
You can’t perform that action at this time.
0 commit comments