Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: increase memory size for webcam viewing VM #28

Merged
merged 6 commits into from
Oct 21, 2024

Commits on Jul 19, 2024

  1. tests: fail earlier if /dev/video0 doesn't exists

    Handle timeout waiting for the device as test failure earlier.
    marmarek committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    8f1c8a4 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2024

  1. tests: restructure webcam test

    Do not chain screenshare -> webcam services, test one thing at a time.
    Use testvideosrc -> v4l2sink gstreamer pipeline as a simple source for
    the webcam service.
    marmarek committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    65e79c9 View commit details
    Browse the repository at this point in the history
  2. tests: rename "screenshare" to "source"

    It better matches the function, since "screenshare" service is not used
    in the webcam service anymore.
    marmarek committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    e42578c View commit details
    Browse the repository at this point in the history
  3. tests: use 'vivid' module as a source for webcam test

    vivid is an upstream v4l2 device for userspace testing, so it should fit
    perfectly for this case. It appears to be more reliable than
    v4l2loopback. The only issue is the produced video is dynamic (it has
    timestamp rendered on it), so capturing it at source and destination
    leads to a slightly different results. I haven't found any option to
    disable timestamp, so apply a mask before comparing images.
    
    Additionally, compare I420 images, to avoid (loosy) conversion to RGB
    and back.
    marmarek committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    f205b3d View commit details
    Browse the repository at this point in the history
  4. webcam: ignore fractional FPS

    Those aren't supported here, so ignore them explicitly, instead of
    falling back into noisy catch-all statement.
    marmarek committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    69a1bcb View commit details
    Browse the repository at this point in the history
  5. tests: skip webcam test if vivid module can't be loaded

    It's blacklisted on Whonix, so skip the test there.
    marmarek committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    42601f7 View commit details
    Browse the repository at this point in the history