1#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_TEST_GTEST_UTILS_H_
2#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_TEST_GTEST_UTILS_H_
4#include "backends/p4tools/modules/testgen/test/gtest_utils.h"
5#include "backends/p4tools/modules/testgen/test/small-step/util.h"
7namespace P4::P4Tools::Test {
11 std::unique_ptr<AutoCompileContext> compileContext;
14 void SetUp()
override {
16 if (compileContext ==
nullptr) {
17 FAIL() <<
"Failed to set up P4Testgen BMv2 test";
24std::optional<const P4ToolsTestCase> createBmv2V1modelSmallStepExprTest(
25 const std::string &hdrFields,
const std::string &expr);
28 std::unique_ptr<AutoCompileContext> compileContext;
31 void SetUp()
override {
33 if (compileContext ==
nullptr) {
34 FAIL() <<
"Failed to set up P4Testgen BMv2 test";