Commit 90ebab31 authored by Oleksii Beketov's avatar Oleksii Beketov Committed by Randeep

Unit tests for SSL adapter (ca_adapter_net_ssl.c)

Change-Id: Ia9bb81012159df0f1b5f87d80e821610aeaa44c1
Signed-off-by: default avatarOleksii Beketov <ol.beketov@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12349Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep's avatarRandeep Singh <randeep.s@samsung.com>
Signed-off-by: default avatarOleksii Beketov <ol.beketov@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13179
parent 6b5a0c6f
......@@ -313,7 +313,7 @@ static void * memmem(const void *l, size_t lLen, const void *s, size_t sLen)
}
if (sLen == 1)
{
return memchr(l, (int)*cs, lLen);
return (void *)memchr(l, (int)*cs, lLen);
}
last = (char *)cl + lLen - sLen;
......
......@@ -66,27 +66,24 @@ else:
# Source files and Targets
######################################################################
tests_src = [
'catests.cpp',
'caprotocolmessagetest.cpp',
'ca_api_unittest.cpp',
'octhread_tests.cpp',
'uarraylist_test.cpp',
'ulinklist_test.cpp',
'uqueue_test.cpp'
]
if (('IP' in target_transport) or ('ALL' in target_transport)):
if target_os != 'arduino':
catests = catest_env.Program('catests', ['catests.cpp',
'caprotocolmessagetest.cpp',
'cablocktransfertest.cpp',
'ca_api_unittest.cpp',
'octhread_tests.cpp',
'uarraylist_test.cpp',
'ulinklist_test.cpp',
'uqueue_test.cpp'
])
else:
# Include all unit test files
catests = catest_env.Program('catests', ['catests.cpp',
'caprotocolmessagetest.cpp',
'ca_api_unittest.cpp',
'octhread_tests.cpp',
'uarraylist_test.cpp',
'ulinklist_test.cpp',
'uqueue_test.cpp'
])
tests_src = tests_src + ['cablocktransfertest.cpp']
if catest_env.get('SECURED') == '1':
tests_src = tests_src + ['ssladapter_test.cpp']
catests = catest_env.Program('catests', tests_src)
Alias("test", [catests])
......
This diff is collapsed.
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