P4C
The P4 Compiler
Loading...
Searching...
No Matches
bmv2/test/test_backend/ptf.h
1#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_TEST_TEST_BACKEND_PTF_H_
2#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_TEST_TEST_BACKEND_PTF_H_
3
4#include <gtest/gtest.h>
5
6#include "backends/p4tools/modules/testgen/lib/test_spec.h"
7#include "backends/p4tools/modules/testgen/targets/bmv2/test_backend/ptf.h"
8
9namespace P4::P4Tools::Test {
10
11using TestBackendConfiguration = P4Testgen::TestBackendConfiguration;
12using Packet = P4Testgen::Packet;
13using ActionArg = P4Testgen::ActionArg;
14using ActionCall = P4Testgen::ActionCall;
15using Exact = P4Testgen::Exact;
16using Ternary = P4Testgen::Ternary;
17using TableMatch = P4Testgen::TableMatch;
18using TableMatchMap = P4Testgen::TableMatchMap;
19using TableRule = P4Testgen::TableRule;
20using TableConfig = P4Testgen::TableConfig;
21using TestSpec = P4Testgen::TestSpec;
22using PTF = P4Testgen::Bmv2::PTF;
23
25class PTFTest : public testing::Test {
26 public:
27 TableConfig getForwardTableConfig();
28 TableConfig getIPRouteTableConfig();
29 TableConfig gettest1TableConfig();
30 TableConfig gettest1TableConfig2();
31};
32
33} // namespace P4::P4Tools::Test
34
35#endif /* BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_TEST_TEST_BACKEND_PTF_H_ */
Definition lib/test_spec.h:253
Helper methods to build configurations for PTF Tests.
Definition bmv2/test/test_backend/ptf.h:25
Definition mau/asm_output.h:223