| 1 | #!/bin/sh |
| 2 | |
| 3 | set -eux |
| 4 | |
| 5 | export G_MESSAGES_DEBUG=all |
| 6 | echo "Environment:" |
| 7 | env | LC_ALL=C sort -u |
| 8 | |
| 9 | xvfb-run -a \ |
| 10 | gst-validate-1.0 \ |
| 11 | --set-scenario play_5s \ |
| 12 | playbin3 'uri=https://gitlab.freedesktop.org/gstreamer/gst-integration-testsuites/-/raw/main/defaults/bipbop/bipbopall.m3u8?ref_type=heads' |
| 13 | |
| 14 | xvfb-run -a \ |
| 15 | gst-validate-1.0 \ |
| 16 | --set-scenario fast_forward \ |
| 17 | playbin3 'uri=http://devimages.apple.com/iphone/samples/bipbop/gear4/prog_index.m3u8' |
| 18 | |
| 19 | # Check the h265 parser is somewhat functional. |
| 20 | GST_DEBUG='*h265*:5' gst-launch-1.0 urisourcebin 'uri=https://gitlab.freedesktop.org/gstreamer/gst-integration-testsuites/-/raw/main/defaults/h265/alternate.h265?ref_type=heads' ! queue ! h265parse ! fakesink 2>&1 | grep 'Complete nal found' |
| 21 | if [ $? -eq 0 ]; then |
| 22 | echo "OK: 'Complete nal found' was detected in h265 parser." |
| 23 | exit 0 |
| 24 | else |
| 25 | echo "FAILED: 'Complete nal found' was NOT found by h265 parser." |
| 26 | exit 1 |
| 27 | fi |