Skip to content

Commit 416d1ab

Browse files
robertszczepanskitmichalak
authored andcommitted
Add flow to generate markdown from testplans
1 parent 6d3de91 commit 416d1ab

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.github/workflows/build-docs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ jobs:
2222
- name: Setup repository
2323
uses: actions/checkout@v4
2424

25+
- name: Generate VP
26+
run: |
27+
export I3C_ROOT_DIR="`pwd`"
28+
pip3 install git+https://github.com/antmicro/testplanner.git
29+
make verification-docs
30+
2531
- name: Build Docs
2632
run: |
2733
pushd testplans-template

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ BLOCK_VERIF_DIR := $(COCOTB_VERIF_DIR)/block
1515
TOP_VERIF_DIR := $(COCOTB_VERIF_DIR)/top
1616
TOOL_VERIF_DIR := $(VERIFICATION_DIR)/tools/
1717
UVM_VERIF_DIR := $(VERIFICATION_DIR)/uvm_i3c/
18+
TESTPLAN_DIR := $(VERIFICATION_DIR)/testplan
1819

1920
TOOL_DIR := $(I3C_ROOT_DIR)/tools/
2021
UVM_TOOL_DIR := $(TOOL_DIR)/uvm/
@@ -132,6 +133,10 @@ tests-uvm-debug: config ## Run debugging I3C Core UVM tests with nox
132133
tests-tool: ## Run all tool tests
133134
cd $(TOOL_VERIF_DIR) && $(PYTHON) -m nox -k "verify" --no-venv
134135

136+
VERIFICATION_PLANS = $(shell find $(TESTPLAN_DIR) -type f -name "*.hjson" -printf "%P\n")
137+
verification-docs:
138+
cd $(TESTPLAN_DIR) && testplanner $(VERIFICATION_PLANS) -o $(TESTPLAN_DIR)/generated
139+
135140
#
136141
# Utilities
137142
#

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ cocotb-coverage==1.2.0
1111
cocotb-test==0.2.5
1212
cocotbext-axi==0.1.24
1313
-e git+https://github.com/alexforencich/cocotbext-i2c@3b32eedc15302f1299a23bb35aa669fffad2ca22#egg=cocotbext_i2c
14+
git+https://github.com/antmicro/testplanner.git@bbf374a
1415
-e ${I3C_ROOT_DIR}/third_party/cocotbext-i3c
1516
-e ${I3C_ROOT_DIR}/tools/nox_utils
1617
-e ${I3C_ROOT_DIR}/tools/cocotb_helpers

0 commit comments

Comments
 (0)