summaryrefslogtreecommitdiffstats
path: root/tests/topotests/README.md
diff options
context:
space:
mode:
authorMartin Winter <mwinter@opensourcerouting.org>2017-04-27 04:54:25 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-11-28 02:22:11 +0100
commit50c40bdebb8c989e3cfec93554721029cda0c90f (patch)
tree36111d950c8b05335a128b0f0f82035a3dc6f5f3 /tests/topotests/README.md
parentlib: Fix another typo on kernel compare (diff)
downloadfrr-50c40bdebb8c989e3cfec93554721029cda0c90f.tar.xz
frr-50c40bdebb8c989e3cfec93554721029cda0c90f.zip
Fix memory leak detection and reporting which accidentally was dropped a month ago
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Diffstat (limited to 'tests/topotests/README.md')
-rw-r--r--tests/topotests/README.md36
1 files changed, 34 insertions, 2 deletions
diff --git a/tests/topotests/README.md b/tests/topotests/README.md
index ce494d49e..ee099ea34 100644
--- a/tests/topotests/README.md
+++ b/tests/topotests/README.md
@@ -81,8 +81,8 @@ And create frr User and frrvty group as follows:
py.test -s -v --tb=no
-All test_* scripts in subdirectories are detected and executed (unless disabled in
-`pytest.ini` file)
+All test_* scripts in subdirectories are detected and executed (unless
+disabled in `pytest.ini` file)
`--tb=no` disables the python traceback which might be irrelevant unless the
test script itself is debugged
@@ -101,6 +101,38 @@ For the simulated topology, see the description in the python file
If you need to clear the mininet setup between tests (if it isn't cleanly
shutdown), then use the `mn -c` command to clean up the environment
+#### (Optional) StdErr log from daemos after exit
+
+To enable the reporting of any messages seen on StdErr after the
+daemons exit, the following env variable can be set.
+
+ export TOPOTESTS_CHECK_STDERR=Yes
+
+(The value doesn't matter at this time. The check is if the env variable
+exists or not)
+There is no pass/fail on this reporting. The Output will be reported to
+the console
+
+ export TOPOTESTS_CHECK_MEMLEAK="/home/mydir/memleak_"
+
+This will enable the check and output to console and the writing of
+the information to files with the given prefix (followed by testname),
+ie `/home/mydir/memcheck_test_bgp_multiview_topo1.txt` in case of a
+memory leak.
+
+#### (Optional) Collect Memory Leak Information
+
+FreeRangeRouting processes have the capabilities to report remaining memory
+allocations upon exit. To enable the reporting of the memory, define an
+enviroment variable `TOPOTESTS_CHECK_MEMLEAK` with the file prefix, ie
+
+ export TOPOTESTS_CHECK_MEMLEAK="/home/mydir/memleak_"
+
+This will enable the check and output to console and the writing of
+the information to files with the given prefix (followed by testname),
+ie `/home/mydir/memcheck_test_bgp_multiview_topo1.txt` in case of a
+memory leak.
+
## License
All the configs and scripts are licensed under a ISC-style license. See