GVM User Suite
User tools for the GVM open source project.
|
In order to properly test the device's interaction with the RM Core on the server. The components of the RM API that we implemented in the GVM suite are the following:
These API implementations, allow us to implement the vast majority of the GVM user suite required to provide mediated devices to individuals using the GVM management layers.
To ensure we can correctly handle the entire system, we developed several tests to ensure all components of the RM API which we use functions correctly:
These sections determines if the version check of the RM Core is handled correctly.
This code determines if a correct RM Version number works on the system. The corresponding pseudo-code is as follows:
This code determines if an incorrect RM Version number works on the system. The corresponding pseudo-code is as follows:
This code determines if an ignored RM Version number works on the system. The corresponding pseudo-code is as follows:
These tests determine if we can correctly allocate client ids.
This code determines if we can correctly allocate a device client id for a control file. The corresponding pseudo-code is as follows:
This code determines if we can correctly fail given an invalid FD. The corresponding pseudo-code is as follows:
This code determines if we can correctly fail given an bad FD. The corresponding pseudo-code is as follows:
This code determines if we can correctly fail given an bad argument. The corresponding pseudo-code is as follows:
These tests verify we can correctly free the client ids when necessary.
This code determines if we can correctly deallocate a device client id for a control file. The corresponding pseudo-code is as follows:
This code determines if we can correctly fail given an invalid FD. The corresponding pseudo-code is as follows:
This code determines if we properly handle if a resource will be doubly deallocated. The corresponding pseudo-code is:
These tests verify we can correctly control a particular gpu object.
This code ensures we can get the probed device ids that are present in the NVIDIA kernel module correctly in the user program. The corresponding pseudo-code is: