Add a preliminary client test suite

This simply tests the current functionality of the gamemode_client tools by calling each function in turn and checking the values return correctly.

	Requires the gamemode service to currently be running and installed on the system.
This commit is contained in:
Marc Di Luzio
2019-01-26 11:33:20 +00:00
parent 825b077f6d
commit c83fca408b
3 changed files with 212 additions and 2 deletions

View File

@@ -142,7 +142,7 @@ int main(int argc, char *argv[])
exit(EXIT_SUCCESS);
break;
case 't':
if ((status = game_mode_run_tests()) == 0) {
if ((status = game_mode_run_client_tests()) == 0) {
fprintf(stdout, "gamemode tests succeeded\n");
exit(EXIT_SUCCESS);
} else if (status == -1) {