From 186fbec42893c05a569680dbe7777ee067811fcf Mon Sep 17 00:00:00 2001 From: Yongjoo Ahn Date: Wed, 17 Apr 2024 13:11:03 +0900 Subject: [PATCH] [test] Set a `gstTestBackground` SSAT tc as not critical Set the gstTestBackground TCs as not critical: The another background pipeline (videotestsrc ! ... ! filesink) from `gstTestBackground` sometimes does not make test file properly. If following tests succeed, It means background pipeline works well. Signed-off-by: Yongjoo Ahn --- tests/nnstreamer_edge/edge/runTest.sh | 22 +++++++++++----------- tests/nnstreamer_edge/query/runTest.sh | 18 +++++++++--------- tests/nnstreamer_grpc/runTest.sh | 8 ++++---- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/tests/nnstreamer_edge/edge/runTest.sh b/tests/nnstreamer_edge/edge/runTest.sh index 99c8ef9..736dc01 100644 --- a/tests/nnstreamer_edge/edge/runTest.sh +++ b/tests/nnstreamer_edge/edge/runTest.sh @@ -59,7 +59,7 @@ function findFirstMatchedFileNumber() { fi command -v cmp - + if [[ $? == 0 && ! -L $(which cmp) ]]; then cmp_exist=1 else @@ -67,7 +67,7 @@ function findFirstMatchedFileNumber() { fi while : - do + do num=$((num+1)) raw_file="$1$num$2" @@ -97,12 +97,12 @@ function findFirstMatchedFileNumber() { done } -# Run edge sink server as echo server with default address option. +# Run edge sink server as echo server with default address option. PORT=`python3 ../../get_available_port.py` gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} \ videotestsrc is-live=true ! videoconvert ! videoscale ! video/x-raw,width=300,height=300,format=RGB ! tee name=t \ t. ! queue ! multifilesink location=raw1_%1d.log \ - t. ! queue ! edgesink port=${PORT} async=false" 1-1 0 0 30 + t. ! queue ! edgesink port=${PORT} async=false" 1-1 1 0 30 gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} \ edgesrc dest-port=${PORT} num-buffers=10 ! multifilesink location=result1_%1d.log" 1-2 0 0 $PERFORMANCE findFirstMatchedFileNumber "raw1_" ".log" "result1_0.log" 1-3 @@ -124,7 +124,7 @@ PORT=`python3 ../../get_available_port.py` gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} \ videotestsrc is-live=true ! videoconvert ! videoscale ! video/x-raw,width=300,height=300,format=RGB ! tee name=t \ t. ! queue ! multifilesink location=raw2_%1d.log \ - t. ! queue ! edgesink port=${PORT} async=false" 2-1 0 0 30 + t. ! queue ! edgesink port=${PORT} async=false" 2-1 1 0 30 gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} \ edgesrc dest-port=${PORT} num-buffers=10 ! multifilesink location=result2_0_%1d.log" 2-2 0 0 $PERFORMANCE gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} \ @@ -145,7 +145,7 @@ PORT=`python3 ../../get_available_port.py` gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} \ videotestsrc is-live=true ! videoconvert ! videoscale ! video/x-raw,width=300,height=300,format=RGB ! tensor_converter ! other/tensors,format=flexible ! tee name=t \ t. ! queue ! multifilesink location=raw3_%1d.log \ - t. ! queue ! edgesink port=${PORT} async=false" 3-1 0 0 30 + t. ! queue ! edgesink port=${PORT} async=false" 3-1 1 0 30 gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} \ edgesrc dest-port=${PORT} num-buffers=10 ! multifilesink location=result3_%1d.log" 3-2 0 0 $PERFORMANCE findFirstMatchedFileNumber "raw3_" ".log" "result3_0.log" 3-3 @@ -160,7 +160,7 @@ PORT=`python3 ../../get_available_port.py` gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} \ videotestsrc is-live=true ! videoconvert ! videoscale ! video/x-raw,width=300,height=300,format=RGB ! tensor_converter ! other/tensors,num_tensors=1,dimensions=3:300:300:1,types=uint8,format=static ! tee name=t \ t. ! queue ! multifilesink location=raw4_%1d.log \ - t. ! queue ! edgesink port=${PORT} async=false" 4-1 0 0 30 + t. ! queue ! edgesink port=${PORT} async=false" 4-1 1 0 30 gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} \ edgesrc dest-port=${PORT} num-buffers=10 ! multifilesink location=result4_%1d.log" 4-2 0 0 $PERFORMANCE findFirstMatchedFileNumber "raw4_" ".log" "result4_0.log" 4-3 @@ -175,7 +175,7 @@ PORT=`python3 ../../get_available_port.py` gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} \ audiotestsrc ! audioconvert ! tee name=t \ t. ! queue ! multifilesink location=raw5_%1d.log \ - t. ! queue ! edgesink port=${PORT} async=false" 5-1 0 0 30 + t. ! queue ! edgesink port=${PORT} async=false" 5-1 1 0 30 gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} \ edgesrc dest-port=${PORT} num-buffers=10 ! multifilesink location=result5_%1d.log" 5-2 0 0 $PERFORMANCE findFirstMatchedFileNumber "raw5_" ".log" "result5_0.log" 5-3 @@ -203,7 +203,7 @@ mospid=$! gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} \ videotestsrc is-live=true ! videoconvert ! videoscale ! video/x-raw,width=300,height=300,format=RGB ! tee name=t \ t. ! queue ! multifilesink location=raw6_%1d.log \ - t. ! queue ! edgesink port=0 connect-type=HYBRID dest-host=127.0.0.1 dest-port=${PORT} topic=tempTopic async=false" 6-1 0 0 30 + t. ! queue ! edgesink port=0 connect-type=HYBRID dest-host=127.0.0.1 dest-port=${PORT} topic=tempTopic async=false" 6-1 1 0 30 gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} \ edgesrc port=0 connect-type=HYBRID dest-host=127.0.0.1 dest-port=${PORT} topic=tempTopic num-buffers=10 ! multifilesink location=result6_0_%1d.log" 6-2 0 0 $PERFORMANCE findFirstMatchedFileNumber "raw6_" ".log" "result6_0_0.log" 6-4 @@ -222,7 +222,7 @@ else gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} \ videotestsrc is-live=true ! videoconvert ! videoscale ! video/x-raw,width=300,height=300,format=RGB ! tee name=t \ t. ! queue ! multifilesink location=raw7_%1d.log \ - t. ! queue ! edgesink port=0 connect-type=AITT dest-host=127.0.0.1 dest-port=${PORT} topic=tempTopic async=false" 7-1 0 0 30 + t. ! queue ! edgesink port=0 connect-type=AITT dest-host=127.0.0.1 dest-port=${PORT} topic=tempTopic async=false" 7-1 1 0 30 gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} \ edgesrc port=0 connect-type=AITT dest-host=127.0.0.1 dest-port=${PORT} topic=tempTopic num-buffers=10 ! multifilesink location=result7_0_%1d.log" 7-2 0 0 $PERFORMANCE gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} \ @@ -248,7 +248,7 @@ mospid=$! gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} \ videotestsrc is-live=true ! videoconvert ! videoscale ! video/x-raw,width=300,height=300,format=RGB ! tee name=t \ t. ! queue ! multifilesink location=raw8_%1d.log \ - t. ! queue ! edgesink port=0 connect-type=MQTT dest-host=127.0.0.1 dest-port=${PORT} topic=tempTopic async=false" 8-1 0 0 30 + t. ! queue ! edgesink port=0 connect-type=MQTT dest-host=127.0.0.1 dest-port=${PORT} topic=tempTopic async=false" 8-1 1 0 30 gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} \ edgesrc port=0 connect-type=MQTT dest-host=127.0.0.1 dest-port=${PORT} topic=tempTopic num-buffers=10 ! multifilesink location=result8_0_%1d.log" 8-2 0 0 $PERFORMANCE gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} \ diff --git a/tests/nnstreamer_edge/query/runTest.sh b/tests/nnstreamer_edge/query/runTest.sh index 4fff858..8ad546b 100644 --- a/tests/nnstreamer_edge/query/runTest.sh +++ b/tests/nnstreamer_edge/query/runTest.sh @@ -43,7 +43,7 @@ function _callCompareTest() { # Run tensor query server as echo server with default address option. PORT=`python3 ../../get_available_port.py` -gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_query_serversrc port=${PORT} ! other/tensors,format=static,num_tensors=1,dimensions=(string)3:300:300:1,types=(string)uint8,framerate=0/1 ! tensor_query_serversink async=false" 1-1 0 0 30 +gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_query_serversrc port=${PORT} ! other/tensors,format=static,num_tensors=1,dimensions=(string)3:300:300:1,types=(string)uint8,framerate=0/1 ! tensor_query_serversink async=false" 1-1 1 0 30 pid=$! gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} videotestsrc is-live=true num-buffers=10 ! videoconvert ! videoscale ! video/x-raw,width=300,height=300,format=RGB ! tensor_converter ! tee name = t t. ! queue ! multifilesink location= raw1_%1d.log t. ! queue ! tensor_query_client dest-port=${PORT} ! multifilesink location=result1_%1d.log sync=true " 1-2 0 0 $PERFORMANCE $TIMEOUT_SEC _callCompareTest raw1_0.log result1_0.log 1-3 "Compare 1-3" 1 0 @@ -55,7 +55,7 @@ wait $pid # A server that mimics as if it takes a long time to process using identity element. PORT=`python3 ../../get_available_port.py` -gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_query_serversrc port=${PORT} ! other/tensors,format=static,num_tensors=1,dimensions=(string)3:300:300:1,types=(string)uint8,framerate=0/1 ! identity sleep-time=500000 ! tensor_query_serversink async=false" 1.1-1 0 0 30 +gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_query_serversrc port=${PORT} ! other/tensors,format=static,num_tensors=1,dimensions=(string)3:300:300:1,types=(string)uint8,framerate=0/1 ! identity sleep-time=500000 ! tensor_query_serversink async=false" 1.1-1 1 0 30 pid=$! gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} videotestsrc is-live=true num-buffers=50 ! videoconvert ! videoscale ! video/x-raw,width=300,height=300,format=RGB,framerate=10/1 ! tensor_converter ! tee name = t t. ! queue ! multifilesink location= raw1.1_%1d.log t. ! queue ! tensor_query_client max-request=3 dest-port=${PORT} ! multifilesink location=result1.1_%1d.log sync=true " 1.1-2 0 0 $PERFORMANCE $TIMEOUT_SEC _callCompareTest raw1.1_0.log result1.1_0.log 1.1-3 "Compare 1.1-3" 1 0 @@ -67,7 +67,7 @@ wait $pid # Run tensor query server as echo server with given address option. (multi clients) PORT1=`python3 ../../get_available_port.py` -gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_query_serversrc host=127.0.0.1 port=${PORT1} ! other/tensors,format=static,num_tensors=1,dimensions=(string)3:300:300:1,types=(string)uint8,framerate=0/1 ! tensor_query_serversink async=false" 2-1 0 0 30 +gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_query_serversrc host=127.0.0.1 port=${PORT1} ! other/tensors,format=static,num_tensors=1,dimensions=(string)3:300:300:1,types=(string)uint8,framerate=0/1 ! tensor_query_serversink async=false" 2-1 1 0 30 pid=$! gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} videotestsrc is-live=true num-buffers=10 ! videoconvert ! videoscale ! video/x-raw,width=300,height=300,format=RGB ! tensor_converter ! tee name = t t. ! queue ! multifilesink location= raw2_%1d.log t. ! queue ! tensor_query_client host=127.0.0.1 port=0 dest-host=127.0.0.1 dest-port=${PORT1} ! multifilesink location=result2_%1d.log" 2-2 0 0 $PERFORMANCE $TIMEOUT_SEC gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} videotestsrc is-live=true num-buffers=10 ! videoconvert ! videoscale ! video/x-raw,width=300,height=300,format=RGB ! tensor_converter ! tee name = t t. ! queue ! multifilesink location= raw2_2_%1d.log t. ! queue ! tensor_query_client host=127.0.0.1 port=0 dest-host=127.0.0.1 dest-port=${PORT1} ! multifilesink location=result2_2_%1d.log" 2-3 0 0 $PERFORMANCE $TIMEOUT_SEC @@ -82,7 +82,7 @@ wait $pid # Test flexible tensors PORT=`python3 ../../get_available_port.py` -gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_query_serversrc port=${PORT} ! other/tensors,format=flexible,framerate=0/1 ! tensor_query_serversink async=false" 3-1 0 0 30 +gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_query_serversrc port=${PORT} ! other/tensors,format=flexible,framerate=0/1 ! tensor_query_serversink async=false" 3-1 1 0 30 pid=$! gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} videotestsrc is-live=true num-buffers=10 ! videoconvert ! videoscale ! video/x-raw,width=300,height=300,format=RGB ! tensor_converter ! other/tensors,format=flexible ! tee name = t t. ! queue ! multifilesink location= raw3_%1d.log t. ! queue ! tensor_query_client port=0 dest-port=${PORT} ! multifilesink location=result3_%1d.log" 3-2 0 0 $PERFORMANCE $TIMEOUT_SEC _callCompareTest raw3_0.log result3_0.log 3-3 "Compare 3-3" 1 0 @@ -97,7 +97,7 @@ PORT2=`python3 ../../get_available_port.py` PORT3=`python3 ../../get_available_port.py` PORT4=`python3 ../../get_available_port.py` gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_query_serversrc id=0 port=${PORT1} ! other/tensors,format=flexible,framerate=0/1 ! tensor_query_serversink id=0 async=false \ - tensor_query_serversrc id=1 port=${PORT2} ! other/tensors,format=flexible ! tensor_query_serversink id=1 async=false" 5-1 0 0 30 + tensor_query_serversrc id=1 port=${PORT2} ! other/tensors,format=flexible ! tensor_query_serversink id=1 async=false" 5-1 1 0 30 pid=$! # Client pipeline 5-2 is connected to server ID 0. gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} \ @@ -122,7 +122,7 @@ wait $pid # Sever src cap: Video, Server sink cap: Viedo test PORT=`python3 ../../get_available_port.py` -gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_query_serversrc port=${PORT} ! video/x-raw,width=300,height=300,format=RGB,framerate=0/1 ! tensor_query_serversink async=false" 6-1 0 0 30 +gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_query_serversrc port=${PORT} ! video/x-raw,width=300,height=300,format=RGB,framerate=0/1 ! tensor_query_serversink async=false" 6-1 1 0 30 pid=$! gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} videotestsrc is-live=true num-buffers=10 ! videoconvert ! videoscale ! video/x-raw,width=300,height=300,format=RGB ! tee name = t t. ! queue ! multifilesink location= raw6_%1d.log t. ! queue ! tensor_query_client port=0 dest-port=${PORT} ! multifilesink location=result6_%1d.log" 6-2 0 0 $PERFORMANCE $TIMEOUT_SEC _callCompareTest raw6_0.log result6_0.log 6-3 "Compare 6-3" 1 0 @@ -133,7 +133,7 @@ wait $pid # Sever src cap: Video, Server sink cap: Tensor test PORT=`python3 ../../get_available_port.py` -gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_query_serversrc port=${PORT} ! video/x-raw,width=300,height=300,format=RGB,framerate=0/1 ! tensor_converter ! tensor_query_serversink async=false" 7-1 0 0 30 +gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_query_serversrc port=${PORT} ! video/x-raw,width=300,height=300,format=RGB,framerate=0/1 ! tensor_converter ! tensor_query_serversink async=false" 7-1 1 0 30 pid=$! gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} videotestsrc is-live=true num-buffers=10 ! videoconvert ! videoscale ! video/x-raw,width=300,height=300,format=RGB ! tee name = t t. ! queue ! multifilesink location= raw7_%1d.log t. ! queue ! tensor_query_client port=0 dest-port=${PORT} ! multifilesink location=result7_%1d.log" 7-2 0 0 $PERFORMANCE $TIMEOUT_SEC _callCompareTest raw7_0.log result7_0.log 7-3 "Compare 7-3" 1 0 @@ -144,7 +144,7 @@ wait $pid # Sever src cap: Tensor, Server sink cap: Video test PORT=`python3 ../../get_available_port.py` -gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_query_serversrc port=${PORT} ! other/tensors,format=static,num_tensors=1,dimensions=(string)3:300:300:1,types=(string)uint8,framerate=0/1 ! tensor_decoder mode=direct_video ! videoconvert ! tensor_query_serversink async=false" 8-1 0 0 30 +gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_query_serversrc port=${PORT} ! other/tensors,format=static,num_tensors=1,dimensions=(string)3:300:300:1,types=(string)uint8,framerate=0/1 ! tensor_decoder mode=direct_video ! videoconvert ! tensor_query_serversink async=false" 8-1 1 0 30 pid=$! gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} videotestsrc is-live=true num-buffers=10 ! videoconvert ! videoscale ! video/x-raw,width=300,height=300,format=RGB ! tensor_converter ! tee name = t t. ! queue ! multifilesink location= raw8_%1d.log t. ! queue ! tensor_query_client port=0 dest-port=${PORT} ! multifilesink location=result8_%1d.log" 8-2 0 0 $PERFORMANCE $TIMEOUT_SEC _callCompareTest raw8_0.log result8_0.log 8-3 "Compare 8-3" 1 0 @@ -171,7 +171,7 @@ mospid=$! # 2. Tests that require mosquitto # Test Query-hybrid. Get server info from broker. -gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_query_serversrc id=12345 port=0 dest-port=${PORT} topic=passthrough connect-type=HYBRID ! other/tensors,format=flexible,framerate=0/1 ! tee name = t t. ! queue ! multifilesink location=server1_%1d.log t. ! queue ! tensor_query_serversink id=12345 connect-type=HYBRID async=false" 9-1 0 0 5 +gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_query_serversrc id=12345 port=0 dest-port=${PORT} topic=passthrough connect-type=HYBRID ! other/tensors,format=flexible,framerate=0/1 ! tee name = t t. ! queue ! multifilesink location=server1_%1d.log t. ! queue ! tensor_query_serversink id=12345 connect-type=HYBRID async=false" 9-1 1 0 5 pid=$! gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} videotestsrc num-buffers=10 is-live=true ! videoconvert ! videoscale ! video/x-raw,width=300,height=300,format=RGB ! tensor_converter ! other/tensors,format=flexible ! tee name = t t. ! queue ! multifilesink location= raw4_%1d.log t. ! queue ! tensor_query_client connect-type=HYBRID port=0 dest-host=127.0.0.1 dest-port=${PORT} topic=passthrough ! multifilesink location=result4_%1d.log" 9-3 0 0 $PERFORMANCE $TIMEOUT_SEC _callCompareTest raw4_0.log result4_0.log 9-4 "Compare the raw file and client received file 9-4" 1 0 diff --git a/tests/nnstreamer_grpc/runTest.sh b/tests/nnstreamer_grpc/runTest.sh index a33fa03..436712b 100755 --- a/tests/nnstreamer_grpc/runTest.sh +++ b/tests/nnstreamer_grpc/runTest.sh @@ -98,7 +98,7 @@ for BLOCKING in "${BLOCKING_LIST[@]}"; do fi # tensor_sink (client) --> tensor_src (server), other/tensor - gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_src_grpc port=${PORT} num-buffers=${NUM_BUFFERS} idl=${IDL} blocking=${BLOCKING} ! other/tensor,dimension=3:640:480,type=uint8,framerate=5/1 ! multifilesink async=false location=result_%1d.log" ${INDEX}-1 0 0 ${TIMEOUT_SEC} + gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_src_grpc port=${PORT} num-buffers=${NUM_BUFFERS} idl=${IDL} blocking=${BLOCKING} ! other/tensor,dimension=3:640:480,type=uint8,framerate=5/1 ! multifilesink async=false location=result_%1d.log" ${INDEX}-1 1 0 ${TIMEOUT_SEC} pid=$! gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} videotestsrc num-buffers=${NUM_BUFFERS} ! video/x-raw,width=640,height=480,framerate=5/1 ! tensor_converter ! tensor_sink_grpc port=${PORT} idl=${IDL} blocking=${BLOCKING}" ${INDEX}-2 0 0 $PERFORMANCE kill -9 $pid &> /dev/null @@ -114,7 +114,7 @@ for BLOCKING in "${BLOCKING_LIST[@]}"; do PORT=`python3 ../get_available_port.py` # tensor_sink (server) --> tensor_src (client), other/tensor - gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} videotestsrc num-buffers=${NUM_BUFFERS} ! video/x-raw,width=640,height=480,framerate=5/1 ! tensor_converter ! tensor_sink_grpc port=${PORT} server=true idl=${IDL} blocking=${BLOCKING} async=false" ${INDEX}-1 0 0 ${TIMEOUT_SEC} + gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} videotestsrc num-buffers=${NUM_BUFFERS} ! video/x-raw,width=640,height=480,framerate=5/1 ! tensor_converter ! tensor_sink_grpc port=${PORT} server=true idl=${IDL} blocking=${BLOCKING} async=false" ${INDEX}-1 1 0 ${TIMEOUT_SEC} pid=$! gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_src_grpc port=${PORT} num-buffers=${NUM_BUFFERS} server=false idl=${IDL} blocking=${BLOCKING} ! other/tensor,dimension=3:640:480,type=uint8,framerate=5/1 ! multifilesink location=result_%1d.log" ${INDEX}-2 0 0 $PERFORMANCE kill -9 $pid &> /dev/null @@ -130,7 +130,7 @@ for BLOCKING in "${BLOCKING_LIST[@]}"; do PORT=`python3 ../get_available_port.py` # tensor_sink (client) --> tensor_src (server), other/tensors - gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_src_grpc port=${PORT} num-buffers=$((NUM_BUFFERS/2)) idl=${IDL} blocking=${BLOCKING} ! other/tensors,num_tensors=2,dimensions=3:640:480.3:640:480,types=uint8.uint8,framerate=5/1 ! multifilesink async=false location=result_%1d.log" ${INDEX}-1 0 0 ${TIMEOUT_SEC} + gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_src_grpc port=${PORT} num-buffers=$((NUM_BUFFERS/2)) idl=${IDL} blocking=${BLOCKING} ! other/tensors,num_tensors=2,dimensions=3:640:480.3:640:480,types=uint8.uint8,framerate=5/1 ! multifilesink async=false location=result_%1d.log" ${INDEX}-1 1 0 ${TIMEOUT_SEC} pid=$! gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} videotestsrc num-buffers=${NUM_BUFFERS} ! video/x-raw,width=640,height=480,framerate=5/1 ! tensor_converter frames-per-tensor=2 ! tensor_sink_grpc port=${PORT} idl=${IDL} blocking=${BLOCKING}" ${INDEX}-2 0 0 $PERFORMANCE kill -9 $pid &> /dev/null @@ -146,7 +146,7 @@ for BLOCKING in "${BLOCKING_LIST[@]}"; do PORT=`python3 ../get_available_port.py` # tensor_sink (server) --> tensor_src (client), other/tensors - gstTestBackground " --gst-plugin-path=${PATH_TO_PLUGIN} videotestsrc num-buffers=${NUM_BUFFERS} ! video/x-raw,width=640,height=480,framerate=5/1 ! tensor_converter frames-per-tensor=2 ! tensor_sink_grpc port=${PORT} server=true idl=${IDL} blocking=${BLOCKING} async=false" ${INDEX}-1 0 0 ${TIMEOUT_SEC} + gstTestBackground " --gst-plugin-path=${PATH_TO_PLUGIN} videotestsrc num-buffers=${NUM_BUFFERS} ! video/x-raw,width=640,height=480,framerate=5/1 ! tensor_converter frames-per-tensor=2 ! tensor_sink_grpc port=${PORT} server=true idl=${IDL} blocking=${BLOCKING} async=false" ${INDEX}-1 1 0 ${TIMEOUT_SEC} pid=$! gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} tensor_src_grpc port=${PORT} num-buffers=$((NUM_BUFFERS/2)) server=false idl=${IDL} blocking=${BLOCKING} ! other/tensors,num_tensors=2,dimensions=3:640:480.3:640:480,types=uint8.uint8,framerate=5/1 ! multifilesink location=result_%1d.log" ${INDEX}-2 0 0 $PERFORMANCE kill -9 $pid &> /dev/null -- 2.7.4