Home
last modified time | relevance | path

Searched refs:dut1 (Results 1 – 25 of 39) sorted by relevance

12

/hal_espressif-3.6.0/examples/peripherals/sdio/
Dsdio_test.py39 dut1 = env.get_dut('sdio_host', 'examples/peripherals/sdio/host', dut_class=ttfw_idf.ESP32DUT)
41 dut1.start_app()
43 dut1.expect('host ready, start initializing slave...')
46 dut1.expect('0a 0d 10 13 16 19 1c 1f 22 25 28 2b 2e 31 34 37')
47 dut1.expect('3a 3d 40 43 46 49 4c 4f 52 55 58 5b 00 00 00 00')
48 dut1.expect('6a 6d 70 73 76 79 7c 7f 82 85 88 8b 8e 91 94 97')
49 dut1.expect('9a 9d a0 a3 a6 a9 ac af b2 b5 b8 bb be c1 c4 c7')
57 dut1.expect('host int: 0')
58 dut1.expect('host int: 1')
59 dut1.expect('host int: 2')
[all …]
/hal_espressif-3.6.0/examples/protocols/esp_http_client/
Desp_http_client_test.py14dut1 = env.get_dut('esp_http_client', 'examples/protocols/esp_http_client', dut_class=ttfw_idf.ESP…
16 binary_file = os.path.join(dut1.app.binary_path, 'esp_http_client_example.bin')
20 dut1.start_app()
21 dut1.expect('Connected to AP, begin http example', timeout=30)
22 dut1.expect(re.compile(r'HTTP GET Status = 200, content_length = (\d)'))
23 dut1.expect(re.compile(r'HTTP POST Status = 200, content_length = (\d)'))
24 dut1.expect(re.compile(r'HTTP PUT Status = 200, content_length = (\d)'))
25 dut1.expect(re.compile(r'HTTP PATCH Status = 200, content_length = (\d)'))
26 dut1.expect(re.compile(r'HTTP DELETE Status = 200, content_length = (\d)'))
27 dut1.expect(re.compile(r'HTTP HEAD Status = 200, content_length = (\d)'))
[all …]
/hal_espressif-3.6.0/examples/system/ota/simple_ota_example/
Dexample_test.py134dut1 = env.get_dut('simple_ota_example', 'examples/system/ota/simple_ota_example', dut_class=ttfw_…
136 binary_file = os.path.join(dut1.app.binary_path, 'simple_ota.bin')
139 sha256_bootloader, sha256_app = calc_all_sha256(dut1)
143 …thread1 = multiprocessing.Process(target=start_https_server, args=(dut1.app.binary_path, host_ip, …
146 dut1.start_app()
147 dut1.expect('Loaded app from partition at offset 0x10000', timeout=30)
148 …check_sha256(sha256_bootloader, dut1.expect(re.compile(r'SHA-256 for bootloader:\s+([a-f0-9]+)'))[…
149 …check_sha256(sha256_app, dut1.expect(re.compile(r'SHA-256 for current firmware:\s+([a-f0-9]+)'))[0…
151 ip_address = dut1.expect(re.compile(r' sta ip: ([^,]+),'), timeout=30)
156 dut1.expect('Starting OTA example', timeout=30)
[all …]
/hal_espressif-3.6.0/examples/system/ota/advanced_https_ota/
Dexample_test.py118dut1 = env.get_dut('advanced_https_ota_example', 'examples/system/ota/advanced_https_ota', dut_cla…
125 binary_file = os.path.join(dut1.app.binary_path, bin_name)
131 …thread1 = multiprocessing.Process(target=start_https_server, args=(dut1.app.binary_path, host_ip, …
134 dut1.start_app()
136 dut1.expect('Loaded app from partition at offset', timeout=30)
138 ip_address = dut1.expect(re.compile(r' (sta|eth) ip: ([^,]+),'), timeout=30)
143 dut1.expect('Starting Advanced OTA example', timeout=30)
146 dut1.write('https://' + host_ip + ':' + str(server_port) + '/' + bin_name)
147 dut1.expect('Loaded app from partition at offset', timeout=60)
148 dut1.expect('Starting Advanced OTA example', timeout=30)
[all …]
/hal_espressif-3.6.0/examples/system/ota/native_ota_example/
Dexample_test.py147dut1 = env.get_dut('native_ota_example', 'examples/system/ota/native_ota_example', dut_class=ttfw_…
154 binary_file = os.path.join(dut1.app.binary_path, bin_name)
160 …thread1 = multiprocessing.Process(target=start_https_server, args=(dut1.app.binary_path, host_ip, …
163 dut1.start_app()
165 dut1.expect('Loaded app from partition at offset', timeout=30)
167 ip_address = dut1.expect(re.compile(r' (sta|eth) ip: ([^,]+),'), timeout=30)
172 dut1.expect('Starting OTA example', timeout=30)
175 dut1.write('https://' + host_ip + ':' + str(server_port) + '/' + bin_name)
176 dut1.expect('Loaded app from partition at offset', timeout=60)
177 dut1.expect('Starting OTA example', timeout=30)
[all …]
/hal_espressif-3.6.0/examples/protocols/http_server/persistent_sockets/
Dhttp_server_persistence_test.py36 dut1 = env.get_dut('http_server', 'examples/protocols/http_server/persistent_sockets',
40 binary_file = os.path.join(dut1.app.binary_path, 'persistent_sockets.bin')
46 dut1.start_app()
50 got_ip = dut1.expect(re.compile(r'(?:[\s\S]*)IPv4 address: (\d+.\d+.\d+.\d+)'), timeout=30)[0]
51 … got_port = dut1.expect(re.compile(r"(?:[\s\S]*)Starting server on port: '(\d+)'"), timeout=30)[0]
57 dut1.expect('Registering URI handlers', timeout=30)
68 dut1.expect('/adder visitor count = ' + str(visitor), timeout=30)
69 dut1.expect('/adder PUT handler read ' + str(num), timeout=30)
70 dut1.expect('PUT allocating new session', timeout=30)
78 dut1.expect('/adder visitor count = ' + str(visitor), timeout=30)
[all …]
/hal_espressif-3.6.0/examples/protocols/http_server/simple/
Dhttp_server_simple_test.py68dut1 = env.get_dut('http_server', 'examples/protocols/http_server/simple', dut_class=ttfw_idf.ESP3…
71 binary_file = os.path.join(dut1.app.binary_path, 'simple.bin')
77 dut1.start_app()
81 got_ip = dut1.expect(re.compile(r'(?:[\s\S]*)IPv4 address: (\d+.\d+.\d+.\d+)'), timeout=30)[0]
82 … got_port = dut1.expect(re.compile(r"(?:[\s\S]*)Starting server on port: '(\d+)'"), timeout=30)[0]
88 dut1.expect('Registering URI handlers', timeout=30)
97 dut1.expect(re.compile(r'(?:[\s\S]*)Found header => Host: (\d+.\d+.\d+.\d+)'), timeout=30)[0]
100 dut1.expect('Found header => Test-Header-2: Test-Value-2', timeout=30)
101 dut1.expect('Found header => Test-Header-1: Test-Value-1', timeout=30)
102 dut1.expect('Found URL query parameter => query1=value1', timeout=30)
[all …]
/hal_espressif-3.6.0/examples/protocols/https_request/
Dexample_test.py17dut1 = env.get_dut('https_request', 'examples/protocols/https_request', dut_class=ttfw_idf.ESP32DU…
19 binary_file = os.path.join(dut1.app.binary_path, 'https_request.bin')
24 dut1.start_app()
29 dut1.expect(re.compile('https_request using crt bundle'), timeout=30)
30 dut1.expect_all('Certificate validated',
43 dut1.expect(re.compile('https_request using cacert_buf'), timeout=20)
44 dut1.expect_all('Connection established...',
56 dut1.expect(re.compile('https_request using global ca_store'), timeout=20)
57 dut1.expect_all('Connection established...',
69 dut1.expect(re.compile('https_request using saved client session'), timeout=20)
[all …]
/hal_espressif-3.6.0/examples/protocols/https_mbedtls/
Dexample_test.py23 dut1 = env.get_dut(app_name, 'examples/protocols/https_mbedtls', dut_class=ttfw_idf.ESP32DUT)
25 binary_file = os.path.join(dut1.app.binary_path, 'https_mbedtls.bin')
29 dut1.start_app()
30 dut1.expect('Connected.', timeout=30)
32 dut1.expect('Performing the SSL/TLS handshake...')
33 dut1.expect('Certificate verified.')
35 dut1.expect('Writing HTTP request...')
36 dut1.expect('Reading HTTP response...')
37 dut1.expect(re.compile(r'Completed (\d) requests'))
40 res = dut1.expect(ttfw_idf.MINIMUM_FREE_HEAP_SIZE_RE)
[all …]
/hal_espressif-3.6.0/examples/protocols/https_x509_bundle/
Dexample_test.py15 dut1 = env.get_dut('https_x509_bundle', 'examples/protocols/https_x509_bundle')
17 binary_file = os.path.join(dut1.app.binary_path, 'https_x509_bundle.bin')
21 dut1.start_app()
22 num_URLS = dut1.expect(re.compile(r'Connecting to (\d+) URLs'), timeout=30)
23 dut1.expect(re.compile(r'Connection established to ([\s\S]*)'), timeout=30)
24 dut1.expect('Completed {} connections'.format(num_URLS[0]), timeout=60)
27dut1 = env.get_dut('https_x509_bundle', 'examples/protocols/https_x509_bundle', app_config_name='s…
29 binary_file = os.path.join(dut1.app.binary_path, 'https_x509_bundle.bin')
33 dut1.start_app()
34 num_URLS = dut1.expect(re.compile(r'Connecting to (\d+) URLs'), timeout=30)
[all …]
/hal_espressif-3.6.0/examples/protocols/http_request/
Dexample_test.py21dut1 = env.get_dut('http_request', 'examples/protocols/http_request', dut_class=ttfw_idf.ESP32DUT)
23 binary_file = os.path.join(dut1.app.binary_path, 'http_request.bin')
27 dut1.start_app()
28 dut1.expect(re.compile(r'DNS lookup succeeded.'), timeout=30)
30 dut1.expect(' ... connected', timeout=60)
31 dut1.expect(' ... socket send success')
32 dut1.expect(' ... set socket receiving timeout success')
34 dut1.expect(re.compile(r'HTTP/1.0 200 OK'))
36 dut1.expect('... done reading from socket. Last read return=0 errno=128')
37 dut1.expect(re.compile(r'(\d)...'))
/hal_espressif-3.6.0/examples/protocols/http_server/file_serving/
Dhttp_server_file_serving_test.py31dut1 = env.get_dut('http file_serving', 'examples/protocols/http_server/file_serving', dut_class=t…
34 binary_file = os.path.join(dut1.app.binary_path, 'file_server.bin')
39 dut1.erase_flash()
42 dut1.start_app()
46 got_ip = dut1.expect(re.compile(r'IPv4 address: (\d+\.\d+\.\d+\.\d+)'), timeout=30)[0]
48 dut1.expect('Initializing SPIFFS', timeout=30)
49 got_port = dut1.expect(re.compile(r"Starting HTTP Server on port: '(\d+)'"), timeout=30)[0]
66 dut1.expect('File reception complete', timeout=10)
78 dut1.expect('File sending complete', timeout=10)
94 dut1.expect('File already exists : /spiffs/' + str(upload_file_name), timeout=10)
[all …]
/hal_espressif-3.6.0/examples/protocols/https_server/simple/
Dexample_test.py101dut1 = env.get_dut('https_server_simple', 'examples/protocols/https_server/simple', dut_class=ttfw…
103 binary_file = os.path.join(dut1.app.binary_path, 'https_server.bin')
107 dut1.start_app()
109 dut1.expect(re.compile(r'Starting server'))
110 got_port = dut1.expect(re.compile(r'Server listening on port (\d+)'), timeout=30)[0]
113 got_ip = dut1.expect(re.compile(r'IPv4 address: (\d+\.\d+\.\d+\.\d+)'), timeout=30)[0]
142 dut1.expect('performing session handshake')
151 serial_number = dut1.expect(re.compile(r'serial number(.*)'), timeout=5)[0]
152 issuer_name = dut1.expect(re.compile(r'issuer name(.*)'), timeout=5)[0]
153 expiry = dut1.expect(re.compile(r'expires on(.*)'), timeout=5)[0]
/hal_espressif-3.6.0/tools/test_apps/protocols/pppos/
Dapp_test.py42dut1 = env.get_dut('pppos_connect_test', 'tools/test_apps/protocols/pppos', dut_class=ttfw_idf.ESP…
45 server_ip = dut1.app.get_sdkconfig()['CONFIG_TEST_APP_PPP_SERVER_IP'].replace('"','')
46 client_ip = dut1.app.get_sdkconfig()['CONFIG_TEST_APP_PPP_CLIENT_IP'].replace('"','')
47 port_nr = dut1.app.get_sdkconfig()['CONFIG_TEST_APP_TCP_PORT']
52 print('Starting the test on {}'.format(dut1))
53 dut1.start_app()
57 port = '/dev/ttyUSB0' if dut1.port == '/dev/ttyUSB1' else '/dev/ttyUSB1'
69 …ip6_addr = dut1.expect(re.compile(r'Got IPv6 address (\w{4}\:\w{4}\:\w{4}\:\w{4}\:\w{4}\:\w{4}\:\w…
72 dut1.expect(re.compile(r'Socket listening'))
83 dut1.expect(re.compile(r'IPv6 test passed'))
[all …]
/hal_espressif-3.6.0/tools/ci/python_packages/tiny_test_fw/bin/
Dexample.py30dut1 = env.get_dut('https_request', 'examples/protocols/https_request', dut_class=ttfw_idf.ESP32DU…
31 dut1.start_app()
32 dut1.expect(re.compile(r'Connecting to www.howsmyssl.com:443'), timeout=30)
33 dut1.expect('Performing the SSL/TLS handshake')
34 dut1.expect('Certificate verified.', timeout=15)
35 dut1.expect_all(re.compile(r'Cipher suite is TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256'),
38 dut1.expect(re.compile(r'Completed (\d) requests'))
/hal_espressif-3.6.0/examples/protocols/websocket/
Dexample_test.py108 dut1 = env.get_dut('websocket', 'examples/protocols/websocket', dut_class=ttfw_idf.ESP32DUT)
110 binary_file = os.path.join(dut1.app.binary_path, 'websocket_example.bin')
115 if 'CONFIG_WEBSOCKET_URI_FROM_STDIN' in dut1.app.get_sdkconfig():
118 uri = dut1.app.get_sdkconfig()['CONFIG_WEBSOCKET_URI'].strip('"')
126 dut1.start_app()
133 dut1.expect('Please enter uri of websocket endpoint', timeout=30)
134 dut1.write(uri)
135 test_echo(dut1)
137 test_recv_long_msg(dut1, ws, 2000, 3)
138 test_close(dut1)
[all …]
/hal_espressif-3.6.0/components/lwip/weekend_test/
Dnet_suite_test.py19 def io_listener(dut1): argument
25 data = dut1.expect(re.compile(r'PacketOut:\[([a-fA-F0-9]+)\]'), timeout=5)
39 def sock_listener(dut1): argument
54 dut1.write(str.encode(packet))
73 dut1 = env.get_dut('net_suite', 'examples/system/network_tests', dut_class=ttfw_idf.ESP32DUT)
75 binary_file = os.path.join(dut1.app.binary_path, 'net_suite.bin')
78 ttfw_idf.check_performance('net_suite', bin_size // 1024, dut1.TARGET)
79 dut1.start_app()
80 thread1 = Thread(target=sock_listener, args=(dut1, ))
81 thread2 = Thread(target=io_listener, args=(dut1, ))
/hal_espressif-3.6.0/examples/protocols/sockets/udp_server/
Dexample_test.py62dut1 = env.get_dut('udp_server', 'examples/protocols/sockets/udp_server', dut_class=ttfw_idf.ESP32…
64 binary_file = os.path.join(dut1.app.binary_path, 'udp_server.bin')
69 dut1.start_app()
71 … ipv4 = dut1.expect(re.compile(r' IPv4 address: ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)'), timeout=30)[0]
73 ipv6 = dut1.expect(re.compile(r' IPv6 address: ({})'.format(ipv6_r)), timeout=30)[0]
75 dut1.expect(re.compile(r'Waiting for data'), timeout=10)
86 dut1.expect(MESSAGE)
97 dut1.expect(MESSAGE)
/hal_espressif-3.6.0/examples/protocols/sockets/udp_client/
Dexample_test.py89dut1 = env.get_dut('udp_client', 'examples/protocols/sockets/udp_client', dut_class=ttfw_idf.ESP32…
91 binary_file = os.path.join(dut1.app.binary_path, 'udp_client.bin')
96 dut1.start_app()
98 … ipv4 = dut1.expect(re.compile(r' IPv4 address: ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)'), timeout=30)[0]
100 ipv6 = dut1.expect(re.compile(r' IPv6 address: ({})'.format(ipv6_r)), timeout=30)[0]
107 dut1.write(server_ip)
108 dut1.expect(re.compile(r'OK: Message from ESP32'))
113 dut1.write(server_ip)
114 dut1.expect(re.compile(r'OK: Message from ESP32'))
/hal_espressif-3.6.0/examples/protocols/sockets/tcp_client/
Dexample_test.py96dut1 = env.get_dut('tcp_client', 'examples/protocols/sockets/tcp_client', dut_class=ttfw_idf.ESP32…
98 binary_file = os.path.join(dut1.app.binary_path, 'tcp_client.bin')
103 dut1.start_app()
105 … ipv4 = dut1.expect(re.compile(r' IPv4 address: ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)'), timeout=30)[0]
107 ipv6 = dut1.expect(re.compile(r' IPv6 address: ({})'.format(ipv6_r)), timeout=30)[0]
114 dut1.write(server_ip)
115 dut1.expect(re.compile(r'OK: Message from ESP32'))
120 dut1.write(server_ip)
121 dut1.expect(re.compile(r'OK: Message from ESP32'))
/hal_espressif-3.6.0/examples/protocols/asio/tcp_echo_server/
Dasio_tcp_server_test.py19dut1 = env.get_dut('tcp_echo_server', 'examples/protocols/asio/tcp_echo_server', dut_class=ttfw_id…
21 binary_file = os.path.join(dut1.app.binary_path, 'asio_tcp_echo_server.bin')
25 dut1.start_app()
27 data = dut1.expect(re.compile(r' IPv4 address: ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)'), timeout=30)
29 dut1.expect('ASIO engine is up and running', timeout=1)
43 dut1.expect(test_msg.decode())
/hal_espressif-3.6.0/examples/protocols/asio/udp_echo_server/
Dasio_udp_server_test.py19dut1 = env.get_dut('udp_echo_server', 'examples/protocols/asio/udp_echo_server', dut_class=ttfw_id…
21 binary_file = os.path.join(dut1.app.binary_path, 'asio_udp_echo_server.bin')
25 dut1.start_app()
27 data = dut1.expect(re.compile(r' IPv4 address: ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)'), timeout=30)
29 dut1.expect('ASIO engine is up and running', timeout=1)
43 dut1.expect(test_msg.decode())
/hal_espressif-3.6.0/examples/protocols/sockets/tcp_server/
Dexample_test.py58dut1 = env.get_dut('tcp_client', 'examples/protocols/sockets/tcp_server', dut_class=ttfw_idf.ESP32…
60 binary_file = os.path.join(dut1.app.binary_path, 'tcp_server.bin')
65 dut1.start_app()
67 … ipv4 = dut1.expect(re.compile(r' IPv4 address: ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)'), timeout=30)[0]
69 ipv6 = dut1.expect(re.compile(r' IPv6 address: ({})'.format(ipv6_r)), timeout=30)[0]
76 dut1.expect(MESSAGE)
81 dut1.expect(MESSAGE)
/hal_espressif-3.6.0/examples/protocols/http_server/ws_echo_server/
Dws_server_example_test.py53dut1 = env.get_dut('http_server', 'examples/protocols/http_server/ws_echo_server', dut_class=ttfw_…
56 binary_file = os.path.join(dut1.app.binary_path, 'ws_echo_server.bin')
62 dut1.start_app()
66 got_ip = dut1.expect(re.compile(r'IPv4 address: (\d+.\d+.\d+.\d+)'), timeout=60)[0]
67 got_port = dut1.expect(re.compile(r"Starting server on port: '(\d+)'"), timeout=60)[0]
81 dut1.expect('Got a WS PING frame, Replying PONG')
85 dut_data = dut1.expect(re.compile(r'Got packet with message: ([A-Za-z0-9_]*)'))[0]
86 dut_opcode = int(dut1.expect(re.compile(r'Packet type: ([0-9]*)'))[0])
/hal_espressif-3.6.0/examples/protocols/http_server/captive_portal/
Dexample_test.py85dut1 = env.get_dut('captive_portal', 'examples/protocols/http_server/captive_portal', dut_class=tt…
88 binary_file = os.path.join(dut1.app.binary_path, 'captive_portal.bin')
93 dut1.start_app()
97 ap_ip = dut1.expect(re.compile(r'Set up softAP with IP: (\d+.\d+.\d+.\d+)'), timeout=60)[0]
99 …[ssid, password] = dut1.expect(re.compile(r"wifi_init_softap finished. SSID:'(\S+)' password:'(\S+…
100 port = dut1.expect(re.compile(r"(?:[\s\S]*)Starting server on port: '(\d+)'"), timeout=30)[0]
117 …got_ip = dut1.expect(re.compile(r'DHCP server assigned IP to a station, IP is: (\d+.\d+.\d+.\d+)')…
125 Utility.console_log(dut1.read())

12