8. Batch testing - coppolam/swarmulator GitHub Wiki
There are scripts available in the scripts folder to run several tests in one go.
run_n_simulations.sh
will run several simulations one after the other. Note that this assumes that there is a killswitch somewhere in the code, or else a simulation will not quit and the other one will not begin.parallel_simulations.sh
runs several simulations in parallel, which may save some time. As for the above, it is assumed that a kill switch is present in the code.
Kill switch in simulation
Swarmulator can be quit manually (see User Commands), but it is also possible to have the simulation quit on its own. To do this, the global variable program_running
can be set to false
. When this is done, swarmulator
will exit.