[Tests] Move generateTest script to non-optional test directory
authorAlexi Birlinger <alexi.birlinger@nxp.com>
Wed, 12 Apr 2023 07:58:50 +0000 (09:58 +0200)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Mon, 17 Apr 2023 07:41:26 +0000 (16:41 +0900)
Script 'generateTest.py' location induces ssat test failures for platform not supporting
Pytorch as meson build set nnstreamer_filter_pytorch only if 'pytorch_support_is_available'
flag is true.

Move 'generateTest.py' script to nnstreamer_converter directory as this test suite is
installed by default. This location has been selected for two main reasons:
    - nnstreamer_converter is using this script
    - another script used in the same way was already located in this directory

Signed-off-by: Alexi Birlinger <alexi.birlinger@nxp.com>
tests/nnstreamer_converter/generateTest.py [moved from tests/nnstreamer_filter_pytorch/generateTest.py with 100% similarity]
tests/nnstreamer_converter/runTest.sh
tests/nnstreamer_filter_pytorch/runTest.sh
tests/nnstreamer_filter_tensorflow2_lite/runTest.sh
tests/transform_dimchg/runTest.sh

index ff92878..72160e9 100644 (file)
@@ -24,7 +24,7 @@ if [ "$SKIPGEN" == "YES" ]; then
 else
     echo "Test Case Generation Started"
     python3 generateGoldenTestResult.py
-    python3 ../nnstreamer_filter_pytorch/generateTest.py
+    python3 generateTest.py
     sopath=$1
 fi
 convertBMP2PNG
index 8b3a0a3..5a4693a 100644 (file)
@@ -72,7 +72,7 @@ if [ "$SKIPGEN" == "YES" ]; then
     sopath=$2
 else
     echo "Test Case Generation Started"
-    python3 generateTest.py
+    python3 ../nnstreamer_converter/generateTest.py
     sopath=$1
 fi
 
index f28d4b0..369a863 100644 (file)
@@ -70,7 +70,7 @@ if [ "$SKIPGEN" == "YES" ]; then
     sopath=$2
 else
     echo "Test Case Generation Started"
-    python3 ../nnstreamer_filter_pytorch/generateTest.py
+    python3 ../nnstreamer_converter/generateTest.py
     sopath=$1
 fi
 
index 0d2d9ae..e68b6c6 100644 (file)
@@ -26,7 +26,7 @@ if [ "$SKIPGEN" == "YES" ]; then
 else
     echo "Test Case Generation Started"
     python3 ../nnstreamer_converter/generateGoldenTestResult.py 8
-    python3 ../nnstreamer_filter_pytorch/generateTest.py
+    python3 ../nnstreamer_converter/generateTest.py
     sopath=$1
 fi
 convertBMP2PNG