|
OpenCoD2-Plus
Call of Duty 2 client & server, rebuilt
|
Classes | |
| class | Run |
Functions | |
| 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 = 'twopw' |
| str | G_SPEED = '300' |
| str | SMALL_LOG = 'small games log\n' |
Two players on the dedicated server: join, play, leave, come back, get kicked.
python3 scripts/two_players_test.py /path/to/CoD2 --protocol {115|118} [--binary PATH]
Starts the server in LAN mode on tdm with developer 1, which makes a script
error stop the map, and a temporary home folder, joins two
clients of cod2client.py, has both send commands, disconnects the first one
and joins it again, and kicks the second one with rcon. After every step the
server must still answer getinfo; at the end its log must hold no crash
report or script error. g_speed set on the command line must survive the
game's registration, and a games_mp.log under g_logRotateSize must not be
rotated. Exits with 0 when all of that holds.
| two_players_test.main | ( | ) |
| dict two_players_test.DEFAULT_BINARY = {115: 'build/check-linux-10/cod2_lnxded', 118: 'build/check-linux/cod2_lnxded'} |
| str two_players_test.G_SPEED = '300' |
| str two_players_test.RCON = 'twopw' |
| two_players_test.ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
| str two_players_test.SMALL_LOG = 'small games log\n' |