diff options
author | Seonah Moon <seonah1.moon@samsung.com> | 2022-06-10 16:30:18 +0900 |
---|---|---|
committer | Seonah Moon <seonah1.moon@samsung.com> | 2022-07-01 15:11:21 +0900 |
commit | 0918e3805122319e74ee8b70d8f331b448376a8d (patch) | |
tree | 88e6ec7dc0ed1d4da0cb5099c0603e4822ab1409 | |
parent | 5544798edd822c9c855061868ecd8684aaa8772f (diff) | |
download | user-awareness-accepted/tizen_6.5_unified.tar.gz user-awareness-accepted/tizen_6.5_unified.tar.bz2 user-awareness-accepted/tizen_6.5_unified.zip |
Do not build unittest when asan is enabledsubmit/tizen_6.5/20220701.062050accepted/tizen/6.5/unified/20220707.134139tizen_6.5accepted/tizen_6.5_unified
Change-Id: I5dd8f599b5f954bce550763147c003c29c3045de
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | packaging/capi-network-ua.spec | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d6b7eb6..d217733 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -93,4 +93,6 @@ CONFIGURE_FILE( INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${LIB_NAME}.pc DESTINATION ${LIB_PKGCONFIG_DIR}) ADD_SUBDIRECTORY(tests/test) -ADD_SUBDIRECTORY(tests/unittest) +IF (NOT BUILD_ASAN) + ADD_SUBDIRECTORY(tests/unittest) +ENDIF(BUILD_ASAN) diff --git a/packaging/capi-network-ua.spec b/packaging/capi-network-ua.spec index eb420de..c20a201 100644 --- a/packaging/capi-network-ua.spec +++ b/packaging/capi-network-ua.spec @@ -70,7 +70,8 @@ cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DSUSPEND_RESUME_TEST=%{?ptest:1}%{!?ptest:0} \ -DFULLVER=%{version} \ -DMAJORVER=${MAJORVER} \ - -DBUILD_GCOV=%{?gcov:1}%{!?gcov:0} + -DBUILD_GCOV=%{?gcov:1}%{!?gcov:0} \ + -DBUILD_ASAN=%{?asan:1} make %{?jobs:-j%jobs} @@ -84,7 +85,9 @@ tar xf %{name}-gcov.tar -C %{buildroot}%{_datadir}/gcov/obj %endif %check +%if 0%{?asan} != 1 LD_LIBRARY_PATH=. LD_PRELOAD=tests/unittest/libuser-awareness-mock.so tests/unittest/tct-user-awareness-core +%endif %if 0%{?gcov:1} lcov -c --ignore-errors graph --no-external -b . -d . -o %{name}.info --exclude "*/unittest/*" genhtml %{name}.info -o out --legend --show-details |