Skip to content

tests: add mock tests for Dera dera plugin - #4448

Merged
igaw merged 1 commit into
linux-nvme:masterfrom
rahadbhuiya:test/dera-mock-tests
Nov 19, 2026
Merged

igaw merged 1 commit into
linux-nvme:masterfrom
rahadbhuiya:test/dera-mock-tests

Conversation

@rahadbhuiya

Copy link
Copy Markdown
Contributor

Add hardware-free mock tests for the Dera vendor plugin:

  • TestDeraSmartLog: Test smart-log-add command against simulated vendor-specific additional SMART log (LID 0xC0) and device status (admin opcode 0xC0).
  • Verify normal device status formatting and telemetry parsing (capacitor status/voltage, NAND erase/program error counters, power level/consumption, PCIe voltage thresholds, and firmware version).
  • Verify rebuilding device status reporting with percentage completion (Quick Rebuilding, Full Rebuilding, Raw Rebuilding).
  • Verify non-rebuilding device status strings (Card Read Only, etc.) and out-of-range unknown status handling.
  • Verify command alias stat invocation produces identical output.
  • Verify failure reporting when either the Get Log Page command or the device status admin command fails.

Addresses #4321
Signed-off-by: Rahad Bhuiya rahadbhuiya2021@gmail.com

Add hardware-free mock tests for the Dera vendor plugin:
- TestDeraSmartLog: Test smart-log-add command against simulated
  vendor-specific additional SMART log (LID 0xC0) and device status
  (admin opcode 0xC0). Verify normal device status formatting, rebuilding
  device status reporting with percentage completion, non-rebuilding
  status strings, out-of-range unknown status handling, detailed telemetry
  parsing (capacitor, NAND errors, power, voltages), command alias 'stat'
  invocation, and failure reporting on both Get Log Page and device status
  admin command errors.

Addresses linux-nvme#4321
Signed-off-by: Rahad Bhuiya <rahadbhuiya2021@gmail.com>
@igaw
igaw merged commit f8909aa into linux-nvme:master Nov 19, 2026
38 checks passed
@igaw

igaw commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants