USB camera test

The USB Camera test verifies the functionality of a connected USB camera. You can run this test to verify compatibility with the system and readiness for applications requiring video input.

What the test covers
The usb_camera test verifies that a USB camera connected to the HUT is visible and functional. After your confirmation, the test captures images and attaches them to the result file for the Red Hat certification team’s review.
RHEL version supported
  • RHEL 9
  • RHEL 10
What the test does

The test performs the following functions:

  • Checks whether the HUT operating system detects the camera.
  • Checks whether the connected camera is accessible.
  • Validates the basic functionality by capturing a test image to ensure the camera is operational and capable of producing a visible output. This confirms the USB camera’s compatibility with the system and its readiness for applications that require video input.
Preparing for the test
  • Connect an external USB camera to a functional USB port on the HUT to ensure stable power and connection. Note

    Skip this step, if you have an integrated camera connected to your HUT.

  • Keep the lens uncovered and free of obstructions for a clear visual assessment.
  • Make sure no private or confidential information is visible in the camera’s view.
Running the test
  1. Choose either of the following methods to run the test on your HUT:
    1. Run the following command and select the appropriate USB test name from the list that displays:
      rhcert-run
    2. Run the following command by specifying the required test name. For example,
      rhcert-cli run --test=usb_camera
    3. In case of multiple cameras, you can also run the following command with a specific camera device. For example,
      rhcert-cli run --test=usb_camera --device=/dev/video0
  2. Select Yes, when the test prompts for approval. The test captures an image and saves it at the default location /var/rhcert/docs. Note

    Make sure the captured image isn’t private or confidential.

  3. Select the appropriate option as per your requirement:
    1. I have checked the image and it looks okay
    2. The image looks wrong, submitting image for help and review
    3. Delete the image and try again
    4. Delete the image and skip the test
  4. The test runs as per your selection and after successful completion you get a PASS message.
Run time
The test time varies according to the number of USB cameras being tested. Each USB camera takes around 1-2 minutes to test.

Additional factors impacting test time include user interactivity during the test, system performance, such as memory frequency and CPU. Any other mandatory or selected tests add to the overall run time.

Success Criteria
You are able to successfully capture images by using the new USB camera connected to your HUT.