[Test] testcase with tf-lite ver1.x
authorJaeyun Jung <jy1210.jung@samsung.com>
Fri, 5 Jan 2024 11:31:18 +0000 (20:31 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Tue, 9 Jan 2024 01:35:35 +0000 (10:35 +0900)
We will remove tf-lite ver1.x on tizen release, fix related testcase.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
tests/capi/unittest_capi_inference_single.cc

index 7002f46..9a29841 100644 (file)
@@ -4157,11 +4157,11 @@ skip_test:
   g_free (test_model);
 }
 
-#if defined(ENABLE_TENSORFLOW_LITE) && defined(ENABLE_TENSORFLOW2_LITE)
+#if defined(ENABLE_TENSORFLOW_LITE) || defined(ENABLE_TENSORFLOW2_LITE)
 /**
- * @brief Test ml_option with tensorflow1-lite (manually set by ml_option_se, NULLt)
+ * @brief Test ml_option with tensorflow-lite (manually set by ml_option_set, framework_name=tensorflow-lite)
  */
-TEST (nnstreamer_capi_ml_option, tensorflow1_lite)
+TEST (nnstreamer_capi_ml_option, fw_name_tensorflow_lite)
 {
   int status;
   ml_option_h option;
@@ -4214,7 +4214,7 @@ TEST (nnstreamer_capi_ml_option, tensorflow1_lite)
   status = ml_option_set (option, "nnfw", &nnfw_type, NULL);
   EXPECT_EQ (ML_ERROR_NONE, status);
 
-  gchar *fw_name = g_strdup ("tensorflow1-lite");
+  gchar *fw_name = g_strdup ("tensorflow-lite");
   status = ml_option_set (option, "framework_name", fw_name, g_free);
   EXPECT_EQ (ML_ERROR_NONE, status);