Commit 8671aed5 authored by Olivier Crête's avatar Olivier Crête

test-turn: Make it work against coturn

parent c92288f2
...@@ -340,10 +340,6 @@ udp_force_no_remove_tcp (void) ...@@ -340,10 +340,6 @@ udp_force_no_remove_tcp (void)
NICE_RELAY_TYPE_TURN_TCP); NICE_RELAY_TYPE_TURN_TCP);
} }
int int
main (int argc, char **argv) main (int argc, char **argv)
{ {
...@@ -362,11 +358,11 @@ main (int argc, char **argv) ...@@ -362,11 +358,11 @@ main (int argc, char **argv)
if (g_spawn_command_line_sync ("turnserver --help", &out_str, &err_str, NULL, if (g_spawn_command_line_sync ("turnserver --help", &out_str, &err_str, NULL,
NULL) && err_str) { NULL) && err_str) {
if (!strstr(err_str, "--user")) { if (!strstr(err_str, "--user")) {
g_print ("rfc5766-turn-server not installed, skipping turn test\n"); g_print ("coturn not installed, skipping turn test\n");
return 0; return 0;
} }
} else { } else {
g_print ("rfc5766-turn-server not installed, skipping turn test\n"); g_print ("coturn not installed, skipping turn test\n");
return 0; return 0;
} }
g_free (err_str); g_free (err_str);
...@@ -377,6 +373,9 @@ main (int argc, char **argv) ...@@ -377,6 +373,9 @@ main (int argc, char **argv)
"--user", "toto:0xaae440b3348d50265b63703117c7bfd5", "--user", "toto:0xaae440b3348d50265b63703117c7bfd5",
"--realm", "realm", "--realm", "realm",
"--listening-port", portstr, "--listening-port", portstr,
"--listening-ip", "127.0.0.1",
"--allow-loopback-peers",
"--no-cli",
NULL); NULL);
g_test_add_func ("/nice/turn/udp", udp_no_force_no_remove_udp); g_test_add_func ("/nice/turn/udp", udp_no_force_no_remove_udp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment