From 5483d482a8571494f7d1882881b14aa441787abf Mon Sep 17 00:00:00 2001 From: Wook Song Date: Wed, 8 Apr 2020 12:27:02 +0900 Subject: [PATCH] [Tests/CAPI] Add a #ifdef guard for test cases that require tflite This patch adds a #ifdef guard for the test cases which require TensorFlow Lite. Signed-off-by: Wook Song --- tests/tizen_capi/unittest_tizen_capi.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/tizen_capi/unittest_tizen_capi.cc b/tests/tizen_capi/unittest_tizen_capi.cc index 9851c66..74db5c1 100644 --- a/tests/tizen_capi/unittest_tizen_capi.cc +++ b/tests/tizen_capi/unittest_tizen_capi.cc @@ -4290,6 +4290,7 @@ TEST (nnstreamer_capi_singleshot, set_input_info_success_02) ml_tensors_info_destroy (out_res); } +#ifdef ENABLE_TENSORFLOW_LITE /** * @brief Test NNStreamer single shot (tflite) * @detail run the `ml_single_invoke_dynamic` api works properly. @@ -4633,6 +4634,7 @@ TEST (nnstreamer_capi_singleshot, invoke_dynamic_fail_n) g_free (test_model); } +#endif /* ENABLE_TENSORFLOW_LITE */ /** * @brief Main gtest -- 2.7.4