Source20010: testcase_tensor_converter_stream.tar.gz
Source2002: testcase_tensor_decoder.tar.gz
Source2003: testcase_tensors.tar.gz
+Source2004: testcase_mux.tar.gz
Requires: gstreamer >= 1.8.0
Requires: libdlog
pushd nnstreamer_tensors
tar -xf %{SOURCE2003}
popd
+pushd nnstreamer_mux
+tar -xf %{SOURCE2004}
+popd
popd
write('testcase02_BGRx_642x480.golden', genCase02_PNG_random('BGRx', 642, 480)[0])
if target == -1 or target == 8:
genCase08_PNG_stream('testsequence_', 'testcase08.golden')
+if target == -1 or target == 9:
+ str = genCase02_PNG_random('RGB', 100, 100)[0]
+ write('testcase01_RGB_100x100.golden', str)
+ write('testcase02_RGB_100x100.golden', str+str)
+ write('testcase03_RGB_100x100.golden', str+str+str)
--- /dev/null
+#!/usr/bin/env bash
+source ../testAPI.sh
+
+if [ "$SKIPGEN" == "YES" ]
+then
+ echo "Test Case Generation Skipped"
+ sopath=$2
+else
+ echo "Test Case Generation Started"
+ python ../nnstreamer_converter/generateGoldenTestResult.py 9
+ sopath=$1
+fi
+
+gstTest "--gst-plugin-path=../../build/gst --gst-debug=tensormux:5 tensormux name=mux ! filesink location=testcase01_RGB_100x100.log filesrc location=testcase02_RGB_100x100.png ! pngdec ! videoscale ! imagefreeze ! videoconvert ! video/x-raw,format=RGB,width=100,height=100,framerate=0/1 ! tensor_converter ! mux.sink_0" 1
+
+compareAllSizeLimit testcase01_RGB_100x100.golden testcase01_RGB_100x100.log 1
+
+gstTest "--gst-plugin-path=../../build/gst --gst-debug=tensormux:5 tensormux name=mux ! filesink location=testcase02_RGB_100x100.log filesrc location=testcase02_RGB_100x100.png ! pngdec ! videoscale ! imagefreeze ! videoconvert ! video/x-raw,format=RGB,width=100,height=100,framerate=0/1 ! tensor_converter ! mux.sink_0 filesrc location=testcase02_RGB_100x100.png ! pngdec ! videoscale ! imagefreeze ! videoconvert ! video/x-raw,format=RGB,width=100,height=100,framerate=0/1 ! tensor_converter ! mux.sink_1" 2
+
+compareAllSizeLimit testcase02_RGB_100x100.golden testcase02_RGB_100x100.log 2
+
+gstTest "--gst-plugin-path=../../build/gst --gst-debug=tensormux:5 tensormux name=mux ! filesink location=testcase03_RGB_100x100.log filesrc location=testcase02_RGB_100x100.png ! pngdec ! videoscale ! imagefreeze ! videoconvert ! video/x-raw,format=RGB,width=100,height=100,framerate=0/1 ! tensor_converter ! mux.sink_0 filesrc location=testcase02_RGB_100x100.png ! pngdec ! videoscale ! imagefreeze ! videoconvert ! video/x-raw,format=RGB,width=100,height=100,framerate=0/1 ! tensor_converter ! mux.sink_1 filesrc location=testcase02_RGB_100x100.png ! pngdec ! videoscale ! imagefreeze ! videoconvert ! video/x-raw,format=RGB,width=100,height=100,framerate=0/1 ! tensor_converter ! mux.sink_2" 3
+
+compareAllSizeLimit testcase03_RGB_100x100.golden testcase03_RGB_100x100.log 3
+
+report