[test/ssat] Disable proto flat flex buf SSAT tests when there are no supports
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Fri, 4 Feb 2022 04:51:57 +0000 (13:51 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Wed, 9 Feb 2022 00:28:43 +0000 (09:28 +0900)
- Disable protobuf, flatbuf, flexbuf SSAT tests when related libs did  not built

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
tests/nnstreamer_flatbuf/runTest.sh
tests/nnstreamer_flexbuf/runTest.sh
tests/nnstreamer_protobuf/runTest.sh

index 8357265..bcc9dd9 100755 (executable)
@@ -32,6 +32,24 @@ convertBMP2PNG
 
 PATH_TO_PLUGIN="../../build"
 
+if [[ -d $PATH_TO_PLUGIN ]]; then
+    ini_path="${PATH_TO_PLUGIN}/ext/nnstreamer/tensor_converter"
+    if [[ -d ${ini_path} ]]; then
+        check=$(ls ${ini_path} | grep flatbuf.so)
+        if [[ ! $check ]]; then
+            echo "Cannot find flatbuf shared lib"
+            report
+            exit
+        fi
+    else
+        echo "Cannot find ${ini_path}"
+    fi
+else
+    echo "No build directory"
+    report
+    exit
+fi
+
 ##
 ## @brief Execute gstreamer pipeline and compare the output of the pipeline
 ## @param $1 Colorspace
index 1dfa5c7..7d56da8 100755 (executable)
@@ -32,6 +32,24 @@ convertBMP2PNG
 
 PATH_TO_PLUGIN="../../build"
 
+if [[ -d $PATH_TO_PLUGIN ]]; then
+    ini_path="${PATH_TO_PLUGIN}/ext/nnstreamer/tensor_converter"
+    if [[ -d ${ini_path} ]]; then
+        check=$(ls ${ini_path} | grep flexbuf.so)
+        if [[ ! $check ]]; then
+            echo "Cannot find flexbuf shared lib"
+            report
+            exit
+        fi
+    else
+        echo "Cannot find ${ini_path}"
+    fi
+else
+    echo "No build directory"
+    report
+    exit
+fi
+
 ##
 ## @brief Execute gstreamer pipeline and compare the output of the pipeline
 ## @param $1 Colorspace
index 4d51250..3599627 100755 (executable)
@@ -32,6 +32,24 @@ convertBMP2PNG
 
 PATH_TO_PLUGIN="../../build"
 
+if [[ -d $PATH_TO_PLUGIN ]]; then
+    ini_path="${PATH_TO_PLUGIN}/ext/nnstreamer/extra"
+    if [[ -d ${ini_path} ]]; then
+        check=$(ls ${ini_path} | grep protobuf.so)
+        if [[ ! $check ]]; then
+            echo "Cannot find protobuf shared lib"
+            report
+            exit
+        fi
+    else
+        echo "Cannot find ${ini_path}"
+    fi
+else
+    echo "No build directory"
+    report
+    exit
+fi
+
 ##
 ## @brief Execute gstreamer pipeline and compare the output of the pipeline
 ## @param $1 Colorspace