#include "esi/Accelerator.h"
#include "esi/CLI.h"
#include "esi/Manifest.h"
#include "esi/Services.h"
#include <iostream>
#include <string>
#include <utility>
#include <vector>
Go to the source code of this file.
|
| int | esi_test::runProbes (int argc, const char *argv[], const char *name, const char *description, const std::vector< ProbeEntry > &probes) |
| | Run the probe-runner main loop. Returns 0 on success, nonzero on failure.
|
| |
◆ ESI_PROBE_REGISTRY
| #define ESI_PROBE_REGISTRY |
( |
|
name, |
|
|
|
description, |
|
|
|
... |
|
) |
| |
Value: int main(
int argc,
const char *argv[]) { \
static const std::vector<esi_test::ProbeEntry> kProbes = {__VA_ARGS__}; \
}
int main(int argc, char **argv)
int runProbes(int argc, const char *argv[], const char *name, const char *description, const std::vector< ProbeEntry > &probes)
Run the probe-runner main loop. Returns 0 on success, nonzero on failure.
Convenience macro: defines main() with a probe registry.
The variadic arguments are {"name", &fn} pairs.
Definition at line 94 of file probe_runner.h.