diff options
| author | Olivier Tilloy <olivier.tilloy@canonical.com> | 2018-07-26 12:51:00 +0200 |
|---|---|---|
| committer | Olivier Tilloy <olivier.tilloy@canonical.com> | 2018-07-26 12:51:00 +0200 |
| commit | 35ce480bb46af893b7da0a9869292b39221ec67b (patch) | |
| tree | 9ec87ba02d15c6f7f5b7bcfabb6557a677fab4b5 | |
Initial test snap that exercises the slots exposed by chromium-ffmpeg.
| -rwxr-xr-x | chromium-ffmpeg-test.sh | 11 | ||||
| -rw-r--r-- | snap/snapcraft.yaml | 34 |
2 files changed, 45 insertions, 0 deletions
diff --git a/chromium-ffmpeg-test.sh b/chromium-ffmpeg-test.sh new file mode 100755 index 0000000..b9e00a8 --- /dev/null +++ b/chromium-ffmpeg-test.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -eux + +VERSIONS="91124 91696" +for V in $VERSIONS; do + LIBFFMPEGSO=$SNAP/chromium-ffmpeg-$V/chromium-ffmpeg/libffmpeg.so + [[ -f $LIBFFMPEGSO ]] + VERSION=$(grep -aom1 'FFmpeg version N-[0-9]\+-' $LIBFFMPEGSO | cut -f2 -d-) + [[ "$V" == "$VERSION" ]] +done diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..d9b8bbd --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,34 @@ +name: chromium-ffmpeg-test +version: 0.1 +summary: Test snap that exercises the slots exposed by chromium-ffmpeg +description: | + Test snap that exercises the slots exposed by chromium-ffmpeg. + To run the tests: + snap install chromium-ffmpeg + snap install chromium-ffmpeg-test --beta + snap connect chromium-ffmpeg-test:chromium-ffmpeg-91124 chromium-ffmpeg:chromium-ffmpeg-91124 + snap connect chromium-ffmpeg-test:chromium-ffmpeg-91696 chromium-ffmpeg:chromium-ffmpeg-91696 + snap run chromium-ffmpeg-test + The exit code should be 0 in case of success, non-zero otherwise. +confinement: strict + +plugs: + chromium-ffmpeg-91124: + interface: content + target: $SNAP/chromium-ffmpeg-91124 + default-provider: chromium-ffmpeg + chromium-ffmpeg-91696: + interface: content + target: $SNAP/chromium-ffmpeg-91696 + default-provider: chromium-ffmpeg + +apps: + chromium-ffmpeg-test: + command: chromium-ffmpeg-test.sh + +parts: + chromium-ffmpeg-test: + plugin: dump + source: . + prime: + - chromium-ffmpeg-test.sh |
