Skip to content

Commit eadfc38

Browse files
committed
esp/testing: enable remaining tests
1 parent 0f00469 commit eadfc38

File tree

8 files changed

+12
-11
lines changed

8 files changed

+12
-11
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 apptrace_gcov_single"
179+
TEST_APP_CONFIGS: "single_core svtrace_single apptrace_gcov_single"
180180
extends: .build_idf5x_test_app_template
181181

182182
build_test_app_esp32_idf4.x:

.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_apptrace*.*Single test_bp*.*Single test_step*.*Single test_thread*.*Single test_flasher*.*Single"
313+
TEST_RUN_EXTRA_OPTS: "-i latest -b esp32c6-builtin -p test_*.*Single -u /dev/ttyACM0"
314314

315315
tests_win_simple_esp32:
316316
stage: test_windows

.gitlab/ci/util.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
.export_toolchain_snippet: &export_toolchain_snippet |
2828
export PATH=${HOME}/.espressif/tools/${TOOLCHAIN_PREFIX}-elf/${ESP_TOOLCHAIN}/${TOOLCHAIN_PREFIX}-elf/bin:${PATH}
2929
source /opt/pyenv/activate && pyenv global ${TEST_IMAGE_PYTHON_VER}
30+
pip install esptool==4.5
3031
if [ "${GDB_ARMHF_DISTRO_URL:-test}" != "test" ]; then
3132
case $CI_JOB_NAME in "tests_armhf_"*)
3233
echo "Replacing GDBs from $GDB_ARMHF_DISTRO_URL"

tcl/target/esp32c6.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ source [find mmr_helpers.tcl]
1111
source [find target/esp_common.cfg]
1212

1313
# Target specific registers
14-
set EFUSE_MAC_ADDR_REG 0x60008844
14+
set EFUSE_MAC_ADDR_REG 0x600B0844
1515

1616
if { [info exists CHIPNAME] } {
1717
set _CHIPNAME $CHIPNAME

tcl/target/esp32h2.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ source [find mmr_helpers.tcl]
1111
source [find target/esp_common.cfg]
1212

1313
# Target specific registers
14-
set EFUSE_MAC_ADDR_REG 0x60008844
14+
set EFUSE_MAC_ADDR_REG 0x600B0844
1515

1616
if { [info exists CHIPNAME] } {
1717
set _CHIPNAME $CHIPNAME

tcl/target/esp_common.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,12 +309,12 @@ proc esp_get_mac {args} {
309309
}
310310
}
311311

312-
if { [string equal [target current] esp32c3] || [string equal [target current] esp32c2] } {
313-
set mac_list [read_memory $EFUSE_MAC_ADDR_REG 8 6]
314-
} else {
312+
if { [string equal [target current] esp32] || [string equal [target current] esp32s2] || [string equal [target current] esp32s3] } {
315313
xtensa set_permissive 1
316314
set mac_list [read_memory $EFUSE_MAC_ADDR_REG 8 6]
317315
xtensa set_permissive 0
316+
} else {
317+
set mac_list [read_memory $EFUSE_MAC_ADDR_REG 8 6]
318318
}
319319

320320
set i 0

testing/esp/debug_backend_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ def stop_exec(self):
436436
if state != dbg.TARGET_STATE_STOPPED:
437437
self.gdb.exec_interrupt()
438438
rsn = self.gdb.wait_target_state(dbg.TARGET_STATE_STOPPED, 10)
439-
self.assertEqual(rsn, dbg.TARGET_STOP_REASON_SIGINT)
439+
self.assertTrue(rsn == dbg.TARGET_STOP_REASON_SIGINT or rsn == dbg.TARGET_STOP_REASON_SIGTRAP)
440440

441441
def resume_exec(self, loc=None):
442442
""" Resumes target execution and ensures that it is in RUNNING state

testing/esp/test_special.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def _do_test_bp_and_wp_set_by_program(self):
8686
# watchpoint hit on read var in 'target_bp_func2'
8787
self.run_to_bp_and_check_location(dbg.TARGET_STOP_REASON_SIGTRAP, 'target_bp_func2', 'target_wp_var2_2')
8888

89-
@skip_for_chip(['esp32c2'])
89+
@skip_for_chip(['esp32c2', 'esp32c6', 'esp32h2'])
9090
def test_bp_and_wp_set_by_program(self):
9191
"""
9292
This test checks that breakpoints and watchpoints set by program on target work.
@@ -97,7 +97,7 @@ def test_bp_and_wp_set_by_program(self):
9797
self._do_test_bp_and_wp_set_by_program()
9898

9999
@only_for_arch(['riscv32'])
100-
@skip_for_chip(['esp32c2'])
100+
@skip_for_chip(['esp32c2', 'esp32c6', 'esp32h2'])
101101
def test_wp_reconfigure_by_program(self):
102102
"""
103103
This test checks that watchpoints can be reconfigured by target w/o removing them.
@@ -259,7 +259,7 @@ def test_gdb_regs_mapping(self):
259259
"""
260260
# should fail for any new chip.
261261
# just to be sure that this test is revised when new chip support is added
262-
self.fail_if_not_hw_id([r'esp32-[.]*', r'esp32s2-[.]*', r'esp32c2-[.]*', r'esp32c3-[.]*', r'esp32s3-[.]*'])
262+
self.fail_if_not_hw_id([r'esp32-[.]*', r'esp32s2-[.]*', r'esp32c2-[.]*', r'esp32c3-[.]*', r'esp32s3-[.]*', r'esp32c6-[.]*'])
263263
regs = self.gdb.get_reg_names()
264264
i = 10
265265

0 commit comments

Comments
 (0)