Feature: GstTest in Background accepted/tizen/unified/20220615.135308 submit/tizen/20220615.051712
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 10 Jun 2022 10:31:58 +0000 (19:31 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 15 Jun 2022 05:15:24 +0000 (14:15 +0900)
commitd0a13d6ba72fe6de2bde91c3b7272122aa3be0d5
treeb3d04249fe860cc2cdfc857db98ceff04e4590cd
parent0f598bb0fd9108a7752a1175f8b03ee15b45d376
Feature: GstTest in Background

Launch a gst pipeline in background for test cases with multiple
gst pipelines collaborating with each other.

Example usage:

gstTestBackground "background pipeline description" TCNAME 0 0 5
// launching the pipeline with 5s timeout for launching-timeout
// Note that the timeout only waits for the pipeline initialization.
// The pipeline shouldn't have indefinite prerolling wait.
// If this pipeline waits for inputs after the launch, make it
// async=false (at sink) so that it may skip prerolling

gstTest "foreground pipeline description, collaborating with above" ...

wait $pid
// the global variable "pid" is the PID of the background pipeline.

// alternatively
kill $pid // the background pipeline is no more needed.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
exampleCase/gstTestBackground/runTest.sh [new file with mode: 0755]
ssat-api.sh