P4C
The P4 Compiler
Loading...
Searching...
No Matches
bmv2/test/test_backend/stf.h
1#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_TEST_TEST_BACKEND_STF_H_
2#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_TEST_TEST_BACKEND_STF_H_
3
4#include "backends/p4tools/modules/testgen/targets/bmv2/test_backend/stf.h"
5#include "backends/p4tools/modules/testgen/test/gtest_utils.h"
6
7namespace Test {
8
9using TestBackendConfiguration = P4Tools::P4Testgen::TestBackendConfiguration;
10using Packet = P4Tools::P4Testgen::Packet;
11using ActionArg = P4Tools::P4Testgen::ActionArg;
12using ActionCall = P4Tools::P4Testgen::ActionCall;
13using Exact = P4Tools::P4Testgen::Exact;
14using Ternary = P4Tools::P4Testgen::Ternary;
15using TableMatch = P4Tools::P4Testgen::TableMatch;
16using TableMatchMap = P4Tools::P4Testgen::TableMatchMap;
17using TableRule = P4Tools::P4Testgen::TableRule;
18using TableConfig = P4Tools::P4Testgen::TableConfig;
19using TestSpec = P4Tools::P4Testgen::TestSpec;
21
23class STFTest : public P4ToolsTest {
24 public:
25 TableConfig getForwardTableConfig();
26 TableConfig getIPRouteTableConfig();
27 TableConfig gettest1TableConfig();
28 TableConfig gettest1TableConfig2();
29};
30
31} // namespace Test
32
33#endif /* BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_TEST_TEST_BACKEND_STF_H_ */
Definition lib/test_spec.h:65
Definition lib/test_spec.h:93
Extracts information from the @testSpec to emit a STF test case.
Definition bmv2/test_backend/stf.h:18
Definition lib/test_spec.h:200
Definition lib/test_spec.h:27
Definition lib/test_spec.h:253
Definition lib/test_spec.h:126
Definition lib/test_spec.h:219
Definition lib/test_spec.h:142
Definition lib/test_spec.h:296
GTest for P4 Tools tests.
Definition gtest_utils.h:52
Helper methods to build configurations for STF Tests.
Definition bmv2/test/test_backend/stf.h:23
Definition test_backend_configuration.h:16