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

Add integration tests #422

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

joaoantoniocardoso
Copy link
Collaborator

@joaoantoniocardoso joaoantoniocardoso commented Jul 1, 2024

First step towards #378

How to test locally

1. Install v4l2loopback:

  • Ubuntu: sudo apt-get install -y v4l2loopback-dkms
  • Arch: sudo pacman -S v4l2loopback-dkms v4l2loopback-utils

2. Add a v4l2loopback device:

sudo modprobe v4l2loopback video_nr=42 && \
sudo v4l2loopback-ctl delete /dev/video42 && \
sudo v4l2loopback-ctl add --exclusive-caps 0 --max-openers 2 --name potato --verbose /dev/video42

3. Get qrtimestamp plugins:

wget -q https://github.com/patrickelectric/qrtimestamp-gst/releases/download/0.1.0/libgstqrtimestamp-x86_64.so.tar -O - | tar -x
export GST_PLUGIN_PATH="$PWD:$GST_PLUGIN_PATH"

4. Run the test

cargo test --release --locked --test v4l2_latency_and_jitter

5. Clean up

sudo modprobe -r v4l2loopback

@joaoantoniocardoso joaoantoniocardoso force-pushed the add_integration_tests branch 5 times, most recently from 76d8a58 to 1677dd8 Compare July 18, 2024 20:36
@joaoantoniocardoso joaoantoniocardoso force-pushed the add_integration_tests branch 2 times, most recently from 21006ab to 4eda092 Compare July 22, 2024 19:20
@joaoantoniocardoso joaoantoniocardoso marked this pull request as ready for review July 23, 2024 11:46
@joaoantoniocardoso joaoantoniocardoso force-pushed the add_integration_tests branch 18 times, most recently from c5f0d3f to a2506c8 Compare October 1, 2024 11:44
@joaoantoniocardoso joaoantoniocardoso force-pushed the add_integration_tests branch 2 times, most recently from 07c8b16 to 8b7b654 Compare October 1, 2024 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant