Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
8671aed5
Commit
8671aed5
authored
Jan 04, 2023
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test-turn: Make it work against coturn
parent
c92288f2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
tests/test-turn.c
tests/test-turn.c
+5
-6
No files found.
tests/test-turn.c
View file @
8671aed5
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment