Skip to content

Commit 6f5baef

Browse files
authored
Merge pull request #1649 from kernelkit/bump-9pm-for-agent-prompt
test: add test skill and bump 9pm for agent prompt
2 parents b0bd729 + 9ab56f9 commit 6f5baef

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

‎test/9pm-proj.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
PROJECT-NAME: "Infix"
33
PROJECT-ROOT: "../../"
44
PROJECT-TOPDOC: "../case/"
5+
AGENT-HINTS: |
6+
Read test/infix-test-skill.md first, it explains how the tests work
7+
and where to look.

‎test/infix-test-skill.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Infix test skill
2+
3+
Info about the Infix regression tests.
4+
5+
- Tests live under `test/case/`, are written in Python and use the infamy
6+
framework in `test/infamy/`.
7+
- A test is a chain of `test.step()` blocks that configure one or more DUTs
8+
over NETCONF or RESTCONF and verify the result with real traffic. The step
9+
text in the failing TAP line is where to start reading.
10+
- DUTs run Infix, either as virtual machines (Qeneth, `test/virt/`) or as real
11+
hardware. The fault is often in the product rather than the test. Device code
12+
is in `src/`, YANG models in `src/confd/yang/`.
13+
- Each test has a logical `topology.dot` with names like `target:data`. Infamy
14+
maps it onto the physical topology the test was given, honouring `requires`
15+
and `provides` attributes, and prints the mapping in the log. A test is
16+
skipped when no mapping fits.
17+
- Logs: `test/.log/<log id>/output/`. Full guide: `doc/testing.md`.

0 commit comments

Comments
 (0)