mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 16:08:51 +00:00
Added a plan for regression test plan definitions
Original commit message from CVS: Added a plan for regression test plan definitions
This commit is contained in:
parent
5193d34848
commit
e7096c91ab
1 changed files with 33 additions and 0 deletions
33
docs/random/testing/syntax
Normal file
33
docs/random/testing/syntax
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
The test program
|
||||||
|
----------------
|
||||||
|
|
||||||
|
We need a test program that:
|
||||||
|
|
||||||
|
- can read a file with the test specs
|
||||||
|
- construct a pipeline using the pipeline definition in the spec file
|
||||||
|
(using gst_parse_launch ())
|
||||||
|
- add signals to elements in the pipeline
|
||||||
|
- run the pipeline for a fixed (in time/number of iterations) period
|
||||||
|
- record the fireing of the signals
|
||||||
|
- compare the signals to the expected results.
|
||||||
|
|
||||||
|
|
||||||
|
spec file contents:
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
tcN: name-of-the-tescase
|
||||||
|
tcP: pipeline of the testcase in gst_parse_launch () syntax.
|
||||||
|
tcS: id1, element, signalname (attach to signal in an element)
|
||||||
|
tcS: id2, element, signalname
|
||||||
|
...
|
||||||
|
tcR: id1,1,id2,1,.. (the pattern of signals trigered)
|
||||||
|
or
|
||||||
|
tcR: id1==id2,... (denote an equal number of signals)
|
||||||
|
/n
|
||||||
|
|
||||||
|
|
||||||
|
signal trigger patterns
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue