[Unittest/Split] Test tensorpick property
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 25 Feb 2019 06:42:28 +0000 (15:42 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 25 Feb 2019 11:01:08 +0000 (20:01 +0900)
Tensorpick feature is not tested in unittest.
Add a corresponding test case.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
tests/nnstreamer_split/runTest.sh

index ae9d72f..4193d8f 100644 (file)
@@ -61,4 +61,10 @@ callCompareTest testcase_stream_2_0.golden split05_0.log 6_0 "Compare 6-0" 1 0
 callCompareTest testcase_stream_2_1.golden split05_1.log 6_1 "Compare 6-1" 1 0
 callCompareTest testcase_stream_2_2.golden split05_2.log 6_2 "Compare 6-2" 1 0
 
+# Test tensor_pick
+gstTest "--gst-plugin-path=${PATH_TO_PLUGIN}  multifilesrc location=\"testsequence_%1d.png\" index=0 caps=\"image/png, framerate=(fraction)30/1\" ! pngdec ! tensor_converter ! tensor_split name=split tensorpick=0,1 tensorseg=1:16:16,1:16:16,1:16:16 split. ! queue ! filesink location=split07_0.log split. ! queue ! filesink location=split07_1.log" 7 0 0 $PERFORMANCE
+
+callCompareTest testcase_stream_2_0.golden split07_0.log 7_0 "Compare 7-0" 1 0
+callCompareTest testcase_stream_2_1.golden split07_1.log 7_1 "Compare 7-1" 1 0
+
 report