GVM User Suite
User tools for the GVM open source project.
|
This code is designed to serve as a test bed for determining if the device creation code is working as intended by all components. The following tests are implemented:
This test simply checks that the tty device is properly created and attached to the system. The pseudo-code that is executed to determine if this test is a success is:
This test determines if we can correctly select -1 for an invalid number for special device files. The pseudo-code that is executed to determine if this test is a success is:
This test determines if we can correctly select the major number for special device files. The pseudo-code that is executed to determine if this test is a success is:
These tests are specifically designed to test the Nvidia device creations.
This test determines if the device file mode we get for the nvidia device is structured correctly. The pseudo-code that is executed to determine if this test is a success is:
This code determines if we can open the nvidiactl file.
NOTE: Creates the file if the file does not exist.
This code determines if we can open the nvidia%d file.
NOTE: Creates the file if the file does not exist.