Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated Tests #4

Open
hgn opened this issue Aug 28, 2017 · 0 comments
Open

Automated Tests #4

hgn opened this issue Aug 28, 2017 · 0 comments
Assignees

Comments

@hgn
Copy link
Member

hgn commented Aug 28, 2017

We should add a new analysis directory where we add all tests and analysis. These tests should call the dmpr-simulator.py with the correct arguments - including trace - and analyse the resulting results. Often there will be no passed/failed. Analysis often will print a graph (think about the header compression mathplot chart). But this is also fine if - it is important that we run tests and analysis in an automated manner.

E.g.

analysis/test-1-foo/test.py
analysis/test-2-fuz/test.py
analysis/test-3-bar/test.py
analysis/test-4-qux/test.py

I putted every test in a separate directory cause analysis scripts will generate files. After 10 scripts with the result files nobody will know where the files originate. This results files should be put in the script directory.

analysis/test-1-foo/test.py
analysis/test-1-foo/graph1.png
analysis/test-1-foo/graph2.png

The test.py script should look like

#!/usr/bin/python
import mathplotlib

popen("../dmpr-simulator.py --topology 001-foo-bar --trace TRACEPOINT1")

for node in ("router1", "router2):
      with open("../tracefile" + node) as fd:
           data = fd.read()
           plot(data)

--set-static-seed should be set to true for some tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants