summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhyunho <hhstark.kang@samsung.com>2021-04-23 11:13:42 +0900
committerhyunho <hhstark.kang@samsung.com>2021-04-23 11:13:42 +0900
commit14b820e2bd86ee0ad49cdb33550a371a67830b3a (patch)
treeb057c1737cee7ee46b64a1dc9dbbffd7fb8230e3
parentae9c9ef7920d5a05474003a03de2f32d30855653 (diff)
downloadnotification-14b820e2bd86ee0ad49cdb33550a371a67830b3a.tar.gz
notification-14b820e2bd86ee0ad49cdb33550a371a67830b3a.tar.bz2
notification-14b820e2bd86ee0ad49cdb33550a371a67830b3a.zip
Fix the location of the TEST definition
Change-Id: Ie224db3da673df3ed7d9631be6f9be58aee8f146 Signed-off-by: hyunho <hhstark.kang@samsung.com>
-rw-r--r--CMakeLists.txt3
-rw-r--r--packaging/notification.spec2
-rw-r--r--tests/CMakeLists.txt4
3 files changed, 4 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ddf7544..b69932c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,3 +4,6 @@ ADD_SUBDIRECTORY(notification)
ADD_SUBDIRECTORY(notification-ex)
ADD_SUBDIRECTORY(tests)
+ENABLE_TESTING()
+SET(NOTIFICATION_UNIT_TESTS notification-ex_unittests)
+ADD_TEST(NAME ${NOTIFICATION_UNIT_TESTS} COMMAND ${NOTIFICATION_UNIT_TESTS}) \ No newline at end of file
diff --git a/packaging/notification.spec b/packaging/notification.spec
index 6edd1b7..44d8868 100644
--- a/packaging/notification.spec
+++ b/packaging/notification.spec
@@ -79,7 +79,7 @@ find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
%endif
%check
-ctest --output-on-failure %{?_smp_mflags}
+ctest -V
%if 0%{?gcov:1}
lcov -c --ignore-errors graph --no-external -q -d . -o notification-ex.info
genhtml notification-ex.info -o notification-ex.out
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 6b60f04..907a64d 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,6 +1,2 @@
-ENABLE_TESTING()
-SET(NOTIFICATION_UNIT_TESTS notification-ex_unittests)
-ADD_TEST(NAME ${NOTIFICATION_UNIT_TESTS} COMMAND ${NOTIFICATION_UNIT_TESTS})
-
ADD_SUBDIRECTORY(unittest)
ADD_DEPENDENCIES(notification-ex_unittests notification-ex)