diff options
-rw-r--r-- | src/conversation/test_conversation_api.c (renamed from src/conversation/test_voip.api.c) | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/conversation/test_voip.api.c b/src/conversation/test_conversation_api.c index dd20995d2..7860eb794 100644 --- a/src/conversation/test_voip.api.c +++ b/src/conversation/test_conversation_api.c | |||
@@ -18,12 +18,12 @@ | |||
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | /** | 20 | /** |
21 | * @file voip/src/test_voip_api.c | 21 | * @file src/test_conversation_api.c |
22 | * @brief testcase for voip_api.c | 22 | * @brief testcase for conversation_api.c |
23 | */ | 23 | */ |
24 | #include <gnunet/platform.h> | 24 | #include <gnunet/platform.h> |
25 | #include <gnunet/gnunet_util_lib.h> | 25 | #include <gnunet/gnunet_util_lib.h> |
26 | #include "gnunet_voip_service.h" | 26 | #include "gnunet_conversation_service.h" |
27 | 27 | ||
28 | 28 | ||
29 | static int ok = 1; | 29 | static int ok = 1; |
@@ -42,25 +42,25 @@ run (void *cls, | |||
42 | static int | 42 | static int |
43 | check () | 43 | check () |
44 | { | 44 | { |
45 | char *const argv[] = { "test-voip-api", NULL }; | 45 | char *const argv[] = { "test-conversation-api", NULL }; |
46 | struct GNUNET_GETOPT_CommandLineOption options[] = { | 46 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
47 | GNUNET_GETOPT_OPTION_END | 47 | GNUNET_GETOPT_OPTION_END |
48 | }; | 48 | }; |
49 | struct GNUNET_OS_Process *proc; | 49 | struct GNUNET_OS_Process *proc; |
50 | char *path = GNUNET_OS_get_libexec_binary_path ( "gnunet-service-voip"); | 50 | char *path = GNUNET_OS_get_libexec_binary_path ( "gnunet-service-conversation"); |
51 | if (NULL == path) | 51 | if (NULL == path) |
52 | { | 52 | { |
53 | fprintf (stderr, "Service executable not found `%s'\n", "gnunet-service-voip"); | 53 | fprintf (stderr, "Service executable not found `%s'\n", "gnunet-service-conversation"); |
54 | return; | 54 | return; |
55 | } | 55 | } |
56 | proc = GNUNET_OS_start_process (GNUNET_NO, GNUNET_OS_INHERIT_STD_ALL, NULL, NULL, | 56 | proc = GNUNET_OS_start_process (GNUNET_NO, GNUNET_OS_INHERIT_STD_ALL, NULL, NULL, |
57 | path, | 57 | path, |
58 | "gnunet-service-voip", | 58 | "gnunet-service-conversation", |
59 | NULL); | 59 | NULL); |
60 | 60 | ||
61 | GNUNET_free (path); | 61 | GNUNET_free (path); |
62 | GNUNET_assert (NULL != proc); | 62 | GNUNET_assert (NULL != proc); |
63 | GNUNET_PROGRAM_run (1, argv, "test-ext-voip", "nohelp", | 63 | GNUNET_PROGRAM_run (1, argv, "test-ext-conversation", "nohelp", |
64 | options, &run, &ok); | 64 | options, &run, &ok); |
65 | if (0 != GNUNET_OS_process_kill (proc, SIGTERM)) | 65 | if (0 != GNUNET_OS_process_kill (proc, SIGTERM)) |
66 | { | 66 | { |
@@ -76,10 +76,10 @@ check () | |||
76 | int | 76 | int |
77 | main (int argc, char *argv[]) | 77 | main (int argc, char *argv[]) |
78 | { | 78 | { |
79 | GNUNET_log_setup ("test_voip_api", | 79 | GNUNET_log_setup ("test_conversation_api", |
80 | "WARNING", | 80 | "WARNING", |
81 | NULL); | 81 | NULL); |
82 | return check (); | 82 | return check (); |
83 | } | 83 | } |
84 | 84 | ||
85 | /* end of test_voip_api.c */ | 85 | /* end of test_conversation_api.c */ |