Skip to content

Commit fe94168

Browse files
committed
[Doc] add Controller tests to testplanner overview
Signed-off-by: Angelo Nujic <anujic@antmicro.com>
1 parent a9a8ef9 commit fe94168

4 files changed

Lines changed: 23 additions & 70 deletions

File tree

.github/workflows/tests-and-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ jobs:
216216
with:
217217
name: test-results-ahb-${{ steps.sanitize.outputs.name }}
218218
path: |
219-
verification/cocotb/**/results*.xml
219+
verification/cocotb/**/*.xml
220220
verification/cocotb/**/*.log
221221
222222
# ===========================================================================
@@ -299,7 +299,7 @@ jobs:
299299
with:
300300
name: test-results-axi-${{ steps.sanitize.outputs.name }}
301301
path: |
302-
verification/cocotb/**/results*.xml
302+
verification/cocotb/**/*.xml
303303
verification/cocotb/**/*.log
304304
305305
# ===========================================================================
@@ -386,7 +386,7 @@ jobs:
386386
with:
387387
name: test-results-axi-controller-${{ steps.sanitize.outputs.name }}
388388
path: |
389-
verification/cocotb/**/results*.xml
389+
verification/cocotb/**/*.xml
390390
verification/cocotb/**/*.log
391391
392392
# ===========================================================================

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ build-verilator:
124124
# Testplanning
125125
#
126126

127-
BLOCKS_VERIFICATION_PLANS = $(shell find $(TESTPLAN_DIR) -type f -name "*.hjson" ! -name "target*.hjson" | sort)
128-
CORE_VERIFICATION_PLANS = $(shell find $(TESTPLAN_DIR) -type f -name "*target*.hjson" | sort)
127+
BLOCKS_VERIFICATION_PLANS = $(shell find $(TESTPLAN_DIR) -type f -path "*/block/*.hjson" | sort)
128+
CORE_VERIFICATION_PLANS = $(shell find $(TESTPLAN_DIR) -type f -path "*/top/*.hjson" | sort)
129129
verification-docs:
130130
testplanner $(BLOCKS_VERIFICATION_PLANS) -ot $(TESTPLAN_DIR)/generated/testplans_blocks.md --project-root $(I3C_ROOT_DIR) --testplan-file-map $(TESTPLAN_DIR)/source-maps.yml --source-url-prefix $(REPO_URL)
131131
testplanner $(CORE_VERIFICATION_PLANS) -ot $(TESTPLAN_DIR)/generated/testplans_core.md --project-root $(I3C_ROOT_DIR) --testplan-file-map $(TESTPLAN_DIR)/source-maps.yml --source-url-prefix $(REPO_URL)
@@ -134,8 +134,8 @@ cocotbxml-to-hjson-sim-results:
134134
cocotbxml-to-hjson -i $(TESTS_RESULTS_DIR) -t $(BLOCKS_VERIFICATION_PLANS) -o $(TESTS_RESULTS_DIR) --xml-root-dir $(TESTS_XML_BASE_PATH) --tests-ignore-dirs venv .venv .pyenv --test-tracking-summary-dir ./blocks --testplan-file-map $(TESTPLAN_DIR)/source-maps.yml
135135
cocotbxml-to-hjson -i $(TESTS_RESULTS_DIR) -t $(CORE_VERIFICATION_PLANS) -o $(TESTS_RESULTS_DIR) --xml-root-dir $(TESTS_XML_BASE_PATH) --tests-ignore-dirs venv .venv .pyenv --test-tracking-summary-dir ./core --testplan-file-map $(TESTPLAN_DIR)/source-maps.yml
136136

137-
BLOCKS_VERIFICATION_SIM_RESULTS = $(shell find $(TESTS_RESULTS_DIR) -type f -name "*.hjson" ! -name "target*.hjson" | sort)
138-
CORE_VERIFICATION_SIM_RESULTS = $(shell find $(TESTS_RESULTS_DIR) -type f -name "*target*.hjson" | sort)
137+
BLOCKS_VERIFICATION_SIM_RESULTS = $(shell find $(TESTS_RESULTS_DIR) -type f -path "*/block/*.hjson" | sort)
138+
CORE_VERIFICATION_SIM_RESULTS = $(shell find $(TESTS_RESULTS_DIR) -type f -path "*/top/*.hjson" | sort)
139139
verification-docs-with-sim: cocotbxml-to-hjson-sim-results
140140
testplanner $(BLOCKS_VERIFICATION_PLANS) -s $(BLOCKS_VERIFICATION_SIM_RESULTS) -ot $(TESTPLAN_DIR)/generated/testplans_blocks.md -os $(TESTPLAN_DIR)/generated/sim-results --output-summary-title "Tests for individual blocks" --output-summary $(TESTPLAN_DIR)/generated/sim-results/index-blocks.html --project-root $(I3C_ROOT_DIR) --testplan-file-map $(TESTPLAN_DIR)/source-maps.yml --source-url-prefix $(REPO_URL)
141141
testplanner $(CORE_VERIFICATION_PLANS) -s $(CORE_VERIFICATION_SIM_RESULTS) -ot $(TESTPLAN_DIR)/generated/testplans_core.md -os $(TESTPLAN_DIR)/generated/sim-results --output-summary-title "Tests for the core" --output-summary $(TESTPLAN_DIR)/generated/sim-results/index-top.html --project-root $(I3C_ROOT_DIR) --testplan-file-map $(TESTPLAN_DIR)/source-maps.yml --source-url-prefix $(REPO_URL)

