OpenCoD2-Plus
Call of Duty 2 client & server, rebuilt
Loading...
Searching...
No Matches
map_reload_test Namespace Reference

Functions

 current_map (port)
 wait_for_map (server, port, want, timeout=90)
 main ()

Variables

 ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
dict DEFAULT_BINARY = {115: 'build/check-linux-10/cod2_lnxded', 118: 'build/check-linux/cod2_lnxded'}
str RCON = 'reloadpw'
tuple MAPS = ('mp_toujane', 'mp_carentan')

Detailed Description

Map loads on the dedicated server: map_restart and map, several times over.

    python3 scripts/map_reload_test.py /path/to/CoD2 --protocol {115|118} [--binary PATH] [--loads N] [--log PATH] [--wrap CMD]

Starts the server in LAN mode with a temporary home folder and loads maps
through rcon, alternating map_restart and map between two maps, N times
(8 by default). After each load the server must answer getinfo with the
map it was asked for; at the end its log must hold no crash report and its
game log must be in the home folder. Exits
with 0 when all of that holds.

Function Documentation

◆ current_map()

map_reload_test.current_map ( port)

◆ main()

map_reload_test.main ( )

◆ wait_for_map()

map_reload_test.wait_for_map ( server,
port,
want,
timeout = 90 )

Variable Documentation

◆ DEFAULT_BINARY

dict map_reload_test.DEFAULT_BINARY = {115: 'build/check-linux-10/cod2_lnxded', 118: 'build/check-linux/cod2_lnxded'}

◆ MAPS

tuple map_reload_test.MAPS = ('mp_toujane', 'mp_carentan')

◆ RCON

str map_reload_test.RCON = 'reloadpw'

◆ ROOT

map_reload_test.ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))