Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 92) sorted by relevance

1234

/openthread-3.5.0/tests/toranj/ncp/
Dtest-704-multi-radio-scan.py72 result = wpan.parse_scan_result(s1.active_scan()) variable
73 verify(n1.is_in_scan_result(result))
74 verify(not n2.is_in_scan_result(result))
75 verify(n3.is_in_scan_result(result))
78 result = wpan.parse_scan_result(s2.active_scan()) variable
79 verify(not n1.is_in_scan_result(result))
80 verify(n2.is_in_scan_result(result))
81 verify(n3.is_in_scan_result(result))
84 result = wpan.parse_scan_result(s3.active_scan()) variable
85 verify(n1.is_in_scan_result(result))
[all …]
Dtest-705-multi-radio-discover-scan.py72 result = wpan.parse_scan_result(s1.discover_scan()) variable
73 verify(n1.is_in_scan_result(result))
74 verify(not n2.is_in_scan_result(result))
75 verify(n3.is_in_scan_result(result))
78 result = wpan.parse_scan_result(s2.discover_scan()) variable
79 verify(not n1.is_in_scan_result(result))
80 verify(n2.is_in_scan_result(result))
81 verify(n3.is_in_scan_result(result))
84 result = wpan.parse_scan_result(s3.discover_scan()) variable
85 verify(n1.is_in_scan_result(result))
[all …]
/openthread-3.5.0/tests/toranj/cli/
Dtest-020-net-diag-vendor-info.py136 result = r2.cli('networkdiagnostic get', r1_rloc, VENDOR_NAME_TLV) variable
137 verify(len(result) == 2)
138 verify(result[1].startswith("Vendor Name:"))
139 verify(result[1].split(':')[1].strip() == r1.get_vendor_name())
143 result = r2.cli('networkdiagnostic get', r1_rloc, VENDOR_MODEL_TLV) variable
144 verify(len(result) == 2)
145 verify(result[1].startswith("Vendor Model:"))
146 verify(result[1].split(':')[1].strip() == r1.get_vendor_model())
150 result = r2.cli('networkdiagnostic get', r1_rloc, VENDOR_SW_VERSION_TLV) variable
151 verify(len(result) == 2)
[all …]
Dtest-602-channel-manager-channel-select.py84 result = cli.Node.parse_list(node.cli('channel monitor')[:5]) variable
85 verify(result['enabled'] == '1')
86 verify(int(result['count']) > 970)
92 result = cli.Node.parse_list(node.cli('channel manager')) variable
93 verify(result['channel'] == '0')
99 result = cli.Node.parse_list(node.cli('channel manager')) variable
100 verify(result['channel'] == '11')
118 result = cli.Node.parse_list(node.cli('channel manager')) variable
119 verify(result['channel'] == '12')
137 result = cli.Node.parse_list(node.cli('channel manager')) variable
[all …]
Dcli.py168 result = [
174 if len(result) > 1:
176 for line in result:
178 elif len(result) == 1:
183 return result
345 result = {}
348 result[fields[0].strip()] = fields[1].strip()
349 return result
390 result = {}
391 result['prefixes'] = outputs[1:routes_index]
[all …]
/openthread-3.5.0/tests/scripts/thread-cert/
Dv1_2_test_single_probe.py73 result = self.nodes[SSED_1].link_metrics_query_single_probe(leader_addr, 'p', 'block')
74 self.assertIn('PDU Counter', result)
75 self.assertEqual(len(result), 1)
82 result = self.nodes[SSED_1].link_metrics_query_single_probe(leader_addr, 'q', 'block')
83 self.assertIn('LQI', result)
84 self.assertEqual(len(result), 1)
91 result = self.nodes[SSED_1].link_metrics_query_single_probe(leader_addr, 'm', 'block')
92 self.assertIn('Margin', result)
93 self.assertEqual(len(result), 1)
100 result = self.nodes[SSED_1].link_metrics_query_single_probe(leader_addr, 'r', 'block')
[all …]
Dtest_anycast_locator.py117 result = node.locate(leader_aloc)
118 self.assertEqual(result[0], leader.get_mleid())
119 self.assertEqual(int(result[1], 0), leader.get_addr16())
134 result = node.locate(service_aloc)
135 self.assertEqual(result[0], router4.get_mleid())
136 self.assertEqual(int(result[1], 0), router4.get_addr16())
152 result = node.locate(service_aloc)
153 self.assertEqual(result[0], leader.get_mleid())
154 self.assertEqual(int(result[1], 0), leader.get_addr16())
157 result = node.locate(service_aloc)
[all …]
/openthread-3.5.0/src/core/api/
Dtcp_ext_api.cpp96 int result; in otTcpMbedTlsSslSendCallback() local
100 VerifyOrExit(error == OT_ERROR_NONE, result = MBEDTLS_ERR_SSL_INTERNAL_ERROR); in otTcpMbedTlsSslSendCallback()
101 VerifyOrExit(aLen == 0 || bytes_written != 0, result = MBEDTLS_ERR_SSL_WANT_WRITE); in otTcpMbedTlsSslSendCallback()
102 result = static_cast<int>(bytes_written); in otTcpMbedTlsSslSendCallback()
105 return result; in otTcpMbedTlsSslSendCallback()
114 int result; in otTcpMbedTlsSslRecvCallback() local
118 VerifyOrExit(error == OT_ERROR_NONE, result = MBEDTLS_ERR_SSL_INTERNAL_ERROR); in otTcpMbedTlsSslRecvCallback()
126 VerifyOrExit(aLen == 0 || bytes_read != 0, result = MBEDTLS_ERR_SSL_WANT_READ); in otTcpMbedTlsSslRecvCallback()
128 result = static_cast<int>(bytes_read); in otTcpMbedTlsSslRecvCallback()
131 return result; in otTcpMbedTlsSslRecvCallback()
/openthread-3.5.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_pkparse.function13 void pk_parse_keyfile_rsa( char * key_file, char * password, int result )
26 TEST_ASSERT( res == result );
42 void pk_parse_public_keyfile_rsa( char * key_file, int result )
51 TEST_ASSERT( res == result );
67 void pk_parse_public_keyfile_ec( char * key_file, int result )
76 TEST_ASSERT( res == result );
92 void pk_parse_keyfile_ec( char * key_file, char * password, int result )
101 TEST_ASSERT( res == result );
117 void pk_parse_key( data_t * buf, int result )
123 TEST_ASSERT( mbedtls_pk_parse_key( &pk, buf->x, buf->len, NULL, 0 ) == result );
Dtest_suite_ccm.function18 void mbedtls_ccm_setkey( int cipher_id, int key_size, int result )
30 TEST_ASSERT( ret == result );
122 data_t * add, data_t * result )
126 uint8_t * msg_n_tag = (uint8_t *)malloc( result->len + 2 );
130 memset( msg_n_tag, 0, result->len + 2 );
133 tag_len = result->len - msg->len;
141 TEST_ASSERT( memcmp( msg_n_tag, result->x, result->len ) == 0 );
144 TEST_ASSERT( msg_n_tag[result->len] == 0 && msg_n_tag[result->len + 1] == 0 );
155 data_t * add, int tag_len, int result,
172 msg->x, msg->x, msg->x + msg->len, tag_len ) == result );
[all …]
Dtest_suite_base64.function80 int dst_buf_size, int result )
93 TEST_ASSERT( mbedtls_base64_encode( dst_str, dst_buf_size, &len, src_str, src_len) == result );
100 if( result == 0 )
108 void mbedtls_base64_decode( char * src_string, char * dst_string, int result )
120 TEST_ASSERT( res == result );
121 if( result == 0 )
130 int result )
138 TEST_ASSERT( mbedtls_base64_encode( res, dst_buf_size, &len, src->x, src->len ) == result );
145 if( result == 0 )
158 int result )
[all …]
Dtest_suite_nist_kw.function129 int is_wrap, int result )
141 TEST_ASSERT( ret == result );
248 unsigned char result[528];
254 memset( result, '+', sizeof( result ) );
261 result, &result_len, sizeof( result ) ) == 0 );
265 TEST_ASSERT( memcmp( expected_result->x, result, result_len ) == 0 );
269 for( i = msg->len + 8 + padlen; i < sizeof( result ); i++ )
271 TEST_ASSERT( result[i] == '+' );
283 unsigned char result[528];
289 memset( result, '+', sizeof( result ) );
[all …]
Dtest_suite_timing.function60 int result;
64 result = mbedtls_timing_get_delay( &ctx );
65 TEST_ASSERT( result == -1 );
70 result = mbedtls_timing_get_delay( &ctx );
71 TEST_ASSERT( result >= 0 && result <= 2 );
Dtest_suite_pkcs1_v21.function14 data_t * result_str, int result )
42 output ) == result );
43 if( result == 0 )
58 int result )
92 NULL, 0 ) == result );
102 sizeof( output ) ) == result );
103 if( result == 0 )
121 int result )
158 hash_result, output ) == result );
159 if( result == 0 )
[all …]
Dtest_suite_entropy.function296 void entropy_threshold( int threshold, int chunk_size, int result )
319 if( result >= 0 )
325 result *= 2;
327 TEST_ASSERT( weak.calls == (size_t) result );
331 TEST_ASSERT( ret == result );
342 int result )
345 * if result >= 0: result = expected number of calls to source 1
346 * if result < 0: result = expected return code from mbedtls_entropy_func()
367 if( result >= 0 )
373 result *= 2;
[all …]
Dtest_suite_x509parse.function490 void mbedtls_x509_crl_parse( char * crl_file, int result )
498 TEST_ASSERT( mbedtls_x509_crl_parse_file( &crl, crl_file ) == result );
546 int result, int flags_result,
581 TEST_ASSERT( ret == result );
591 TEST_ASSERT( ret == result || ret == MBEDTLS_ERR_ECP_IN_PROGRESS );
602 char *cn_name_str, int result, int flags_result,
652 TEST_ASSERT( res == ( result ) );
664 TEST_ASSERT( res == ( result ) );
772 void mbedtls_x509_time_is_past( char * crt_file, char * entity, int result )
781 TEST_ASSERT( mbedtls_x509_time_is_past( &crt.valid_from ) == result );
[all …]
Dtest_suite_mpi.function53 * Writing the witness to the start of the buffer would result in the
437 int result )
453 TEST_ASSERT( mbedtls_mpi_write_binary( &X, buf, buflen ) == result );
454 if( result == 0)
469 int result )
485 TEST_ASSERT( mbedtls_mpi_write_binary_le( &X, buf, buflen ) == result );
486 if( result == 0)
500 data_t * input_A, int result )
516 TEST_ASSERT( ret == result );
518 if( result == 0 )
[all …]
/openthread-3.5.0/third_party/mbedtls/repo/tests/scripts/
Drun-test-suites.pl101 my $result = `$command`;
103 $suite_cases_passed = () = $result =~ /.. PASS/g;
104 $suite_cases_failed = () = $result =~ /.. FAILED/g;
105 $suite_cases_skipped = () = $result =~ /.. ----/g;
111 print $result;
119 print $result;
124 my ($passed, $tests, $skipped) = $result =~ /([0-9]*) \/ ([0-9]*) tests.*?([0-9]*) skipped/;
Dlist_internal_identifiers.py46 result = name_check.parse_identifiers([
50 result.sort(key=lambda x: x.name)
52 identifiers = ["{}\n".format(match.name) for match in result]
/openthread-3.5.0/src/core/thread/
Ddiscover_scanner.cpp303 ScanResult result; in HandleDiscoveryResponse() local
315 memset(&result, 0, sizeof(result)); in HandleDiscoveryResponse()
316 result.mDiscover = true; in HandleDiscoveryResponse()
317 result.mPanId = linkInfo->mPanId; in HandleDiscoveryResponse()
318 result.mChannel = linkInfo->mChannel; in HandleDiscoveryResponse()
319 result.mRssi = linkInfo->mRss; in HandleDiscoveryResponse()
320 result.mLqi = linkInfo->mLqi; in HandleDiscoveryResponse()
322 … aRxInfo.mMessageInfo.GetPeerAddr().GetIid().ConvertToExtAddress(AsCoreType(&result.mExtAddress)); in HandleDiscoveryResponse()
334 result.mVersion = discoveryResponse.GetVersion(); in HandleDiscoveryResponse()
335 result.mIsNative = discoveryResponse.IsNativeCommissioner(); in HandleDiscoveryResponse()
[all …]
/openthread-3.5.0/third_party/mbedtls/repo/programs/pkey/
Dpk_decrypt.c72 unsigned char result[1024]; in main() local
81 memset(result, 0, sizeof( result ) ); in main()
140 if( ( ret = mbedtls_pk_decrypt( &pk, buf, i, result, &olen, sizeof(result), in main()
150 mbedtls_printf( "The decrypted result is: '%s'\n\n", result ); in main()
Drsa_decrypt.c72 unsigned char result[1024]; in main() local
77 memset(result, 0, sizeof( result ) ); in main()
181 buf, result, 1024 ); in main()
191 mbedtls_printf( "The decrypted result is: '%s'\n\n", result ); in main()
/openthread-3.5.0/tools/harness-automation/autothreadharness/
Drunner.py69 self.result = json.load(open(self.path, 'r'))
75 logger.info('Initial state is %s', json.dumps(self.result, indent=2))
106 fails = self.result.get(test.__class__.__name__, {}).get('fails', 0)
109 self.result[str(test.__class__.__name__)] = {
120 …json.dump(OrderedDict(sorted(self.result.items(), key=lambda t: t[0])), open(self.path, 'w'), inde…
321 result = SimpleTestResult(result_file, auto_reboot_args, keep_explorer, add_all_devices)
328 suite.run(result)
329 return result
410 result = discover(**args)
414 … failed_names = {name for name in result.result if result.result[name]['passed'] is False}
[all …]
/openthread-3.5.0/third_party/mbedtls/repo/tests/src/
Dhelpers.c84 if( mbedtls_test_info.result == MBEDTLS_TEST_RESULT_FAILED ) in mbedtls_test_fail()
90 mbedtls_test_info.result = MBEDTLS_TEST_RESULT_FAILED; in mbedtls_test_fail()
98 mbedtls_test_info.result = MBEDTLS_TEST_RESULT_SKIPPED; in mbedtls_test_skip()
111 mbedtls_test_info.result = MBEDTLS_TEST_RESULT_SUCCESS; in mbedtls_test_info_reset()
125 if( mbedtls_test_info.result == MBEDTLS_TEST_RESULT_FAILED ) in mbedtls_test_equal()
/openthread-3.5.0/tests/scripts/thread-cert/pktverify/
Dpacket_verifier.py189 result = VerifyResult()
201 result.record_last('child_id_request', pkts)
208 result.record_last('child_id_response', pkts)
214 result.record_last('mle_advertisement', pkts)
217 return result
246 result = VerifyResult()
256 result.record_last('ping_request', pkts)
274 result.record_last('ping_reply', pkts)
283 return result

1234