delandtj / mushroom_test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

testing mycelium

This lill skrip will just start $NUMOFNS network namespaces in your LINUX box where you can SUDO (because I know for a fact that you weren't root, of course), start a mycelium daemon in the main namespace and one in each NS.

Usage :

Start with

source ./bigmush.sh
getmycelium

will get the latest release binary from github

Then

source ./bigmush.sh
doit

will create and start a 50 node mycelium with one central

source ./bigmush
dropit

will kill with little mercy mycelium daemons and delete the namespaces

source ./bigmush.sh
cleanit

will do a dropit and clean *.{bin,out} files

showit

will send a USR1 signal to all mycelium daemons that will

  • send routing tables and peers to stdout
  • where stdout will be captured in xx.out for each NS

logging

every namespace has an xx.out file that is stout and stderr the xx.bin file is the namespace daemon's privkey.

behaviour testing

  1. verify if you can reach all mycelium namespaces
  2. also when running another machine in your net, verify if it's automatically detected

About


Languages

Language:Shell 100.0%