summaryrefslogtreecommitdiff
path: root/tests/topotests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/topotests/conftest.py')
-rwxr-xr-xtests/topotests/conftest.py21
1 files changed, 19 insertions, 2 deletions
diff --git a/tests/topotests/conftest.py b/tests/topotests/conftest.py
index 31d796ccb8..ce59554b1a 100755
--- a/tests/topotests/conftest.py
+++ b/tests/topotests/conftest.py
@@ -80,8 +80,8 @@ def pytest_addoption(parser):
action="append",
metavar="DAEMON[,ROUTER[,...]",
help=(
- "Tail-F of DAEMON log file. Specify routers in comma-separated list after "
- "daemon to limit to a subset of routers"
+ "Tail-F the DAEMON log file on all or a subset of ROUTERs."
+ " Option can be given multiple times."
),
)
@@ -117,6 +117,23 @@ def pytest_addoption(parser):
help="Comma-separated list of networks to capture packets on, or 'all'",
)
+ parser.addoption(
+ "--perf",
+ action="append",
+ metavar="DAEMON[,ROUTER[,...]",
+ help=(
+ "Collect performance data from given DAEMON on all or a subset of ROUTERs."
+ " Option can be given multiple times."
+ ),
+ )
+
+ parser.addoption(
+ "--perf-options",
+ metavar="OPTS",
+ default="-g",
+ help="Options to pass to `perf record`.",
+ )
+
rundir_help = "directory for running in and log files"
parser.addini("rundir", rundir_help, default="/tmp/topotests")
parser.addoption("--rundir", metavar="DIR", help=rundir_help)