dev-util/amdsmi: define phases in execution order

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-12-01 01:18:42 +00:00
parent 2f010b7a0f
commit 6cf83f3095
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -84,6 +84,15 @@ src_configure() {
cmake_src_configure
}
src_test() {
# GPU access in amdsmitstReadOnly.TestSysInfoRead and amdsmitstReadOnly.TestIdInfoRead
addwrite /dev/dri/renderD128
# Few tests fail on ASUS GZ302E: no metrics from kernel?
GTEST_FILTER="-amdsmitstReadOnly.TempRead:amdsmitstReadOnly.TestFrequenciesRead" \
"${BUILD_DIR}/tests/amd_smi_test/amdsmitst" || die "Test failed"
}
src_install() {
cmake_src_install
@ -99,12 +108,3 @@ src_install() {
rm -rf "${ED}"/usr/share/amd_smi "${ED}"/usr/libexec/amdsmi_cli || die
}
src_test() {
# GPU access in amdsmitstReadOnly.TestSysInfoRead and amdsmitstReadOnly.TestIdInfoRead
addwrite /dev/dri/renderD128
# Few tests fail on ASUS GZ302E: no metrics from kernel?
GTEST_FILTER="-amdsmitstReadOnly.TempRead:amdsmitstReadOnly.TestFrequenciesRead" \
"${BUILD_DIR}/tests/amd_smi_test/amdsmitst" || die "Test failed"
}