test: remove codes for testing 65/80965/1 accepted/tizen/common/20160721.180511 accepted/tizen/ivi/20160721.093016 accepted/tizen/mobile/20160721.092440 accepted/tizen/tv/20160721.091714 accepted/tizen/wearable/20160721.092021 submit/tizen/20160721.044359
authortaeyoung <ty317.kim@samsung.com>
Thu, 21 Jul 2016 06:26:10 +0000 (15:26 +0900)
committertaeyoung <ty317.kim@samsung.com>
Thu, 21 Jul 2016 06:27:05 +0000 (15:27 +0900)
- The test codes are unnecessary, and thus
  they are removed

Change-Id: I67c1d916a7f1129e1d1ae721cff959d081979388
Signed-off-by: taeyoung <ty317.kim@samsung.com>
packaging/argos_watchdog.spec
test/CMakeLists.txt [deleted file]
test/argos-test.c [deleted file]
test/argos-test.service [deleted file]

index f2c6021..7daaf0c 100644 (file)
@@ -1,5 +1,4 @@
 %define libsystemd on
-%define test off
 
 Name:       argos_watchdog
 Summary:    ARGOS library to detect application malfunctions
@@ -38,8 +37,7 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
        -DCMAKE_INSTALL_PREFIX=%{_prefix} \
        -DFULLVER=%{version} \
        -DMAJORVER=${MAJORVER} \
-       -DLIBSYSTEMD=%{libsystemd} \
-       -DTEST=%{test}
+       -DLIBSYSTEMD=%{libsystemd}
 
 make
 
@@ -66,7 +64,3 @@ cp LICENSE %{buildroot}%{_datadir}/license/%{name}
 %{_libdir}/pkgconfig/%{name}.pc
 %{_libdir}/lib%{name}.so
 %manifest %{name}.manifest
-%if %{?test} == on
-%{_bindir}/argos-test
-/usr/lib/systemd/system/argos-test.service
-%endif
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
deleted file mode 100644 (file)
index edff044..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-PROJECT(argos-test C)
-
-SET(SRCS
-       argos-test.c
-)
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
-
-INCLUDE(FindPkgConfig)
-pkg_check_modules(pkgs REQUIRED argos_watchdog)
-
-FOREACH(flag ${pkgs_CFLAGS})
-       SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
-ENDFOREACH(flag)
-
-SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -g -fno-omit-frame-pointer")
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIE")
-SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed -pie")
-
-ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
-
-ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})
-TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} argos_watchdog)
-
-INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)
-INSTALL(FILES
-       ${CMAKE_CURRENT_SOURCE_DIR}/argos-test.service
-       DESTINATION lib/systemd/system)
diff --git a/test/argos-test.c b/test/argos-test.c
deleted file mode 100644 (file)
index 287c74b..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * argos-test
- *
- * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#include <stdio.h>
-#include <unistd.h>
-#include <argos.h>
-
-#define NOTIFY_PEROID 10
-
-int main (void) {
-       int r;
-
-       while (1) {
-               r = aw_notify();
-               printf("aw_notify returns %d\n", r);
-               sleep(10);
-       }
-
-       return 0;
-}
diff --git a/test/argos-test.service b/test/argos-test.service
deleted file mode 100644 (file)
index b3ac83b..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-[Unit]
-Description=aw_notify test
-
-[Service]
-ExecStart=/usr/bin/argos-test
-WatchdogSec=30
-Restart=always