Skip to content

Commit

Permalink
ci(coremark): add example test
Browse files Browse the repository at this point in the history
  • Loading branch information
igrr committed Sep 27, 2024
1 parent 26ebc98 commit a6b6865
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions .idf_build_apps.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ exclude = [
manifest_file = [
"bdc_motor/.build-test-rules.yml",
"ccomp_timer/.build-test-rules.yml",
"coremark/.build-test-rules.yml",
".build-test-rules.yml",
]
check_warnings = true
Expand Down
4 changes: 4 additions & 0 deletions coremark/.build-test-rules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
coremark/examples:
enable:
- if: IDF_TARGET in ["esp32", "esp32c3"]
reason: "Sufficient to test on one Xtensa and one RISC-V target."
7 changes: 7 additions & 0 deletions coremark/examples/coremark_example/pytest_coremark.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import pytest


@pytest.mark.generic
def test_coremark(dut):
dut.expect_exact("Running coremark...")
dut.expect_exact("Correct operation validated", timeout=30)
2 changes: 0 additions & 2 deletions coremark/examples/coremark_example/sdkconfig.defaults.esp32
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
# for IDF v4.4.x compatibility
CONFIG_ESP32_DEFAULT_CPU_FREQ_240=y
2 changes: 0 additions & 2 deletions coremark/examples/coremark_example/sdkconfig.defaults.esp32s2
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
# for IDF v4.4.x compatibility
CONFIG_ESP32S2_DEFAULT_CPU_FREQ_240=y
2 changes: 0 additions & 2 deletions coremark/examples/coremark_example/sdkconfig.defaults.esp32s3
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
# for IDF v4.4.x compatibility
CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240=y

0 comments on commit a6b6865

Please sign in to comment.