From c10e962b193686a743d9e25e0f4a710331a1a9f4 Mon Sep 17 00:00:00 2001 From: "kj7.sung" Date: Mon, 24 Jul 2017 14:22:36 +0900 Subject: [PATCH] Remove unused code about test application Change-Id: Ia2d7b08b6f60d281d6bdd032847d6aed3890a2ba Signed-off-by: kj7.sung --- AUTHORS | 1 - packaging/capi-location-manager.spec | 22 +--------------------- test/CMakeLists.txt | 2 -- test/capi-location-manager-test.manifest | 5 ----- test/capi-location-manager-test.xml | 15 --------------- test/location_test.c | 4 ++-- 6 files changed, 3 insertions(+), 46 deletions(-) delete mode 100755 test/capi-location-manager-test.manifest delete mode 100644 test/capi-location-manager-test.xml diff --git a/AUTHORS b/AUTHORS index a6dec35..ec65c62 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,3 +1,2 @@ Kyoungjun Sung Seechan Kim -Kangho Hur diff --git a/packaging/capi-location-manager.spec b/packaging/capi-location-manager.spec index a027471..834bf7e 100644 --- a/packaging/capi-location-manager.spec +++ b/packaging/capi-location-manager.spec @@ -1,6 +1,6 @@ Name: capi-location-manager Summary: A Location Manager library in Tizen Native API -Version: 0.7.9 +Version: 0.7.10 Release: 1 Group: Location/API License: Apache-2.0 @@ -35,10 +35,6 @@ cp %{SOURCE1001} . %build -export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE" -export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE" -export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE" - MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIBDIR=%{_libdir} -DINCLUDEDIR=%{_includedir} \ -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DTZ_SYS_RO_PACKAGES=%{TZ_SYS_RO_PACKAGES} -DTZ_SYS_BIN=%{TZ_SYS_BIN} \ @@ -63,19 +59,3 @@ rm -rf %{buildroot} %{_includedir}/location/*.h %{_libdir}/pkgconfig/*.pc %{_libdir}/libcapi-location-manager.so - - -%if 0 -%package test -Summary: Test application of Location Manager -Group: Location/Testing -Requires: %{name} = %{version}-%{release} - -%description test -Test application of Location Manager - -%files test -%manifest test/capi-location-manager-test.manifest -#%{TZ_SYS_RO_PACKAGES}/capi-location-manager-test.xml -%{_bindir}/location_test -%endif diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index e872c6e..08261d0 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -17,6 +17,4 @@ FOREACH(src ${sources}) TARGET_LINK_LIBRARIES(${src_name} ${fw_name} ${${fw_test}_LDFLAGS}) ENDFOREACH() -#INSTALL(TARGETS ${src_name} DESTINATION ${TZ_SYS_SHARE}/location/) INSTALL(TARGETS ${src_name} DESTINATION ${TZ_SYS_BIN}) -#INSTALL(FILES ${fw_test}.xml DESTINATION ${TZ_SYS_RO_PACKAGES}/) diff --git a/test/capi-location-manager-test.manifest b/test/capi-location-manager-test.manifest deleted file mode 100755 index 97e8c31..0000000 --- a/test/capi-location-manager-test.manifest +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/test/capi-location-manager-test.xml b/test/capi-location-manager-test.xml deleted file mode 100644 index 8013225..0000000 --- a/test/capi-location-manager-test.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - Kyoungjun Sung - Seechan Kim - Youngae kang - Location Manager Test - - http://tizen.org/privilege/location - http://tizen.org/privilege/location.enable - - - - - diff --git a/test/location_test.c b/test/location_test.c index 1d884e5..04d8210 100755 --- a/test/location_test.c +++ b/test/location_test.c @@ -369,10 +369,10 @@ static void _setting_cb(location_method_e method, bool enable, void *user_data) void _satellite_updated_cb(int num_of_active, int num_of_inview, time_t timestamp, void *user_data) { /* fprintf(stderr, "-------------------------- satellite updated --------------------------\n"); */ - fprintf(stderr, "--- num_of_active[%d] num_of_inview[%d] timestamp[%ld]\n", num_of_active, num_of_inview, timestamp); + fprintf(stderr, "--- active[%d] inview[%d] timestamp[%ld]\n", num_of_active, num_of_inview, timestamp); repeat_count++; - if (repeat_count > 60) + if (repeat_count > 120) test_timer = g_timeout_add_seconds(1, wait_test, NULL); } -- 2.7.4