gstreamer/tests/validate/simplest.validatetest
Thibault Saunier 34916e133d tests: Add a gst-tester utility
gst-tester is a tool to launch `.validatetest` files with
TAP[0] compatible output and supporting missing `gst-validate`
application which means that it can be cleanly integrated with meson
test harness.

It allows us to use `gst-validate` to write integration tests in any
GStreamer repository keeping them as close as possible to the code. It
can simplify a lot test writing and reading and not having to go into
another repository to implement or run tests makes it more convenient to
use.

This also implements a stupid simple test to show how that works

[0] https://testanything.org/

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/461>
2020-05-19 13:14:46 +00:00

17 lines
385 B
Text

meta,
handles-states=true,
ignore-eos=true,
args = {
"fakesrc num-buffers=5 ! fakesink sync=true name=sink",
},
configs = {
"core, fail-on-missing-plugin=true",
"$(validateflow), pad=sink:sink, buffers-checksum=true",
}
play
crank-clock, expected-elapsed-time=0.0
crank-clock, repeat=5, expected-elapsed-time=0.0
stop, on-message=eos