purposes</title>
<meta name='generator' content='cgit v1.2.3'/>
<meta name='robots' content='index, nofollow'/>
<link rel='stylesheet' type='text/css' href='/static/cgit.css'/>
<link rel='shortcut icon' href='//bananach.space/favicon.png'/>
<link rel='alternate' title='Atom feed' href='https://git.bananach.space/minetest.git/atom/util/test_multiplayer.sh?h=release' type='application/atom+xml'/>
</head>
<body>
<div id='cgit'><table id='header'>
<tr>
<td class='logo' rowspan='2'><a href='/'><img src='//bananach.space/bananach.png' alt='cgit logo'/></a></td>
<td class='main'><a href='/'>index</a> : <a title='minetest.git' href='/minetest.git/'>minetest.git</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='ad0f20835cd4f64f5d47f537125e9e3157717beb'/><select name='h' onchange='this.form.submit();'>
<option value='gpcf'>gpcf</option>
<option value='lifo-fixes'>lifo-fixes</option>
<option value='release' selected='selected'>release</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>modified minetest for gpcfs purposes</td><td class='sub right'>gpcf</td></tr></table>
<table class='tabs'><tr><td>
<a href='/minetest.git/?h=release'>summary</a><a href='/minetest.git/refs/?h=release&amp;id=ad0f20835cd4f64f5d47f537125e9e3157717beb'>refs</a><a href='/minetest.git/log/util/test_multiplayer.sh?h=release'>log</a><a class='active' href='/minetest.git/tree/util/test_multiplayer.sh?h=release&amp;id=ad0f20835cd4f64f5d47f537125e9e3157717beb'>tree</a><a href='/minetest.git/commit/util/test_multiplayer.sh?h=release&amp;id=ad0f20835cd4f64f5d47f537125e9e3157717beb'>commit</a><a href='/minetest.git/diff/util/test_multiplayer.sh?h=release&amp;id=ad0f20835cd4f64f5d47f537125e9e3157717beb'>diff</a></td><td class='form'><form class='right' method='get' action='/minetest.git/log/util/test_multiplayer.sh'>
<input type='hidden' name='h' value='release'/><input type='hidden' name='id' value='ad0f20835cd4f64f5d47f537125e9e3157717beb'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/minetest.git/tree/?h=release&amp;id=ad0f20835cd4f64f5d47f537125e9e3157717beb'>root</a>/<a href='/minetest.git/tree/util?h=release&amp;id=ad0f20835cd4f64f5d47f537125e9e3157717beb'>util</a>/<a href='/minetest.git/tree/util/test_multiplayer.sh?h=release&amp;id=ad0f20835cd4f64f5d47f537125e9e3157717beb'>test_multiplayer.sh</a></div><div class='content'>blob: 9ebfe73be488f3a25398b1cda3c44c039941e048 (<a href='/minetest.git/plain/util/test_multiplayer.sh?h=release&amp;id=ad0f20835cd4f64f5d47f537125e9e3157717beb'>plain</a>)
<table summary='blob content' class='blob'>
<tr><td class='linenumbers'><pre><a id='n1' href='#n1'>1</a>
<a id='n2' href='#n2'>2</a>
<a id='n3' href='#n3'>3</a>
<a id='n4' href='#n4'>4</a>
<a id='n5' href='#n5'>5</a>
<a id='n6' href='#n6'>6</a>
<a id='n7' href='#n7'>7</a>
<a id='n8' href='#n8'>8</a>
<a id='n9' href='#n9'>9</a>
<a id='n10' href='#n10'>10</a>
<a id='n11' href='#n11'>11</a>
<a id='n12' href='#n12'>12</a>
<a id='n13' href='#n13'>13</a>
<a id='n14' href='#n14'>14</a>
<a id='n15' href='#n15'>15</a>
<a id='n16' href='#n16'>16</a>
<a id='n17' href='#n17'>17</a>
<a id='n18' href='#n18'>18</a>
<a id='n19' href='#n19'>19</a>
<a id='n20' href='#n20'>20</a>
<a id='n21' href='#n21'>21</a>
<a id='n22' href='#n22'>22</a>
<a id='n23' href='#n23'>23</a>
<a id='n24' href='#n24'>24</a>
<a id='n25' href='#n25'>25</a>
<a id='n26' href='#n26'>26</a>
<a id='n27' href='#n27'>27</a>
<a id='n28' href='#n28'>28</a>
<a id='n29' href='#n29'>29</a>
<a id='n30' href='#n30'>30</a>
<a id='n31' href='#n31'>31</a>
<a id='n32' href='#n32'>32</a>
<a id='n33' href='#n33'>33</a>
<a id='n34' href='#n34'>34</a>
<a id='n35' href='#n35'>35</a>
<a id='n36' href='#n36'>36</a>
<a id='n37' href='#n37'>37</a>
<a id='n38' href='#n38'>38</a>
<a id='n39' href='#n39'>39</a>
<a id='n40' href='#n40'>40</a>
<a id='n41' href='#n41'>41</a>
<a id='n42' href='#n42'>42</a>
<a id='n43' href='#n43'>43</a>
</pre></td>
<td class='lines'><pre><code><span class="hl slc">#!/bin/bash</span>
dir<span class="hl opt">=</span><span class="hl str">&quot;$( cd &quot;</span>$<span class="hl opt">(</span> <span class="hl kwc">dirname</span> <span class="hl str">&quot;</span><span class="hl ipl">${BASH_SOURCE[0]}</span><span class="hl str">&quot;</span> <span class="hl opt">)</span><span class="hl str">&quot; &amp;&amp; pwd )&quot;</span>
gameid<span class="hl opt">=</span>minimal
minetest<span class="hl opt">=</span><span class="hl kwd">$dir</span><span class="hl opt">/</span>..<span class="hl opt">/</span>bin<span class="hl opt">/</span>minetest
testspath<span class="hl opt">=</span><span class="hl kwd">$dir</span><span class="hl opt">/</span>..<span class="hl opt">/</span>tests
worldpath<span class="hl opt">=</span><span class="hl kwd">$testspath</span><span class="hl opt">/</span>testworld_<span class="hl kwd">$gameid</span>
configpath<span class="hl opt">=</span><span class="hl kwd">$testspath</span><span class="hl opt">/</span>configs
logpath<span class="hl opt">=</span><span class="hl kwd">$testspath</span><span class="hl opt">/</span>log
conf_server<span class="hl opt">=</span><span class="hl kwd">$configpath</span><span class="hl opt">/</span>minetest.conf.multi.server
conf_client1<span class="hl opt">=</span><span class="hl kwd">$configpath</span><span class="hl opt">/</span>minetest.conf.multi.client1
conf_client2<span class="hl opt">=</span><span class="hl kwd">$configpath</span><span class="hl opt">/</span>minetest.conf.multi.client2
log_server<span class="hl opt">=</span><span class="hl kwd">$logpath</span><span class="hl opt">/</span>server.log
log_client1<span class="hl opt">=</span><span class="hl kwd">$logpath</span><span class="hl opt">/</span>client1.log
log_client2<span class="hl opt">=</span><span class="hl kwd">$logpath</span><span class="hl opt">/</span>client2.log

