![]() |
P4C
The P4 Compiler
|
p4test is a backend-agnostic testing tool that exercises the P4 compiler front-end and mid-end. It underpins many test cases in the top-level tests/ directory.
backends/p4test/README.md: usage and intent.backends/p4test/CMakeLists.txt: build targets and test variants.backends/p4test/: implementation and supporting passes.backends/p4test/CMakeLists.txt.ctest --test-dir build -j<N> --output-on-failure -R p4test.tests/ directory references p4test for many suites.testdata/.backends/p4test/ and follow variant setup in CMakeLists.txt to see how tests are wired.