Initial test
This commit is contained in:
commit
5033f01da8
|
@ -0,0 +1,28 @@
|
|||
menu_last_game = VoxeLibre
|
||||
server_announce = false
|
||||
enable_damage = true
|
||||
creative_mode = false
|
||||
mainmenu_last_selected_world = 9
|
||||
window_maximized = true
|
||||
screen_h = 684
|
||||
screen_w = 1366
|
||||
maintab_LAST = local
|
||||
remote_port = 30000
|
||||
address = 127.0.0.1
|
||||
name = tester
|
||||
minimap_shape_round = false
|
||||
mute_sound = true
|
||||
free_move = false
|
||||
fast_move = false
|
||||
awards_notif_delay = nil
|
||||
noclip = false
|
||||
world_config_selected_mod = 1
|
||||
doubletap_jump = false
|
||||
keymap_toggle_block_bounds = KEY_F7
|
||||
keymap_decrease_viewing_range_min = KEY_MINUS
|
||||
keymap_increase_viewing_range_min = KEY_PLUS
|
||||
aux1_descends = false
|
||||
autojump = false
|
||||
keymap_cmd_local = KEY_PERIOD
|
||||
update_information_url =
|
||||
random_mod_load_order = true
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
MINETEST=../../../../bin/minetest
|
||||
GAMEID=VoxeLibre
|
||||
|
||||
for I in $(seq 1 20); do
|
||||
rm -f ./test.log || true
|
||||
$MINETEST --server --config ./minetest.conf --world ./test-world --logfile ./test.log --gameid $GAMEID --go &
|
||||
PID=$!
|
||||
|
||||
DONE=false
|
||||
while ! $DONE; do
|
||||
if grep ERROR ./test.log ; then
|
||||
echo "[FAILED]"
|
||||
exit 1
|
||||
fi
|
||||
if grep 'Server for gameid="VoxeLibre" listening on ' ./test.log; then
|
||||
echo "DONE"
|
||||
DONE=true
|
||||
kill $PID
|
||||
wait $PID
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
done
|
||||
|
||||
echo "[PASSED]"
|
||||
exit 0
|
Loading…
Reference in New Issue