3 if [[ "$SSATAPILOADED" != "1" ]]
12 while (( ${retcode} != 0 ))
17 echo "Cannot find ssat-api.sh"
25 printf "${Blue}Independent Mode${NC}\n"
30 command -v gst-launch-1.0 || report
31 command -v gst-inspect-1.0 || report
34 gstTestBackground "videotestsrc num-buffers=5 is-live=true ! video/x-raw,width=64,height=48,framerate=1/1 ! filesink location=${filename}" GBKG1 0 0 5
35 testResult 1 GBKG1-AFT "After launching the background" 0
37 testResult 1 GBKG1-CMP "After the background is completed" 0
39 gst-inspect-1.0 udpsrc &> /dev/null
41 if [ "${val}" == "0" ]; then
42 gstTestBackground "udpsrc ! video/x-raw,width=64,height=48,framerate=1/1 ! fakesink async=false" GBKG2 0 0 5
43 testResult 1 GBKG2-AFT "After launching the background" 0
45 testResult 1 GBKG2-CMP "After the background is killed" 0
47 gstTestBackground "udpsrc ! video/x-raw,width=64,height=48,framerate=1/1 ! fakesink" GBKG3 0 1 5
48 testResult 1 GBKG3-AFT "After launching the background" 0
50 testResult 1 GBKG3-CMP "After the background is killed" 0
52 testResult 0 GBKG2 "udpsrc-based gst background test failed: udpsrc not found: gst-inspect returns ${val}." 1