一键导入
amdsmi-test-runner
Run C++ and Python tests for amd-smi. Use when: running tests, verifying test results, checking test coverage, pre-review test validation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run C++ and Python tests for amd-smi. Use when: running tests, verifying test results, checking test coverage, pre-review test validation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | amdsmi-test-runner |
| description | Run C++ and Python tests for amd-smi. Use when: running tests, verifying test results, checking test coverage, pre-review test validation. |
How to build and run all test suites for amd-smi. Assumes the amdsmi-build-install skill has already been executed (build exists and is installed).
amdsmi-build-install skill first)build/ directory exists with compiled test binariesIf not already built (the build skill builds with -DBUILD_TESTS=ON):
cd build && make -j$(nproc) amdsmitst
cd build/tests
source ../../tests/amd_smi_test/amdsmitst.exclude
source ../../tests/amd_smi_test/detect_asic_filter.sh
./amdsmitst --gtest_filter="-${GTEST_EXCLUDE}"
| Output | Meaning | Severity |
|---|---|---|
[ PASSED ] | Test passed | — |
[ FAILED ] | Test failed | ❌ BLOCKING |
[ SKIPPED ] | Test skipped (blacklisted) | — |
| Binary not found | Build didn't produce test binary | ⚠️ IMPORTANT |
cd tests/python_unittest
python3 -m pytest -v
# System install
python3 -c "import amdsmi; print(amdsmi.__version__)"
# Verify CLI works
amd-smi version
amd-smi static
Tests must work in both install contexts:
| Context | How to Verify |
|---|---|
| System install (RPM/DEB) | Default after amdsmi-build-install |
cd build/tests && \
source ../../tests/amd_smi_test/amdsmitst.exclude && \
source ../../tests/amd_smi_test/detect_asic_filter.sh && \
./amdsmitst --gtest_filter="-${GTEST_EXCLUDE}" && \
cd ../../tests/python_unittest && python3 -m pytest -v
On success, report:
On failure:
Check and generate changelog entries for amd-smi. Use when: reviewing PRs for changelog updates, generating release notes, checking CHANGELOG.md compliance.
Use when writing or restructuring git commits or opening/updating a pull request for amd-smi — composing commit titles, commit message bodies, PR titles, or PR descriptions. Defines the Conventional Commits `type(amdsmi):` title convention enforced by the Systems PR Bot, the rocm-systems PR template sections, the unit-test and JIRA/ISSUE-reference gates, brevity caps, and the rule that JIRA tickets appear only in the PR JIRA ID section, never in code comments or commit bodies.
Use when finishing an amd-smi development branch — consolidating commits into logical groups with clean messages AND deciding how to integrate the work (merge to develop, push and open PR, keep as-is, or discard). Covers commit restructuring plus the merge/PR/cleanup workflow.
Use when an approved spec exists and you need a bite-sized, file-level implementation plan before any code is written. Produces a plan ready for executing-plans or subagent dispatch.
Build and install RDC from source. Use when: building locally, installing before tests, pre-review build verification, build + install + verify. Requires GRPC_ROOT to be set.
Use when writing, planning, or improving unit tests for low-level transport or systems code — especially when reasoning about branch coverage, test gaps, identifying which uncovered paths are worth pursuing, or deciding when a feature's test suite is ready to merge.