Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
paho.mqtt.c
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eclipse
paho.mqtt.c
Commits
1cec765a
Commit
1cec765a
authored
Aug 21, 2013
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change server ports for SSL tests
parent
23f12a6c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
test3.c
test/test3.c
+6
-7
No files found.
test/test3.c
View file @
1cec765a
...
@@ -93,9 +93,9 @@ struct Options
...
@@ -93,9 +93,9 @@ struct Options
{
{
"ssl://m2m.eclipse.org:18883"
,
"ssl://m2m.eclipse.org:18883"
,
"ssl://m2m.eclipse.org:18884"
,
"ssl://m2m.eclipse.org:18884"
,
"ssl://m2m.eclipse.org:18887"
,
"ssl://m2m.eclipse.org:18885"
,
"ssl://m2m.eclipse.org:18885"
,
"ssl://m2m.eclipse.org:18886"
,
"ssl://m2m.eclipse.org:18886"
,
"ssl://m2m.eclipse.org:18887"
,
NULL
,
NULL
,
0
,
0
,
"../../test/ssl/client.pem"
,
"../../test/ssl/client.pem"
,
...
@@ -163,12 +163,12 @@ void getopts(int argc, char** argv)
...
@@ -163,12 +163,12 @@ void getopts(int argc, char** argv)
printf
(
"Setting connection to %s
\n
"
,
options
.
connection
);
printf
(
"Setting connection to %s
\n
"
,
options
.
connection
);
sprintf
(
options
.
mutual_auth_connection
,
"ssl://%s:18884"
,
argv
[
count
]);
sprintf
(
options
.
mutual_auth_connection
,
"ssl://%s:18884"
,
argv
[
count
]);
printf
(
"Setting mutual_auth_connection to %s
\n
"
,
options
.
mutual_auth_connection
);
printf
(
"Setting mutual_auth_connection to %s
\n
"
,
options
.
mutual_auth_connection
);
sprintf
(
options
.
nocert_mutual_auth_connection
,
"ssl://%s:1888
5
"
,
argv
[
count
]);
sprintf
(
options
.
nocert_mutual_auth_connection
,
"ssl://%s:1888
7
"
,
argv
[
count
]);
printf
(
"Setting nocert_mutual_auth_connection to %s
\n
"
,
printf
(
"Setting nocert_mutual_auth_connection to %s
\n
"
,
options
.
nocert_mutual_auth_connection
);
options
.
nocert_mutual_auth_connection
);
sprintf
(
options
.
server_auth_connection
,
"ssl://%s:1888
6
"
,
argv
[
count
]);
sprintf
(
options
.
server_auth_connection
,
"ssl://%s:1888
5
"
,
argv
[
count
]);
printf
(
"Setting server_auth_connection to %s
\n
"
,
options
.
server_auth_connection
);
printf
(
"Setting server_auth_connection to %s
\n
"
,
options
.
server_auth_connection
);
sprintf
(
options
.
anon_connection
,
"ssl://%s:1888
7
"
,
argv
[
count
]);
sprintf
(
options
.
anon_connection
,
"ssl://%s:1888
6
"
,
argv
[
count
]);
printf
(
"Setting anon_connection to %s
\n
"
,
options
.
anon_connection
);
printf
(
"Setting anon_connection to %s
\n
"
,
options
.
anon_connection
);
}
}
else
else
...
@@ -1457,15 +1457,14 @@ int main(int argc, char** argv)
...
@@ -1457,15 +1457,14 @@ int main(int argc, char** argv)
{
{
int
*
numtests
=
&
tests
;
int
*
numtests
=
&
tests
;
int
rc
=
0
;
int
rc
=
0
;
int
(
*
tests
[])()
=
{
NULL
,
test1
,
test2a_s
,
test2a_m
,
test2b
,
test2c
,
test3a_s
,
test3a_m
,
test3b
,
test4_s
,
test4_m
};
int
(
*
tests
[])()
=
{
NULL
,
test1
,
test2a_s
,
test2a_m
,
test2b
,
test2c
,
test3a_s
,
test3a_m
,
test3b
,
test4_s
,
test4_m
,
/*test5a, test5b,*/
test5c
};
//test5a, test5b, test5c};
MQTTClient_nameValue
*
info
;
MQTTClient_nameValue
*
info
;
xml
=
fopen
(
"TEST-test3.xml"
,
"w"
);
xml
=
fopen
(
"TEST-test3.xml"
,
"w"
);
fprintf
(
xml
,
"<testsuite name=
\"
test3
\"
tests=
\"
%d
\"
>
\n
"
,
ARRAY_SIZE
(
tests
)
-
1
);
fprintf
(
xml
,
"<testsuite name=
\"
test3
\"
tests=
\"
%d
\"
>
\n
"
,
ARRAY_SIZE
(
tests
)
-
1
);
setenv
(
"MQTT_C_CLIENT_TRACE"
,
"ON"
,
1
);
setenv
(
"MQTT_C_CLIENT_TRACE"
,
"ON"
,
1
);
//
setenv("MQTT_C_CLIENT_TRACE_LEVEL", "ERROR", 1);
setenv
(
"MQTT_C_CLIENT_TRACE_LEVEL"
,
"ERROR"
,
1
);
getopts
(
argc
,
argv
);
getopts
(
argc
,
argv
);
if
(
options
.
test_no
==
0
)
if
(
options
.
test_no
==
0
)
{
/* run all the tests */
{
/* run all the tests */
...
...
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