commit 5033f01da8c812d334d09e648e78edc262e2423d Author: teknomunk Date: Fri Sep 13 08:15:09 2024 -0500 Initial test diff --git a/dependency_paradise/minetest.conf b/dependency_paradise/minetest.conf new file mode 100644 index 0000000..f1fbfc5 --- /dev/null +++ b/dependency_paradise/minetest.conf @@ -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 diff --git a/dependency_paradise/test.sh b/dependency_paradise/test.sh new file mode 100755 index 0000000..5bb56e1 --- /dev/null +++ b/dependency_paradise/test.sh @@ -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