test: drop test_gtest.cpp file 68/262468/1
authorInki Dae <inki.dae@samsung.com>
Wed, 11 Aug 2021 09:25:31 +0000 (18:25 +0900)
committerInki Dae <inki.dae@samsung.com>
Wed, 11 Aug 2021 09:25:31 +0000 (18:25 +0900)
Move main function into actual tc files.
We don't have to keep separate test_gtest.cpp file.

Change-Id: Ie9894ad6a08194795d3027ce35f17e1506027387
Signed-off-by: Inki Dae <inki.dae@samsung.com>
test/src/inference_engine_profiler.cpp
test/src/inference_engine_tc.cpp
test/src/test_gtest.cpp [deleted file]

index 373339a..c434cf5 100644 (file)
                        active, update, mode,                                                                                                   \
                        PARAM_TYPE_TFLITE_PE_INFER(backend, device, iter)
 
+using namespace testing;
+
 typedef std::tuple<std::string, int, int, int, int, std::vector<std::string>,
                                   int, int, int, std::vector<std::string>,
                                   std::vector<std::string>, std::vector<std::string>,
@@ -1274,3 +1276,10 @@ INSTANTIATE_TEST_CASE_P(
                                                { "/usr/share/capi-media-vision/models/IC/dldt/googlenet-v1.xml",
                                                  "/usr/share/capi-media-vision/models/IC/dldt/googlenet-v1.bin" },
                                                { 954 })));
+
+int main(int argc, char **argv)
+{
+       InitGoogleTest(&argc, argv);
+
+       return RUN_ALL_TESTS();
+}
index 6a430b7..cb6dfc4 100644 (file)
@@ -29,6 +29,8 @@
 #include "inference_engine_private_type.h"
 #include "inference_engine_test_common.h"
 
+using namespace testing;
+
 enum
 {
        INFERENCE_ENGINE_PROFILER_OFF = 0, /**< Do not profile inference engine. */
@@ -861,3 +863,10 @@ INSTANTIATE_TEST_CASE_P(
                                                { 955 })
                                /* TODO */
                                ));
+
+int main(int argc, char **argv)
+{
+       InitGoogleTest(&argc, argv);
+
+       return RUN_ALL_TESTS();
+}
diff --git a/test/src/test_gtest.cpp b/test/src/test_gtest.cpp
deleted file mode 100644 (file)
index 88d4841..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-/*                                                                              
- * test_gtest.cpp                                                              
- *                                                                              
- *  Created on: Feb 28, 2020                                                    
- *      Author:
- *            Inki Dae <inki.dae@samsung.com>
- */
-
-#include "gtest/gtest.h"
-
-int main(int argc, char **argv)
-{
-       ::testing::InitGoogleTest(&argc, argv);
-       int ret = RUN_ALL_TESTS();
-       return ret;
-}