|
bool | assertionModeEnabled = false |
|
P4::Coverage::CoverageOptions | coverageOptions |
|
bool | dcg = false |
|
bool | droppedPacketOnly = false |
| Enforces the test generation of tests with mandatory dropped packet.
|
|
bool | enforceAssumptions = true |
|
bool | hasCoverageTracking = false |
|
int | maxPktSize = 12000 |
| The maximum permitted packet size, in bits.
|
|
int64_t | maxTests = 1 |
| Maximum number of tests to be generated. Defaults to 1.
|
|
float | minCoverage = 0 |
| Specifies minimum coverage that needs to be achieved for P4Testgen to exit successfully.
|
|
int | minPktSize = 0 |
| The minimum permitted packet size, in bits.
|
|
std::optional< std::filesystem::path > | outputDir = std::nullopt |
| Directory for generated tests. Defaults to PWD.
|
|
bool | outputPacketOnly = false |
| Enforces the test generation of tests with mandatory output packet.
|
|
P4Testgen::PathSelectionPolicy | pathSelectionPolicy = P4Testgen::PathSelectionPolicy::DepthFirst |
| Selects the path selection policy for test generation.
|
|
std::string | pattern |
| String of a pattern for resulting tests.
|
|
std::vector< std::pair< int, int > > | permittedPortRanges |
|
std::string | selectedBranches |
| String of selected branches separated by comma.
|
|
std::set< cstring > | skippedControlPlaneEntities |
| Skip generating a control plane entry for the entities in this list.
|
|
cstring | stopMetric |
|
bool | strict = false |
| Fail on unimplemented features instead of trying the next branch.
|
|
cstring | testBackend |
| The test back end that P4Testgen will generate test for. Examples are STF, PTF or Protobuf.
|
|
std::optional< cstring > | testBaseName |
|
bool | trackBranches = false |
|
bool | disableInformationLogging = false |
| Disable information logging.
|
|
std::optional< uint32_t > | seed = std::nullopt |
| A seed for the PRNG.
|
|
|
bool | validateOptions () const override |
|
| AbstractP4cToolOptions (std::string_view toolName, std::string_view message) |
|
const std::string & | getToolName () const |
| The name of the tool associated with these options.
|
|
std::vector< const char * > * | process (int argc, char *const argv[]) override |
| Hook for customizing options processing.
|
|
| Options (std::string_view message) |
|
void | registerOption (const char *option, const char *argName, OptionProcessor processor, const char *description, OptionFlags flags=OptionFlags::Default) |
|
void | registerUsage (const char *msg) |
|
void | setOutStream (std::ostream *out) |
|
cstring | getBinaryName () |
|
cstring | getBuildDate () |
|
cstring | getCompileCommand () |
|
virtual void | usage () |
|
|
enum | OptionFlags { Default = 0
, Hide = 1 << 0
, OptionalArgument = 1 << 1
} |
|
using | OptionProcessor = std::function<bool(const char *)> |
|
static std::tuple< int, char ** > | convertArgs (const std::vector< const char * > &args) |
| Converts a vector of command-line arguments into the traditional (argc, argv) format.
|
|
std::vector< const char * > | compilerArgs |
| Command-line arguments to be sent to the compiler. Populated by @process.
|
|
std::vector< const char * > | additionalUsage |
|
const char * | binaryName |
|
cstring | buildDate |
|
bool | collectUnknownOptions = false |
|
cstring | compileCommand |
|
cstring | message |
|
std::vector< cstring > | optionOrder |
|
std::map< cstring, const Option * > | options |
|
std::ostream * | outStream = &std::cerr |
|
std::vector< const char * > | remainingOptions |
|
Encapsulates and processes command-line options for P4Testgen.