2 * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
10 * @brief test suite for Connect/Disconnect to System Controller API
22 #include "ico_syc_common.h"
24 #include "tst_common.h"
26 /* ----------------------------------------------- */
28 /* ----------------------------------------------- */
30 /* ----------------------------------------------- */
31 /* Define of static function */
32 /* ----------------------------------------------- */
33 static void tst_connect(void);
34 static void tst_disconnect(void);
35 static int ico_syc_common_test(void);
37 /* ----------------------------------------------- */
39 /* ----------------------------------------------- */
45 char *func = "ico_syc_connect";
47 ret = ico_syc_connect(NULL, NULL);
49 print_ng("%s (ret: %d)", func, ret);
60 (void)ico_syc_disconnect();
61 print_ok("(void)ico_syc_disconnect");
79 /* ----------------------------------------------- */
81 /* ----------------------------------------------- */
82 static GMainLoop *g_mainloop = NULL;
85 exit_program(gpointer data)
87 g_main_loop_quit(g_mainloop);
94 main(int argc, char **argv)
96 g_setenv("PKG_NAME", "org.test.ico.syc_common", 1);
97 g_mainloop = g_main_loop_new(NULL, 0);
100 printf("##### ico_syc_common API Test Start #####\n");
101 ico_syc_common_test();
102 printf("##### ico_syc_common API Test End #####\n");
105 g_timeout_add_seconds(1, exit_program, NULL);
106 g_main_loop_run(g_mainloop);
110 /* vim: set expandtab ts=4 sw=4: */