mkdir <span class="hl kwb">-p</span> <span class="hl kwd">$worldpath</span>
mkdir <span class="hl kwb">-p</span> <span class="hl kwd">$configpath</span>
mkdir <span class="hl kwb">-p</span> <span class="hl kwd">$logpath</span>

<span class="hl kwb">echo -ne</span> <span class="hl str">&apos;client1::shout,interact,settime,teleport,give</span>
<span class="hl str">client2::shout,interact,settime,teleport,give</span>
<span class="hl str">&apos;</span> <span class="hl opt">&gt;</span> <span class="hl kwd">$worldpath</span><span class="hl opt">/</span>auth.txt

<span class="hl kwb">echo -ne</span> <span class="hl str">&apos;&apos;</span> <span class="hl opt">&gt;</span> <span class="hl kwd">$conf_server</span>

<span class="hl kwb">echo -ne</span> <span class="hl str">&apos;# client 1 config</span>
<span class="hl str">screenW=500</span>
<span class="hl str">screenH=380</span>
<span class="hl str">name=client1</span>
<span class="hl str">viewing_range_nodes_min=10</span>
<span class="hl str">&apos;</span> <span class="hl opt">&gt;</span> <span class="hl kwd">$conf_client1</span>

<span class="hl kwb">echo -ne</span> <span class="hl str">&apos;# client 2 config</span>
<span class="hl str">screenW=500</span>
<span class="hl str">screenH=380</span>
<span class="hl str">name=client2</span>
<span class="hl str">viewing_range_nodes_min=10</span>
<span class="hl str">&apos;</span> <span class="hl opt">&gt;</span> <span class="hl kwd">$conf_client2</span>

<span class="hl kwb">echo</span> $<span class="hl opt">(</span><span class="hl kwc">sleep</span> <span class="hl num">1</span><span class="hl opt">;</span> <span class="hl kwd">$minetest</span> <span class="hl kwb">--disable-unittests --logfile</span> <span class="hl kwd">$log_client1</span> <span class="hl kwb">--config</span> <span class="hl kwd">$conf_client1</span> <span class="hl kwb">--go --address</span> localhost<span class="hl opt">) &amp;</span>
<span class="hl kwb">echo</span> $<span class="hl opt">(</span><span class="hl kwc">sleep</span> <span class="hl num">2</span><span class="hl opt">;</span> <span class="hl kwd">$minetest</span> <span class="hl kwb">--disable-unittests --logfile</span> <span class="hl kwd">$log_client2</span> <span class="hl kwb">--config</span> <span class="hl kwd">$conf_client2</span> <span class="hl kwb">--go --address</span> localhost<span class="hl opt">) &amp;</span>
<span class="hl kwd">$minetest</span> <span class="hl kwb">--disable-unittests --server --logfile</span> <span class="hl kwd">$log_server</span> <span class="hl kwb">--config</span> <span class="hl kwd">$conf_server</span> <span class="hl kwb">--world</span> <span class="hl kwd">$worldpath</span> <span class="hl kwb">--gameid</span> <span class="hl kwd">$gameid</span>

</code></pre></td></tr></table>
</div> <!-- class=content -->
<div class='footer'>generated by <a href='https://git.zx2c4.com/cgit/about/'>cgit v1.2.3</a> (<a href='https://git-scm.com/'>git 2.25.1</a>) at 2024-10-25 04:17:51 +0000</div>
</div> <!-- id=cgit -->
</body>
</html>
