change USE_GCOV to '1' in spec file.
Change-Id: I7df7358610e80e6b23fc1be68d97a10838045536
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
+%define USE_GCOV 0
+
Name: e-tizen-unittests
Version: 0.5.5
Release: 1
export GC_SECTIONS_FLAGS="-fdata-sections -ffunction-sections -Wl,--gc-sections"
export CXXFLAGS+=" -Wall -g -fPIC -rdynamic ${GC_SECTIONS_FLAGS} -DEFL_BETA_API_SUPPORT "
export LDFLAGS+=" -Wl,--hash-style=both -Wl,--as-needed -Wl,--rpath=/usr/lib"
+%if "%{USE_GCOV}" == "1"
+export CXXFLAGS+=" -DTIZEN_TEST_GCOV "
+%endif
%autogen
%configure --prefix=/usr
::testing::InitGoogleTest(&argc, argv);
ret = RUN_ALL_TESTS();
+#ifdef TIZEN_TEST_GCOV
+ if (std::system("enlightenment_info -gcov 1") == 0)
+ printf("failed to enlightenment gcov execution\n");
+#endif
+
// display unlock
etRunner::get().setDevctlDisplayLock(EINA_FALSE);