Skip to content

Commit

Permalink
feat: Integration test
Browse files Browse the repository at this point in the history
Signed-off-by: Brian McGinn <[email protected]>
  • Loading branch information
brian-intel committed Jan 12, 2024
1 parent c477f5a commit 084cd6f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
name: Integration Tests

on: workflow_dispatch
on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]

permissions:
contents: read

jobs:
build_OVMS_Profile_Launcher:
runs-on: [self-hosted, linux, x64, arc, integration]
runs-on: [self-hosted, linux, x64]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build ovms profile launcher
run: |
make build-profile-launcher
make run-smoke-tests
2 changes: 1 addition & 1 deletion benchmark-scripts/format_avc_mp4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ SAMPLE_MEDIA_DIR="$PWD"/../sample-media
docker run --network host --privileged --user root --ipc=host -e VIDEO_FILE="$1" -e DISPLAY=:0 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v "$SAMPLE_MEDIA_DIR"/:/vids \
-w /vids -it --rm intel/dlstreamer:2023.0.0-ubuntu22-gpu682-dpcpp \
-w /vids -itd --rm intel/dlstreamer:2023.0.0-ubuntu22-gpu682-dpcpp \
bash -c "if [ -f /vids/$result ]; then exit 1; else gst-launch-1.0 filesrc location=/vids/$1 ! qtdemux ! h264parse ! vaapih264dec ! vaapipostproc width=$WIDTH height=$HEIGHT ! videorate ! 'video/x-raw, framerate=$FPS/1' ! vaapih264enc ! h264parse ! mp4mux ! filesink location=/vids/$result; fi"

rm ../sample-media/"$1"
Expand Down

0 comments on commit 084cd6f

Please sign in to comment.