blob: 379ff05fb955a5f5d7c743d4c38d900189be93a5 [file] [log] [blame]
Neil Schemenauer4e16a4a2019-07-22 12:54:25 -07001# 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.
6PGO_TESTS = [
7 'test_array',
8 'test_base64',
9 'test_binascii',
10 'test_binop',
11 'test_bisect',
12 'test_bytes',
Steve Dowere1b90022019-07-28 18:01:12 -070013 'test_bz2',
Neil Schemenauer4e16a4a2019-07-22 12:54:25 -070014 '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_embed',
23 'test_float',
24 'test_fstring',
25 'test_functools',
26 'test_generators',
27 'test_hashlib',
28 'test_heapq',
29 'test_int',
30 'test_itertools',
31 'test_json',
32 'test_long',
Steve Dowere1b90022019-07-28 18:01:12 -070033 'test_lzma',
Neil Schemenauer4e16a4a2019-07-22 12:54:25 -070034 'test_math',
35 'test_memoryview',
36 'test_operator',
37 'test_ordered_dict',
38 'test_pickle',
39 'test_pprint',
40 'test_re',
41 'test_set',
Steve Dowere1b90022019-07-28 18:01:12 -070042 'test_sqlite',
Neil Schemenauer4e16a4a2019-07-22 12:54:25 -070043 'test_statistics',
44 'test_struct',
45 'test_tabnanny',
46 'test_time',
47 'test_unicode',
48 'test_xml_etree',
49 'test_xml_etree_c',
50]
51
52def setup_pgo_tests(ns):
53 if not ns.args and not ns.pgo_extended:
54 # run default set of tests for PGO training
55 ns.args = PGO_TESTS[:]