Skip to content

Commit

Permalink
ci: enable esp32p4 sysview and semihosting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erhankur committed Oct 15, 2024
1 parent f8db83e commit 0937211
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitlab/ci/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ tests_armhf_esp32p4:
- job: build_linux_arm64_test
variables:
CHIP_NAME: "esp32p4"
TEST_RUN_EXTRA_OPTS: "-i latest -b esp32p4-ftdi -p test_apptrace*.*Dual test_bp*.*Dual test_step*.*Dual"
TEST_RUN_EXTRA_OPTS: "-i latest -b esp32p4-ftdi -p test_apptrace*.*Dual test_bp*.*Dual test_step*.*Dual test_sysview*.*Dual test_semihost*.*Dual"


##############
Expand Down
2 changes: 1 addition & 1 deletion testing/esp/debug_backend_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def skip_for_chip_and_ver(ver_str, chips_to_skip):
v1 = repr(testee_info.idf_ver).split('.')
v2 = ver_str.split('.')
# check major and minor numbers only.
if v1[0] == v2[0] and v1[1] == v2[1]:
if v1 == v2 or (v1[0] == v2[0] and v1[1] == v2[1]):
skip = True
return unittest.skipIf(skip, "for the '%s' for the IDF_VER='%s'" % (id, testee_info.idf_ver))

Expand Down
1 change: 1 addition & 0 deletions testing/esp/test_apps/gen_ut_app/configs/svtrace_dual
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ CONFIG_SYSVIEW_EVT_TASK_TERMINATE_ENABLE=y
CONFIG_SYSVIEW_EVT_IDLE_ENABLE=y
CONFIG_SYSVIEW_EVT_TIMER_ENTER_ENABLE=y
CONFIG_SYSVIEW_EVT_TIMER_EXIT_ENABLE=y
CONFIG_FREERTOS_ISR_STACKSIZE=2048
1 change: 1 addition & 0 deletions testing/esp/test_apps/gen_ut_app/configs/svtrace_single
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ CONFIG_SYSVIEW_EVT_TASK_TERMINATE_ENABLE=y
CONFIG_SYSVIEW_EVT_IDLE_ENABLE=y
CONFIG_SYSVIEW_EVT_TIMER_ENTER_ENABLE=y
CONFIG_SYSVIEW_EVT_TIMER_EXIT_ENABLE=y
CONFIG_FREERTOS_ISR_STACKSIZE=2048
4 changes: 4 additions & 0 deletions testing/esp/test_semihost.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ def test_semihost_custom(self):
mtime = os.path.getmtime(self.fout_names[i])
self.assertTrue(mtime == 456789)

# OCD-1006
@skip_for_chip(['esp32p4'])
def test_semihost_with_fileio(self):
"""
This test checks that gdb fileIO working as expected.
Expand All @@ -227,6 +229,8 @@ def test_semihost_with_fileio(self):
get_logger().info('Compare files [%s, %s]', self.gdb_io_out_names[i], self.gdb_io_in_names[i])
self.assertTrue(filecmp.cmp(self.gdb_io_out_names[i], self.gdb_io_in_names[i]))

# OCD-1006
@skip_for_chip(['esp32p4'])
def test_semihost_with_consoleio(self):
"""
This test checks that gdb consoleIO working as expected.
Expand Down

0 comments on commit 0937211

Please sign in to comment.