diff --git a/testsuite/driver/testutil.py b/testsuite/driver/testutil.py index 9e0cdc5d49e6d0978712717f23211e3379aaebd7..a9f0e448958c2e04879fcdfe530761b7294fa26b 100644 --- a/testsuite/driver/testutil.py +++ b/testsuite/driver/testutil.py @@ -160,5 +160,8 @@ def shorten_metric_name(name: str) -> str: "compile_time/bytes allocated": "ghc/alloc", "compile_time/peak_megabytes_allocated": "ghc/peak", "compile_time/max_bytes_used": "ghc/max", + "binary_size/if_compression(1)": "size/1", + "binary_size/if_compression(2)": "size/2", + "binary_size/if_compression(3)": "size/3", } return dic.get(name, name) diff --git a/testsuite/tests/iface/all.T b/testsuite/tests/iface/all.T index b4388d541005a9bc46a5ef55faab185ae79be703..61da78de8ed3f6a47b12b233f7e95d52554a16da 100644 --- a/testsuite/tests/iface/all.T +++ b/testsuite/tests/iface/all.T @@ -1,23 +1,23 @@ test( 'if_faststring' - , [ stat_from_file('if_compression(1)', 5, 'NORMALSIZE') - , stat_from_file('if_compression(2)', 5, 'MEDIUMSIZE') - , stat_from_file('if_compression(3)', 5, 'FULLSIZE') + , [ stat_from_file('binary_size/if_compression(1)', 5, 'NORMALSIZE') + , stat_from_file('binary_size/if_compression(2)', 5, 'MEDIUMSIZE') + , stat_from_file('binary_size/if_compression(3)', 5, 'FULLSIZE') , extra_files(["Lib.hs"])] , compile_and_run , ['-package ghc']) test( 'if_name' - , [ stat_from_file('if_compression(1)', 5, 'NORMALSIZE') - , stat_from_file('if_compression(2)', 5, 'MEDIUMSIZE') - , stat_from_file('if_compression(3)', 5, 'FULLSIZE') + , [ stat_from_file('binary_size/if_compression(1)', 5, 'NORMALSIZE') + , stat_from_file('binary_size/if_compression(2)', 5, 'MEDIUMSIZE') + , stat_from_file('binary_size/if_compression(3)', 5, 'FULLSIZE') , extra_files(["Lib.hs", "IfaceSharingName.hs"])] , compile_and_run , ['-package ghc']) test( 'if_ifacetype' - , [ stat_from_file('if_compression(1)', 5, 'NORMALSIZE') - , stat_from_file('if_compression(2)', 5, 'MEDIUMSIZE') - , stat_from_file('if_compression(3)', 5, 'FULLSIZE') + , [ stat_from_file('binary_size/if_compression(1)', 5, 'NORMALSIZE') + , stat_from_file('binary_size/if_compression(2)', 5, 'MEDIUMSIZE') + , stat_from_file('binary_size/if_compression(3)', 5, 'FULLSIZE') , extra_files(["Lib.hs", "IfaceSharingIfaceType.hs"])] , compile_and_run , ['-package ghc'])