verification/testplan/source-maps.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,33 @@ testplans:
1717
testpoints:
1818
- name: "^(.*)$"
1919
source: "verification/cocotb/top/i3c_axi_controller/test_controller_ccc.py"
20+
cocotb_xml: ".*verification/cocotb/top/i3c_axi_controller/test_controller_ccc(_[0-9]+)?.xml"
2021
- name: 'Controller IBI Handling'
2122
testpoints:
2223
- name: "^(.*)$"
2324
source: "verification/cocotb/top/i3c_axi_controller/test_controller_ibi.py"
25+
cocotb_xml: ".*verification/cocotb/top/i3c_axi_controller/test_controller_ibi(_[0-9]+)?.xml"
2426
- name: 'Controller Generate HDR Exit Pattern'
2527
testpoints:
2628
- name: "^(.*)$"
2729
source: "verification/cocotb/top/i3c_axi_controller/test_controller_hdr_exit.py"
30+
cocotb_xml: ".*verification/cocotb/top/i3c_axi_controller/test_controller_hdr_exit(_[0-9]+)?.xml"
2831
- name: 'Controller error generation'
2932
testpoints:
3033
- name: "^(.*)$"
3134
source: "verification/cocotb/top/i3c_axi_controller_err/test_controller_error.py"
35+
cocotb_xml: ".*verification/cocotb/top/i3c_axi_controller_err/test_controller_error(_[0-9]+)?.xml"
3236

3337
- name: '(Controller-specific)? ?CSR access check'
3438
testpoints:
3539
- name: "^(.*)$"
3640
tests:
37-
- name: "^(.*)$"
41+
- name: ".*csr_access.*"
3842
source: "verification/cocotb/top/lib_i3c_top/test_csr_access.py"
39-
- name: "^(.*)$"
43+
cocotb_xml: ".*verification/cocotb/top/i3c_axi/test_csr_access(_[0-9]+)?.xml"
44+
- name: ".*(configure|stdby).*"
4045
source: "verification/cocotb/top/i3c_axi_controller/test_configure_i3c_cores.py"
46+
cocotb_xml: ".*verification/cocotb/top/i3c_axi_controller/test_configure_i3c_cores(_[0-9]+)?.xml"
4147
- name: 'Enter and exit HDR mode'
4248
testpoints:
4349
- name: "^(.*)$"
@@ -120,18 +126,22 @@ testplans:
120126
testpoints:
121127
- name: "^(.*)$"
122128
tests:
129+
- name: ".*write.*"
130+
source: "verification/cocotb/top/i3c_axi_controller/test_i3c_controller_repeated_start.py"
131+
cocotb_xml: ".*verification/cocotb/top/i3c_axi_controller/test_i3c_controller_repeated_start(_[0-9]+)?.xml"
123132
- name: "^(.*)$"
124133
source: "verification/cocotb/top/i3c_axi_controller/test_i3c_controller_write_target_read.py"
125-
- name: "*write*"
126-
source: "verification/cocotb/top/i3c_axi_controller/test_i3c_controller_repeated_start.py"
134+
cocotb_xml: ".*verification/cocotb/top/i3c_axi_controller/test_i3c_controller_write_target_read(_[0-9]+)?.xml"
127135
- name: 'Controller Private Read'
128136
testpoints:
129137
- name: "^(.*)$"
130138
tests:
139+
- name: ".*read.*"
140+
source: "verification/cocotb/top/i3c_axi_controller/test_i3c_controller_repeated_start.py"
141+
cocotb_xml: ".*verification/cocotb/top/i3c_axi_controller/test_i3c_controller_repeated_start(_[0-9]+)?.xml"
131142
- name: "^(.*)$"
132143
source: "verification/cocotb/top/i3c_axi_controller/test_i3c_controller_read_target_write.py"
133-
- name: "*read*"
134-
source: "verification/cocotb/top/i3c_axi_controller/test_i3c_controller_repeated_start.py"
144+
cocotb_xml: ".*verification/cocotb/top/i3c_axi_controller/test_i3c_controller_read_target_write(_[0-9]+)?.xml"
135145
- name: 'Controller I2C Mode'
136146
testpoints:
137147
- name: "^(.*)$"

verification/testplan/top/controller_bus_stall.hjson

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)