23
23
# this contains the frequency while on AMD it does not.
24
24
# Checkout the cpuid crate. In the future other
25
25
# differences may appear.
26
- COVERAGE_DICT = {"Intel" : 85.20 , "AMD" : 84.36 }
26
+ COVERAGE_DICT = {"Intel" : 85.20 , "AMD" : 84.36 , "ARM" : 82.70 }
27
27
PROC_MODEL = proc .proc_type ()
28
28
29
29
COVERAGE_MAX_DELTA = 0.05
@@ -78,10 +78,6 @@ def test_ensure_mod_tests():
78
78
79
79
80
80
@pytest .mark .timeout (400 )
81
- @pytest .mark .skipif (
82
- platform .machine () != "x86_64" ,
83
- reason = "kcov hangs on aarch64"
84
- )
85
81
def test_coverage (test_session_root_path , test_session_tmp_path ):
86
82
"""Test line coverage with kcov.
87
83
@@ -106,14 +102,17 @@ def test_coverage(test_session_root_path, test_session_tmp_path):
106
102
'_gen'
107
103
)
108
104
exclude_region = '\' mod tests {\' '
105
+ target = "{}-unknown-linux-musl" .format (platform .machine ())
109
106
110
107
cmd = (
111
- 'CARGO_TARGET_DIR={} cargo kcov --all '
112
- '--output {} -- '
108
+ 'RUSTFLAGS="{}" CARGO_TARGET_DIR={} cargo kcov --all '
109
+ '--target {} -- output {} -- '
113
110
'--exclude-pattern={} '
114
111
'--exclude-region={} --verify'
115
112
).format (
113
+ host .get_rustflags (),
116
114
os .path .join (test_session_root_path , CARGO_KCOV_REL_PATH ),
115
+ target ,
117
116
test_session_tmp_path ,
118
117
exclude_pattern ,
119
118
exclude_region
0 commit comments