GNS3 / GNS3/dynamips

Need a test script

Open
#141 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
405
Forks
99
Avg merge
3m
Merged PRs (30d)
1

Description

I don't use this software so I'm asking help from anyone that uses it.

Requirements of the script:

  • uses a regular dynamips executable (no extra code changes)
  • no gui or user interaction, to be executed from the console as part of automated tests (I'm in a 64-bit linux)
  • it must assert that a router capability worked (maybe send a packet from A to B?, starting up is not enough)

Optional, would be nice to have:

  • cleanup leftovers so the next run occurs in the same conditions
  • report the amount of clock time it took to complete the task
  • report the amount of cpu time it took to complete the task
  • report the amount of memory it needed to complete the task
  • use an easy-to-modify setup or language (like python)
  • minimize dependencies

Long story:

I'm playing around with rust in this project. After a few tries I arrived at a nice solution. I have access to the public structures and functions that the C code provides and can easily replace any C function with a rust function.

I make mistakes all the time, so I need a baseline test to avoid the accumulation of mistakes that comes with blind development. My focus/interest is the virtual hardware, which I want to experiment with, possibly complete or fix.

It sucks to see this project with security bugs, but I'm not gonna touch C code unless someone integrates Coverity Scan or similar into the CI (so I can see a list of bugs).
I find C to be very error-prone, I don't intend to repeat that frustrating development experience now that I know rust.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the dynamips executable and the requirements in this issue, then determine how a console-only test can exercise a router capability without code changes. Done means an automated baseline test asserts behavior beyond startup, with cleanup and resource reporting included where feasible.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, python, rust
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.