|
OpenCoD2-Plus
Call of Duty 2 client & server, rebuilt
|
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') |
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.
| map_reload_test.current_map | ( | port | ) |
| map_reload_test.main | ( | ) |
| map_reload_test.wait_for_map | ( | server, | |
| port, | |||
| want, | |||
| timeout = 90 ) |
| dict map_reload_test.DEFAULT_BINARY = {115: 'build/check-linux-10/cod2_lnxded', 118: 'build/check-linux/cod2_lnxded'} |
| tuple map_reload_test.MAPS = ('mp_toujane', 'mp_carentan') |
| str map_reload_test.RCON = 'reloadpw' |
| map_reload_test.ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |