From: Sangjung Woo Date: Wed, 10 Jun 2020 01:16:46 +0000 (+0900) Subject: [Tests] Add 'nosync' option into mux X-Git-Tag: accepted/tizen/unified/20200629.143505~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de63223e7a3e20b89b97b83d9d19a5e9df64abcc;p=platform%2Fupstream%2Fnnstreamer.git [Tests] Add 'nosync' option into mux To fix `framerate` issue in mux, it set sync-mode to slowest as default. However, This LSTM test case is hanging as a side-effect since it uses both tensor_repo and tensor_mux. This patch adds 'nosync' option into mux so that the test pipeline starts and finishes without hanging. Signed-off-by: Sangjung Woo --- diff --git a/tests/nnstreamer_repo_lstm/runTest.sh b/tests/nnstreamer_repo_lstm/runTest.sh index 6a83323..dbc1fff 100755 --- a/tests/nnstreamer_repo_lstm/runTest.sh +++ b/tests/nnstreamer_repo_lstm/runTest.sh @@ -51,7 +51,7 @@ fi # Generate video_4x4xBGRx.xraw & golden python generateTestCase.py -gstTest "--gst-plugin-path=../../build tensor_mux name=mux ! tensor_filter framework=custom model=${LSTM_DIR}/libdummyLSTM.${SO_EXT} ! tensor_demux name=demux ! queue ! tensor_reposink slot-index=0 silent=false demux.src_1 ! queue ! tee name=t ! queue ! tensor_reposink slot-index=1 silent=false tensor_reposrc slot-index=0 silent=false caps=\"other/tensor,dimension=(string)4:4:4:1,type=(string)float32,framerate=(fraction)0/1\" ! mux.sink_0 tensor_reposrc slot-index=1 silent=false caps=\"other/tensor,dimension=(string)4:4:4:1,type=(string)float32,framerate=(fraction)0/1\" ! mux.sink_1 filesrc location=\"video_4x4xBGRx.xraw\" ! application/octet-stream ! tensor_converter input-dim=4:4:4:1 input-type=float32 ! mux.sink_2 t. ! queue ! multifilesink location=\"out_%1d.log\"" 1 0 0 $PERFORMANCE +gstTest "--gst-plugin-path=../../build tensor_mux name=mux sync_mode=nosync ! tensor_filter framework=custom model=${LSTM_DIR}/libdummyLSTM.${SO_EXT} ! tensor_demux name=demux ! queue ! tensor_reposink slot-index=0 silent=false demux.src_1 ! queue ! tee name=t ! queue ! tensor_reposink slot-index=1 silent=false tensor_reposrc slot-index=0 silent=false caps=\"other/tensor,dimension=(string)4:4:4:1,type=(string)float32,framerate=(fraction)0/1\" ! mux.sink_0 tensor_reposrc slot-index=1 silent=false caps=\"other/tensor,dimension=(string)4:4:4:1,type=(string)float32,framerate=(fraction)0/1\" ! mux.sink_1 filesrc location=\"video_4x4xBGRx.xraw\" ! application/octet-stream ! tensor_converter input-dim=4:4:4:1 input-type=float32 ! mux.sink_2 t. ! queue ! multifilesink location=\"out_%1d.log\"" 1 0 0 $PERFORMANCE callCompareTest lstm.golden out_9.log 1-1 "Compare 1-1" 1 0 diff --git a/tests/nnstreamer_repo_rnn/runTest.sh b/tests/nnstreamer_repo_rnn/runTest.sh index 37f9ca3..a036d26 100755 --- a/tests/nnstreamer_repo_rnn/runTest.sh +++ b/tests/nnstreamer_repo_rnn/runTest.sh @@ -37,7 +37,7 @@ fi # Generate video_4x4xBGRx.xraw python generateTestCase.py -gstTest "--gst-plugin-path=../../build tensor_mux name=mux ! tensor_filter framework=custom model=${RNN_DIR}/libdummyRNN.${SO_EXT} ! tee name=t ! queue ! tensor_reposink slot-index=0 silent=false filesrc location=\"video_4x4xBGRx.xraw\" ! application/octet-stream ! tensor_converter input-dim=4:4:4:1 input-type=uint8 ! mux.sink_0 tensor_reposrc slot-index=0 silent=false caps=\"other/tensor,dimension=(string)4:4:4:1,type=(string)uint8,framerate=(fraction)0/1\" ! mux.sink_1 t. ! queue ! multifilesink location=\"out_%1d.log\"" 1 0 0 $PERFORMANCE +gstTest "--gst-plugin-path=../../build tensor_mux name=mux sync_mode=nosync ! tensor_filter framework=custom model=${RNN_DIR}/libdummyRNN.${SO_EXT} ! tee name=t ! queue ! tensor_reposink slot-index=0 silent=false filesrc location=\"video_4x4xBGRx.xraw\" ! application/octet-stream ! tensor_converter input-dim=4:4:4:1 input-type=uint8 ! mux.sink_0 tensor_reposrc slot-index=0 silent=false caps=\"other/tensor,dimension=(string)4:4:4:1,type=(string)uint8,framerate=(fraction)0/1\" ! mux.sink_1 t. ! queue ! multifilesink location=\"out_%1d.log\"" 1 0 0 $PERFORMANCE callCompareTest rnn.golden out_9.log 1-1 "Compare 1-1" 1 0