Add multi-target support for performance tests

This commit is contained in:
Roland Dobai
2020-02-28 16:12:11 +01:00
parent 37997407df
commit 15884eccf2
36 changed files with 173 additions and 118 deletions

View File

@@ -16,7 +16,7 @@ def test_examples_protocol_esp_http_client(env, extra_data):
binary_file = os.path.join(dut1.app.binary_path, "esp-http-client-example.bin")
bin_size = os.path.getsize(binary_file)
ttfw_idf.log_performance("esp_http_client_bin_size", "{}KB".format(bin_size // 1024))
ttfw_idf.check_performance("esp_http_client_bin_size", bin_size // 1024)
ttfw_idf.check_performance("esp_http_client_bin_size", bin_size // 1024, dut1.TARGET)
# start test
dut1.start_app()
dut1.expect("Connected to AP, begin http example", timeout=30)