Test your spanning tree protocol algorithm against the official solutions provided by the CS6250 TAs.
It will parse the solution for the selected topology you've chosen. It will then compare the solution to your output. If the output matches the solution, it will print acknowledge that your output matches the solution. If the output does not match the solution, it will acknowledge that your output does not match the solution. If chosen to test all cases, it will acknowledge the number of tests that passed versus fail.
Clone this repository into your SpanningTree
directory.
git clone \
https://github.com/nicholasadamou/cs6250-spanning-tree-protocol-test-suite \
test-suite
From within the test-suite
directory, run the following command:
# python3 tester.py {name of topology here}
python3 test_spanning_tree.py SimpleLoopTopo
# If no topology is specified it will default to use all topologies.
# By 'all' I mean each topology provided in the solutions directory.
# These solutions are the official solutions provided by the TAs for
# project 1.
python3 test_spanning_tree.py
# Alternatively, you can test against the student topologies provided.
python3 test_student_spanning_tree.py 4dHyperCubeTopo
# If no topology is specified it will default to use all student topologies.
python3 test_student_spanning_tree.py
- Followed the steps here to download WSL and add the WSL extension to VS Code (default Ubuntu distribution worked).
- Open a WSL terminal from VS Code.
- Run the git clone command from above in the WSL terminal.
- Following the steps from above to run
test_spanning_tree.py
ortest_student_spanning_tree.py
.