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
0e06d167
Commit
0e06d167
authored
Oct 14, 2013
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporary changes to test3 for debugging
parent
d1f07125
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
429 additions
and
5 deletions
+429
-5
MQTTTest_v2.c
test/MQTTTest_v2.c
+416
-0
test3.c
test/test3.c
+13
-5
No files found.
test/MQTTTest_v2.c
0 → 100644
View file @
0e06d167
This diff is collapsed.
Click to expand it.
test/test3.c
View file @
0e06d167
...
...
@@ -125,21 +125,21 @@ char* test_map[] =
"5c"
,
// 13
};
void
getopts
(
int
argc
,
char
**
argv
)
{
int
count
=
1
;
while
(
count
<
argc
)
{
if
(
strcmp
(
argv
[
count
],
"--help"
)
==
0
)
{
usage
();
}
if
(
strcmp
(
argv
[
count
],
"--help"
)
==
0
)
usage
();
else
if
(
strcmp
(
argv
[
count
],
"--test_no"
)
==
0
)
{
if
(
++
count
<
argc
)
{
int
i
;
for
(
i
=
1
;
i
<
ARRAY_SIZE
(
test_map
);
++
i
)
{
if
(
strcmp
(
argv
[
count
],
test_map
[
i
])
==
0
)
...
...
@@ -928,6 +928,14 @@ int test3a_s(struct Options options)
if
(
options
.
server_key_file
!=
NULL
)
opts
.
ssl
->
trustStore
=
options
.
server_key_file
;
/*file of certificates trusted by client*/
/* these settings are for mutual authentication, should not be needed */
opts
.
ssl
->
keyStore
=
options
.
client_key_file
;
/*file of certificate for client to present to server*/
if
(
options
.
client_key_pass
)
opts
.
ssl
->
privateKeyPassword
=
options
.
client_key_pass
;
if
(
options
.
client_private_key_file
)
opts
.
ssl
->
privateKey
=
options
.
client_private_key_file
;
/* remove these previous lines, for test proper */
MyLog
(
LOGA_DEBUG
,
"Connecting"
);
if
(
!
(
assert
(
"Good rc from connect"
,
(
rc
=
MQTTClient_connect
(
c
,
&
opts
))
==
MQTTCLIENT_SUCCESS
,
"rc was %d"
,
rc
)))
...
...
@@ -1482,7 +1490,7 @@ int main(int argc, char** argv)
fprintf
(
xml
,
"<testsuite name=
\"
test3
\"
tests=
\"
%d
\"
>
\n
"
,
ARRAY_SIZE
(
tests
)
-
1
);
setenv
(
"MQTT_C_CLIENT_TRACE"
,
"ON"
,
1
);
//setenv("MQTT_C_CLIENT_TRACE_LEVEL", "
PROTOCOL
", 1);
//setenv("MQTT_C_CLIENT_TRACE_LEVEL", "
ERROR
", 1);
getopts
(
argc
,
argv
);
if
(
options
.
test_no
==
0
)
{
/* 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