Skip to content

UnifiedBackendTest for PcieBackend etc. #196

@mhier

Description

@mhier

Currently, only the generic parts of the NumericAddressedBackend are tested with the UnifiedBackendTest (using an ExceptionDummyBackend). This tests the accessors, but not the backends based on the NumericAddressedBackend itself.

To test the PcieBackend with the UnifiedBackendTest, a new feature needs to be introduced in the mtcadummy kernel module, which allows to put the dummy device into an exception state similar to a broken Pcie connection. Ideally, a sysfs interface should be introduced (keep in mind, proc is outdated...), which presents a file "force_exception" file. Several different values written to the file could control when to throw an exception ("never", "read", "write", "open", "always" etc.). The file should be write-accessible by the same Unix group as the device node (might be necessary to change udev rule for this?).

Once this is done, it should be relatively straight forward to implement a UnifiedBackendTest for the PcieBackend.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions