From c57822a3dfddb647c32840b68ca69f4ed4dca462 Mon Sep 17 00:00:00 2001 From: Hans Moog <hm@mkjc.net> Date: Wed, 17 Apr 2019 04:46:40 +0200 Subject: [PATCH] Feat: test suit --- runMasternode.bat | 8 ++++++++ runSimulation.bat | 20 ++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 runMasternode.bat create mode 100644 runSimulation.bat diff --git a/runMasternode.bat b/runMasternode.bat new file mode 100644 index 00000000..9049e5cd --- /dev/null +++ b/runMasternode.bat @@ -0,0 +1,8 @@ +@echo off +SETLOCAL EnableDelayedExpansion + +Set PEERING_PORT=14000 + +cd entryNode +start /b "" "go_build_github_com_iotaledger_goshimmer.exe" -autopeering-port %PEERING_PORT% -autopeering-entry-nodes e83c2e1f0ba552cbb6d08d819b7b2196332f8423@127.0.0.1:14000 -node-log-level 4 -node-disable-plugins statusscreen +cd .. \ No newline at end of file diff --git a/runSimulation.bat b/runSimulation.bat new file mode 100644 index 00000000..02b60bb3 --- /dev/null +++ b/runSimulation.bat @@ -0,0 +1,20 @@ +@echo off +SETLOCAL EnableDelayedExpansion + +Set PEERING_PORT=14000 + +mkdir testNodes +cd testNodes + +FOR /L %%i IN (1,1,100) DO ( + set /A PEERING_PORT=PEERING_PORT+1 + + del /Q /S node%%i + mkdir node%%i + copy ..\entryNode\go_build_github_com_iotaledger_goshimmer.exe node%%i\goshimmer.exe + cd node%%i + start /b "" "goshimmer.exe" -autopeering-port !PEERING_PORT! -autopeering-entry-nodes e83c2e1f0ba552cbb6d08d819b7b2196332f8423@127.0.0.1:14000 -node-log-level 4 -node-disable-plugins statusscreen + cd .. +) + +cd .. \ No newline at end of file -- GitLab