Testcase Generation of Tensor_Converter requires PIL and TK, which are removed from Tizen and I do not want to add them just for unit testing.
Note that in order to pass unit tests, we need #14 merged.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
License: LGPL-2.0
Source0: nnstreamer-%{version}.tar.gz
Source1001: nnstreamer.manifest
+Source2001: testcase_tensor_converter.tar.gz
Requires: gstreamer >= 1.8.0
Requires: libdlog
# DO THE TEST!
pushd tensor_converter/test
-./runTest.sh
+# We skip testcase gen because it requires PIL, which requires tk.
+# Use the pre-generated test cases
+tar -xf %{SOURCE2001}
+./runTest.sh -skipgen
popd
%install
#!/usr/bin/env bash
failed=0
+sopath=""
-python generateGoldenTestResult.py
-./testcase01.sh $1 || failed=1
-./testcase02.sh $1 || failed=1
+if [ "$1" == "-skipgen" ]
+then
+ echo "Test Case Generation Skipped"
+ sopath=$2
+else
+ python generateGoldenTestResult.py
+ sopath=$1
+fi
+./testcase01.sh $sopath || failed=1
+./testcase02.sh $sopath || failed=1
echo ""
if [ $# -eq 0 ]
then
- PATH_TO_PLUGIN="$PWD/../../build"
+ PATH_TO_PLUGIN="$PWD/../../build/tensor_converter"
else
PATH_TO_PLUGIN="$1"
fi
if [ $# -eq 0 ]
then
- PATH_TO_PLUGIN="$PWD/../../build"
+ PATH_TO_PLUGIN="$PWD/../../build/tensor_converter"
else
PATH_TO_PLUGIN="$1"
fi