Test Driver

Test Driver is a very simple hardware emulation driver that is used for testing the API and software. It has the following limitations:

  1. ONI_OPT_RUNNING does nothing.

  2. It only supports a device table with containing devices with a fixed read/write size

  3. The driver is single threaded and synchronous with API function calls and therefore quite limited. This means that the asynchronous nature of real hardware is not emulated or tested by this driver.

  4. ONI_OPT_BLOCKREADSIZE must be set to an integer multiple of the frame size, which is 28 bytes.

Its only dependency is the C standard library.

Building the library

Linux

make                # Build without debug symbols
sudo make install   # Install in /usr/local and run ldconfig to update library cache
make help           # list all make options

Windows

Run the project in Visual Studio. It can be included as a dependency in other projects.