Skip to content

Commit 2e998c1

Browse files
committed
esp/ci: enable esp32c6 apptrace test
1 parent 031dc4d commit 2e998c1

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.gitlab/ci/build-test-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ build_test_app_esp32c6:
176176
CHIP_NAME: "esp32c6"
177177
TOOLCHAIN_PREFIX: "riscv32-esp"
178178
BUILD_TEST_APP_DIR: "build_test_app_esp32c6"
179-
TEST_APP_CONFIGS: "single_core"
179+
TEST_APP_CONFIGS: "single_core apptrace_gcov_single"
180180
extends: .build_idf5x_test_app_template
181181

182182
build_test_app_esp32_idf4.x:

.gitlab/ci/test-sanitizers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ tests_sanitizers_esp32c6:
149149
TOOLCHAIN_PREFIX: "riscv32-esp"
150150
ESP_TOOLCHAIN: "${ESP_MASTER_RISCV_TOOLCHAIN_VER}"
151151
TEST_RUN_DIR: "build_test_app_esp32c6"
152-
TEST_RUN_EXTRA_OPTS: "-i latest -b esp32c6-builtin -p test_bp*.*Single test_step*.*Single test_thread*.*Single test_flasher*.*Single"
152+
TEST_RUN_EXTRA_OPTS: "-i latest -b esp32c6-builtin -p test_apptrace*.*Single test_bp*.*Single test_step*.*Single test_thread*.*Single test_flasher*.*Single"
153153

154154
tests_sanitizers_esp32c3_idf4.x:
155155
extends: .tests_sanitizers_template

.gitlab/ci/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ tests_armhf_esp32c6_builtin_usb_jtag:
310310
TOOLCHAIN_PREFIX: "riscv32-esp"
311311
ESP_TOOLCHAIN: "${ESP_MASTER_RISCV_TOOLCHAIN_VER}"
312312
TEST_RUN_DIR: "build_test_app_esp32c6"
313-
TEST_RUN_EXTRA_OPTS: "-i latest -b esp32c6-builtin -p test_bp*.*Single test_step*.*Single test_thread*.*Single test_flasher*.*Single"
313+
TEST_RUN_EXTRA_OPTS: "-i latest -b esp32c6-builtin -p test_apptrace*.*Single test_bp*.*Single test_step*.*Single test_thread*.*Single test_flasher*.*Single"
314314

315315
tests_win_simple_esp32:
316316
stage: test_windows

testing/esp/test_apptrace.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ def test_apptrace_reset(self):
9191
trace_src = 'file://%s' % trace_file_name
9292
reader = reader_create(trace_src, 1.0)
9393
# 10 ms poll period, stop when 800 bytes are received or due to 10 s timeout
94-
self.oocd.apptrace_start("%s 10 800 10" % trace_src)
94+
poll_period_ms = 0 # 10ms period doesn't work for ESP32. Why?
95+
if testee_info.chip == "esp32c6":
96+
poll_period_ms = 10 # Check why we need a delay during poll.OCD-717
97+
self.oocd.apptrace_start("%s %d 800 10" % (trace_src, poll_period_ms))
9598
self.resume_exec()
9699
sleep(1) # let it works some time
97100
self.stop_exec()

0 commit comments

Comments
 (0)