[AITT] Skip AITT test
authorgichan2-jang <gichan2.jang@samsung.com>
Tue, 12 Mar 2024 07:05:15 +0000 (16:05 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Wed, 13 Mar 2024 01:07:40 +0000 (10:07 +0900)
Skip AITT gtest and ssat until aitt-ses is available.

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
tests/nnstreamer_edge/edge/runTest.sh
tests/nnstreamer_edge/edge/unittest_edge.cc

index 2d388a2..99c8ef9 100644 (file)
@@ -214,35 +214,31 @@ kill -9 $pid &> /dev/null
 wait $pid
 
 # Check AITT lib is exist or not.
-/sbin/ldconfig -p | grep libaitt.so >/dev/null 2>&1
+/sbin/ldconfig -p | grep libaitt-enable-later.so >/dev/null 2>&1
 if [[ "$?" != 0 ]]; then
-    echo "AITT lib is not installed. Skip AITT test."
-    rm *.log
-    report
-    kill -9 $mospid &> /dev/null
-    exit
+    echo "AITT-SES lib is not installed. Skip AITT test."
+else
+    # Data publishing via AITT
+    gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} \
+        videotestsrc is-live=true ! videoconvert ! videoscale ! video/x-raw,width=300,height=300,format=RGB ! tee name=t \
+            t. ! queue ! multifilesink location=raw7_%1d.log \
+            t. ! queue ! edgesink port=0 connect-type=AITT dest-host=127.0.0.1 dest-port=${PORT} topic=tempTopic async=false" 7-1 0 0 30
+    gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} \
+        edgesrc port=0 connect-type=AITT dest-host=127.0.0.1 dest-port=${PORT} topic=tempTopic num-buffers=10 ! multifilesink location=result7_0_%1d.log" 7-2 0 0 $PERFORMANCE
+    gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} \
+        edgesrc port=0 connect-type=AITT dest-host=127.0.0.1 dest-port=${PORT} topic=tempTopic num-buffers=10 ! multifilesink location=result7_1_%1d.log" 7-3 0 0 $PERFORMANCE
+    findFirstMatchedFileNumber "raw7_" ".log" "result7_0_0.log" 7-4
+    callCompareTestIfExist raw7_$((num+0)).log result7_0_0.log 7-4 "Compare 7-4" 1 0
+    callCompareTestIfExist raw7_$((num+1)).log result7_0_1.log 7-5 "Compare 7-5" 1 0
+    callCompareTestIfExist raw7_$((num+2)).log result7_0_2.log 7-6 "Compare 7-6" 1 0
+    findFirstMatchedFileNumber "raw7_" ".log" "result7_1_0.log" 7-7
+    callCompareTestIfExist raw7_$((num+0)).log result7_1_0.log 7-7 "Compare 7-7" 1 0
+    callCompareTestIfExist raw7_$((num+1)).log result7_1_1.log 7-8 "Compare 7-8" 1 0
+    callCompareTestIfExist raw7_$((num+2)).log result7_1_2.log 7-9 "Compare 7-9" 1 0
+    kill -9 $pid &> /dev/null
+    wait $pid
 fi
 
-# Data publishing via AITT
-gstTestBackground "--gst-plugin-path=${PATH_TO_PLUGIN} \
-    videotestsrc is-live=true ! videoconvert ! videoscale ! video/x-raw,width=300,height=300,format=RGB ! tee name=t \
-        t. ! queue ! multifilesink location=raw7_%1d.log \
-        t. ! queue ! edgesink port=0 connect-type=AITT dest-host=127.0.0.1 dest-port=${PORT} topic=tempTopic async=false" 7-1 0 0 30
-gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} \
-    edgesrc port=0 connect-type=AITT dest-host=127.0.0.1 dest-port=${PORT} topic=tempTopic num-buffers=10 ! multifilesink location=result7_0_%1d.log" 7-2 0 0 $PERFORMANCE
-gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} \
-    edgesrc port=0 connect-type=AITT dest-host=127.0.0.1 dest-port=${PORT} topic=tempTopic num-buffers=10 ! multifilesink location=result7_1_%1d.log" 7-3 0 0 $PERFORMANCE
-findFirstMatchedFileNumber "raw7_" ".log" "result7_0_0.log" 7-4
-callCompareTestIfExist raw7_$((num+0)).log result7_0_0.log 7-4 "Compare 7-4" 1 0
-callCompareTestIfExist raw7_$((num+1)).log result7_0_1.log 7-5 "Compare 7-5" 1 0
-callCompareTestIfExist raw7_$((num+2)).log result7_0_2.log 7-6 "Compare 7-6" 1 0
-findFirstMatchedFileNumber "raw7_" ".log" "result7_1_0.log" 7-7
-callCompareTestIfExist raw7_$((num+0)).log result7_1_0.log 7-7 "Compare 7-7" 1 0
-callCompareTestIfExist raw7_$((num+1)).log result7_1_1.log 7-8 "Compare 7-8" 1 0
-callCompareTestIfExist raw7_$((num+2)).log result7_1_2.log 7-9 "Compare 7-9" 1 0
-kill -9 $pid &> /dev/null
-wait $pid
-
 # Data publishing via MQTT
 kill -9 $mospid &> /dev/null
 PORT=`python3 ../../get_available_port.py`
index 5bc73c0..9c1f0c5 100644 (file)
@@ -292,6 +292,7 @@ _check_mqtt_broker ()
  */
 TEST (edgeSinkSrc, runNormalAitt)
 {
+  GTEST_SKIP ();
   gchar *sink_pipeline, *src_pipeline;
   GstElement *sink_gstpipe, *src_gstpipe;
   GstElement *appsrc_handle, *sink_handle;