From a56b0f98422e71fc200c6c2d7c92a521d578f8b6 Mon Sep 17 00:00:00 2001 From: Yongjoo Ahn Date: Tue, 28 Apr 2020 21:02:26 +0900 Subject: [PATCH] [Test/tensordec-pose] Add test case with more buffers The test with `videotestsrc num_buffers=4` sometimes does not enough to execute some functions. This commit adds a test with more buffers. Signed-off-by: Yongjoo Ahn --- tests/nnstreamer_decoder_pose/runTest.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/nnstreamer_decoder_pose/runTest.sh b/tests/nnstreamer_decoder_pose/runTest.sh index 57a77c3..2979969 100755 --- a/tests/nnstreamer_decoder_pose/runTest.sh +++ b/tests/nnstreamer_decoder_pose/runTest.sh @@ -30,4 +30,7 @@ gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} videotestsrc ! videoconvert ! video # THIS WON'T FAIL, BUT NOT MUCH MEANINGFUL. gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} videotestsrc num_buffers=4 ! videoconvert ! videoscale ! video/x-raw,width=14,height=14,format=RGB ! tensor_converter ! tensor_split name=a tensorseg=1:14:14:1,2:14:14:1 a.src_0 ! tensor_transform mode=transpose option=1:2:0:3 ! tensor_decoder mode=pose_estimation option1=320:240 option2=14:14 ! fakesink" 1 0 0 $PERFORMANCE +# TEST WITH MORE BUFFERS +gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} videotestsrc num_buffers=100 ! videoconvert ! videoscale ! video/x-raw,width=14,height=14,format=RGB ! tensor_converter ! tensor_split name=a tensorseg=1:14:14:1,2:14:14:1 a.src_0 ! tensor_transform mode=transpose option=1:2:0:3 ! tensor_decoder mode=pose_estimation option1=320:240 option2=14:14 option3=notused ! fakesink" 2 0 0 $PERFORMANCE + report -- 2.7.4