Skip to content

Commit 35a2e7d

Browse files
committed
Add testing section to basic forwarding README
1 parent c4519eb commit 35a2e7d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

exercises/basic/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,21 @@ make stop
189189
Congratulations, your implementation works! Move onto the next assignment
190190
[Basic Tunneling](../basic_tunnel)
191191

192+
## Automated Tests
193+
194+
PTF (Packet Test Framework) tests are available to verify the solution
195+
program works correctly. These tests run against `solution/basic.p4`
196+
and check forwarding behavior, including drop on miss, single entry
197+
forwarding, and multi-entry LPM routing.
198+
199+
To run the tests:
200+
```bash
201+
./runptf.sh
202+
```
203+
204+
Note: The `veth` interfaces must be set up before running. If you see
205+
a "No such device" error, run the `veth_setup.sh` script from
206+
[p4-guide](https://github.com/jafingerhut/p4-guide/blob/master/bin/veth_setup.sh).
192207

193208
## Relevant Documentation
194209

0 commit comments

Comments
 (0)