Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 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', |
Steve Dower | e1b9002 | 2019-07-28 18:01:12 -0700 | [diff] [blame] | 13 | 'test_bz2', |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 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_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 Dower | e1b9002 | 2019-07-28 18:01:12 -0700 | [diff] [blame] | 33 | 'test_lzma', |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 34 | '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 Dower | e1b9002 | 2019-07-28 18:01:12 -0700 | [diff] [blame] | 42 | 'test_sqlite', |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 43 | '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 | |
| 52 | def 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[:] |