Remove unused test_lazymount 26/174826/1 accepted/tizen/unified/20180411.065544 submit/tizen/20180410.045201
authorHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 4 Apr 2018 10:20:01 +0000 (19:20 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 4 Apr 2018 10:20:01 +0000 (19:20 +0900)
Change-Id: Ie83864befb6e03fe6c86374c5adb2d95da6cebab
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Makefile.am
src/liblazymount/test_lazymount.c [deleted file]

index a651e89..aa3caec 100644 (file)
@@ -148,22 +148,6 @@ noinst_liblazymount_la_SOURCES = \
        src/liblazymount/lazy_mount_interface.c
 
 # ------------------------------------------------------------------------------
-bin_PROGRAMS = \
-       test_lazymount
-
-test_lazymount_SOURCES = \
-       src/liblazymount/test_lazymount.c
-
-test_lazymount_CFLAGS = \
-       $(AM_CFLAGS) \
-       -I. -Isrc/liblazymount \
-       $(LIBLAZYMOUNT_PC_CFLAGS)
-
-test_lazymount_LDADD = \
-       -lvconf \
-       -lsystemd \
-       liblazymount.la
-
 systemunit_DATA += \
        units/lazy_mount.path \
        units/lazy_mount.service
diff --git a/src/liblazymount/test_lazymount.c b/src/liblazymount/test_lazymount.c
deleted file mode 100644 (file)
index c38c4c2..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-#include <lazy_mount.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <systemd/sd-daemon.h>
-#include <string.h>
-
-int get_input()
-{
-       int data;
-       int i = 0;
-       char c_data[2];
-       while (1) {
-           data = getchar();
-               if (i < 2)
-                       c_data[i] = (char)data;
-               i++;
-               if (data == 10 || data == 13)
-                       break;
-       }
-       if (i > 2)
-               return -1;
-
-       c_data[1] = 0;
-       return atoi(c_data);
-}
-
-int main(int argc, char **argv)
-{
-       int data;
-       int sl_ret;
-       int i = 0;
-       if (argc == 2 && strncmp(argv[1], "wait", 5) == 0) {
-               for (i = 0 ; i < 3 ; i++) {
-                       sl_ret = wait_mount_user();
-                       if (sl_ret != 0) continue;
-                       else break;
-               }
-
-               if (i == 3) return -1;
-               sd_notify(0, "READY=1");
-               return 0;
-       }
-       while (1) {
-               printf("Test\n");
-               printf("1. get_need_ui_for_lazy_mount()\n");
-               printf("2. do_mount_user()\n");
-               printf("3. wait_mount_user()\n");
-               printf("4. Exit to test.\n");
-               printf("Select test : ");
-               data = get_input();
-
-               switch (data) {
-               case 1:
-                       sl_ret = get_need_ui_for_lazy_mount();
-                   printf("get_need_ui_for_lazy_mount() returns %d\n", sl_ret);
-                       break;
-               case 2:
-                       printf("Doing mount user data....\n");
-                       sl_ret = do_mount_user();
-                   printf("do_mount_user() returns %d\n", sl_ret);
-                       break;
-               case 3:
-                       printf("Waiting mount user data....\n");
-                       sl_ret = wait_mount_user();
-                       printf("wait_mount_user() returns %d\n", sl_ret);
-                       break;
-               case 4:
-                   printf("exit\n");
-                       return 0;
-               default:
-                   printf("Unknown : %d\n", data);
-                       break;
-               }
-       }
-       return 0;
-}