[Decoder] Add stream test case
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 11 Jul 2018 06:15:08 +0000 (15:15 +0900)
committer문지중/동작제어Lab(SR)/Principal Engineer/삼성전자 <jijoong.moon@samsung.com>
Thu, 12 Jul 2018 02:19:00 +0000 (11:19 +0900)
Add the basic small 10-frame PNG stream test case.
Please refer to this scheme when you expand the test cases.

Fixes #160

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
packaging/nnstreamer.spec
tests/nnstreamer_decoder/runTest.sh

index 4dd833f..789dedb 100644 (file)
@@ -90,6 +90,7 @@ tar -xf %{SOURCE20010}
 popd
 pushd nnstreamer_decoder
 tar -xf %{SOURCE2002}
+tar -xf %{SOURCE20010}
 popd
 
 pushd nnstreamer_tensors
index 18200c3..2a26d2e 100755 (executable)
@@ -8,6 +8,7 @@ then
 else
   echo "Test Case Generation Started"
   python generateGoldenTestResult.py
+  python ../nnstreamer_converter/generateGoldenTestResult.py 8
   sopath=$1
 fi
 
@@ -25,5 +26,9 @@ do_test RGB 642 480 1-1
 do_test BGRx 640 480 1-2
 do_test BGRx 642 480 1-3
 
+# Test with a stream of 10 small PNG frames
+gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} multifilesrc location=\"testsequence_%1d.png\" index=0 caps=\"image/png,framerate=\(fraction\)30/1\" ! pngdec ! videoconvert ! video/x-raw, format=RGB ! tensor_converter ! tee name=t ! queue ! tensordec ! filesink location=\"testcase2.dec.log\" sync=true t. ! queue ! filesink location=\"testcase2.con.log\" sync=true" 2
+compareAll testcase2.con.log testcase2.dec.log 2
+
 report