mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-18 13:02:21 +02:00
asio: examples renamed to have consistent binary names when build in make and CMake
* Original commit: espressif/esp-idf@9784df1c3a
This commit is contained in:
@ -2,6 +2,6 @@
|
|||||||
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
|
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
|
||||||
# project subdirectory.
|
# project subdirectory.
|
||||||
#
|
#
|
||||||
PROJECT_NAME := asio_chatclient
|
PROJECT_NAME := asio_chat_client
|
||||||
|
|
||||||
include $(IDF_PATH)/make/project.mk
|
include $(IDF_PATH)/make/project.mk
|
||||||
|
@ -67,10 +67,10 @@ def test_examples_protocol_asio_chat_client(env, extra_data):
|
|||||||
test_msg="ABC"
|
test_msg="ABC"
|
||||||
dut1 = env.get_dut("chat_client", "examples/protocols/asio/chat_client")
|
dut1 = env.get_dut("chat_client", "examples/protocols/asio/chat_client")
|
||||||
# check and log bin size
|
# check and log bin size
|
||||||
binary_file = os.path.join(dut1.app.binary_path, "asio_chatclient.bin")
|
binary_file = os.path.join(dut1.app.binary_path, "asio_chat_client.bin")
|
||||||
bin_size = os.path.getsize(binary_file)
|
bin_size = os.path.getsize(binary_file)
|
||||||
IDF.log_performance("asio_chatclient_size", "{}KB".format(bin_size//1024))
|
IDF.log_performance("asio_chat_client_size", "{}KB".format(bin_size//1024))
|
||||||
IDF.check_performance("asio_chatclient_size", bin_size//1024)
|
IDF.check_performance("asio_chat_client_size", bin_size//1024)
|
||||||
# 1. start a tcp server on the host
|
# 1. start a tcp server on the host
|
||||||
host_ip = get_my_ip()
|
host_ip = get_my_ip()
|
||||||
thread1 = Thread(target = chat_server_sketch, args = (host_ip,))
|
thread1 = Thread(target = chat_server_sketch, args = (host_ip,))
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
|
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
|
||||||
# project subdirectory.
|
# project subdirectory.
|
||||||
#
|
#
|
||||||
PROJECT_NAME := asio_chatserver
|
PROJECT_NAME := asio_chat_server
|
||||||
|
|
||||||
include $(IDF_PATH)/make/project.mk
|
include $(IDF_PATH)/make/project.mk
|
||||||
|
@ -30,10 +30,10 @@ def test_examples_protocol_asio_chat_server(env, extra_data):
|
|||||||
test_msg=" 4ABC\n"
|
test_msg=" 4ABC\n"
|
||||||
dut1 = env.get_dut("chat_server", "examples/protocols/asio/chat_server")
|
dut1 = env.get_dut("chat_server", "examples/protocols/asio/chat_server")
|
||||||
# check and log bin size
|
# check and log bin size
|
||||||
binary_file = os.path.join(dut1.app.binary_path, "asio_chatserver.bin")
|
binary_file = os.path.join(dut1.app.binary_path, "asio_chat_server.bin")
|
||||||
bin_size = os.path.getsize(binary_file)
|
bin_size = os.path.getsize(binary_file)
|
||||||
IDF.log_performance("asio_chatserver_bin_size", "{}KB".format(bin_size//1024))
|
IDF.log_performance("asio_chat_server_bin_size", "{}KB".format(bin_size//1024))
|
||||||
IDF.check_performance("asio_chatserver_size", bin_size//1024)
|
IDF.check_performance("asio_chat_server_size", bin_size//1024)
|
||||||
# 1. start test
|
# 1. start test
|
||||||
dut1.start_app()
|
dut1.start_app()
|
||||||
# 2. get the server IP address
|
# 2. get the server IP address
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
|
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
|
||||||
# project subdirectory.
|
# project subdirectory.
|
||||||
#
|
#
|
||||||
PROJECT_NAME := asio_tcp_echoserver
|
PROJECT_NAME := asio_tcp_echo_server
|
||||||
|
|
||||||
include $(IDF_PATH)/make/project.mk
|
include $(IDF_PATH)/make/project.mk
|
||||||
|
@ -31,10 +31,10 @@ def test_examples_protocol_asio_tcp_server(env, extra_data):
|
|||||||
test_msg="echo message from client to server"
|
test_msg="echo message from client to server"
|
||||||
dut1 = env.get_dut("tcp_echo_server", "examples/protocols/asio/tcp_echo_server")
|
dut1 = env.get_dut("tcp_echo_server", "examples/protocols/asio/tcp_echo_server")
|
||||||
# check and log bin size
|
# check and log bin size
|
||||||
binary_file = os.path.join(dut1.app.binary_path, "asio_tcp_echoserver.bin")
|
binary_file = os.path.join(dut1.app.binary_path, "asio_tcp_echo_server.bin")
|
||||||
bin_size = os.path.getsize(binary_file)
|
bin_size = os.path.getsize(binary_file)
|
||||||
IDF.log_performance("asio_tcp_echoserver_bin_size", "{}KB".format(bin_size//1024))
|
IDF.log_performance("asio_tcp_echo_server_bin_size", "{}KB".format(bin_size//1024))
|
||||||
IDF.check_performance("asio_tcp_echoserver_size", bin_size//1024)
|
IDF.check_performance("asio_tcp_echo_server_size", bin_size//1024)
|
||||||
# 1. start test
|
# 1. start test
|
||||||
dut1.start_app()
|
dut1.start_app()
|
||||||
# 2. get the server IP address
|
# 2. get the server IP address
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
|
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
|
||||||
# project subdirectory.
|
# project subdirectory.
|
||||||
#
|
#
|
||||||
PROJECT_NAME := asio_udp_echoserver
|
PROJECT_NAME := asio_udp_echo_server
|
||||||
|
|
||||||
include $(IDF_PATH)/make/project.mk
|
include $(IDF_PATH)/make/project.mk
|
||||||
|
@ -31,10 +31,10 @@ def test_examples_protocol_asio_udp_server(env, extra_data):
|
|||||||
test_msg="echo message from client to server"
|
test_msg="echo message from client to server"
|
||||||
dut1 = env.get_dut("udp_echo_server", "examples/protocols/asio/udp_echo_server")
|
dut1 = env.get_dut("udp_echo_server", "examples/protocols/asio/udp_echo_server")
|
||||||
# check and log bin size
|
# check and log bin size
|
||||||
binary_file = os.path.join(dut1.app.binary_path, "asio_udp_echoserver.bin")
|
binary_file = os.path.join(dut1.app.binary_path, "asio_udp_echo_server.bin")
|
||||||
bin_size = os.path.getsize(binary_file)
|
bin_size = os.path.getsize(binary_file)
|
||||||
IDF.log_performance("asio_udp_echoserver_bin_size", "{}KB".format(bin_size//1024))
|
IDF.log_performance("asio_udp_echo_server_bin_size", "{}KB".format(bin_size//1024))
|
||||||
IDF.check_performance("asio_udp_echoserver_size", bin_size//1024)
|
IDF.check_performance("asio_udp_echo_server_size", bin_size//1024)
|
||||||
# 1. start test
|
# 1. start test
|
||||||
dut1.start_app()
|
dut1.start_app()
|
||||||
# 2. get the server IP address
|
# 2. get the server IP address
|
||||||
|
Reference in New Issue
Block a user