Debian Codegraph @

Lib/test/libregrtest/pgo.py

raw
1 # Set of tests run by default if --pgo is specified. The tests below were
2 # chosen based on the following criteria: either they exercise a commonly used
3 # C extension module or type, or they run some relatively typical Python code.
4 # Long running tests should be avoided because the PGO instrumented executable
5 # runs slowly.
6 PGO_TESTS = [
7 'test_array',
8 'test_base64',
9 'test_binascii',
10 'test_binop',
11 'test_bisect',
12 'test_bytes',
13 'test_bz2',
14 'test_cmath',
15 'test_codecs',
16 'test_collections',
17 'test_complex',
18 'test_dataclasses',
19 'test_datetime',
20 'test_decimal',
21 'test_difflib',
22 'test_float',
23 'test_fstring',
24 'test_functools',
25 'test_generators',
26 'test_hashlib',
27 'test_heapq',
28 'test_int',
29 'test_itertools',
30 'test_json',
31 'test_long',
32 'test_lzma',
33 'test_math',
34 'test_memoryview',
35 'test_operator',
36 'test_ordered_dict',
37 'test_patma',
38 'test_pickle',
39 'test_pprint',
40 'test_re',
41 'test_set',
42 'test_sqlite3',
43 'test_statistics',
44 'test_str',
45 'test_struct',
46 'test_tabnanny',
47 'test_time',
48 'test_xml_etree',
49 'test_xml_etree_c',
50 ]
51
52 def setup_pgo_tests(cmdline_args, pgo_extended: bool) -> None:
53 if not cmdline_args and not pgo_extended:
54 # run default set of tests for PGO training
55 cmdline_args[:] = PGO_TESTS[:]