Coder Social home page Coder Social logo

cs6250-spanning-tree-protocol-test-suite's Introduction

CS6250 Spanning Tree Protocol Test Suite

Test your spanning tree protocol algorithm against the official solutions provided by the CS6250 TAs.

What does it do?

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.

How do I download it?

Clone this repository into your SpanningTree directory.

git clone \
 https://github.com/nicholasadamou/cs6250-spanning-tree-protocol-test-suite \
 test-suite

How do I use it?

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

What if I am on Windows?

  1. Followed the steps here to download WSL and add the WSL extension to VS Code (default Ubuntu distribution worked).
  2. Open a WSL terminal from VS Code.
  3. Run the git clone command from above in the WSL terminal.
  4. Following the steps from above to run test_spanning_tree.py or test_student_spanning_tree.py.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.