automatic execution of 1 test for all topologies

master
Frederik Maaßen 2 years ago
parent 343325dd53
commit 82b3172455
  1. 11
      implementation/mininet_controller.py

@ -674,6 +674,7 @@ if __name__ == '__main__':
parser.add_argument('--limit_bw', help='limit bandwith of links in MBits')
parser.add_argument('--delay', help='add delay in ms to each link')
parser.add_argument('--produce_set', help='will execute the test with and without ShortCut', action='store_true')
parser.add_argument('--full_suite', help='will execute the test with and without ShortCut on all defined topologies', action='store_true')
args = parser.parse_args()
bw_limit = None
delay = None
@ -709,6 +710,12 @@ if __name__ == '__main__':
sleep(1)
use_shortcut = True
run(args.topo, args.test, bw_limit, delay, use_shortcut)
else:
run(args.topo, args.test, bw_limit, delay, use_shortcut)
elif args.full_suite:
topologies_to_test = ['4R4H', '6R4H', '8R4H']
for test_topo in topologies_to_test:
use_shortcut = False
run(test_topo, args.test, bw_limit, delay, use_shortcut)
sleep(1)
use_shortcut = True
run(test_topo, args.test, bw_limit, delay, use_shortcut)