summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2026-08-27 22:21:14 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2026-08-27 22:21:14 +0530
commit93f1e82cedbf2fcd45ac413cbf2a654e0f65f0b3 (patch)
tree5af71701d99071adf348735518b8dd1f560c3475 /tests
parent5a02743c0c9563f41a8c3821a7bbce4fc3b0b839 (diff)
uci testsHEADmaster
Diffstat (limited to 'tests')
-rw-r--r--tests/generated.c94
1 files changed, 91 insertions, 3 deletions
diff --git a/tests/generated.c b/tests/generated.c
index fc10446..3789b0b 100644
--- a/tests/generated.c
+++ b/tests/generated.c
@@ -7,9 +7,11 @@
#include "../src/engine/moves.c"
#include "../src/engine/moves/king.c"
#include "../src/uci/command.c"
+#include "../src/uci/response.c"
+#include "../src/uci/state.c"
-int total_test_count = 43;
-bool (*tests[43])(void) = {
+int total_test_count = 86;
+bool (*tests[86])(void) = {
test_fen_no_passant,
test_fen_passant,
test_starting_position,
@@ -53,10 +55,53 @@ bool (*tests[43])(void) = {
test_black_king_corners,
test_uci_cmd_t,
test_invalid_cmd_uci_cmd_t,
+ test_uci_handshake_id_and_uciok,
+ test_uci_handshake_prints_all_options,
+ test_isready_returns_readyok,
+ test_isready_transitions_to_idle,
+ test_debug_on_sets_flag,
+ test_debug_off_clears_flag,
+ test_setoption_spin,
+ test_setoption_spin_clamps_too_low,
+ test_setoption_spin_clamps_too_high,
+ test_setoption_check_true,
+ test_setoption_check_false,
+ test_setoption_button,
+ test_setoption_string,
+ test_setoption_hash_changes_value,
+ test_position_startpos_loads,
+ test_position_fen_loads,
+ test_position_startpos_moves,
+ test_go_depth_sets_args,
+ test_go_wtime_btime_sets_args,
+ test_go_nodes_sets_args,
+ test_go_movetime_sets_args,
+ test_go_movestogo_sets_args,
+ test_go_mate_sets_args,
+ test_go_infinite_sets_flag,
+ test_go_ponder_sets_flag,
+ test_go_combined_args,
+ test_go_perft_sets_args,
+ test_active_stop_transitions_to_idle,
+ test_halt_sets_stop_signal,
+ test_active_isready_transitions_to_ping,
+ test_quit_sets_signal,
+ test_new_game_accepted,
+ test_full_handshake_sequence,
+ test_uci_state_init_defaults,
+ test_apply_option_spin_valid,
+ test_apply_option_spin_below_min,
+ test_apply_option_spin_above_max,
+ test_apply_option_check,
+ test_apply_option_button,
+ test_apply_option_string,
+ test_apply_option_unknown_ignored,
+ test_option_settings_count,
+ test_option_settings_types,
};
int max_test_name_size = 35;
-char test_names[43][100] = {
+char test_names[86][100] = {
"fen_no_passant",
"fen_passant",
"starting_position",
@@ -100,4 +145,47 @@ char test_names[43][100] = {
"black_king_corners",
"uci_cmd_t",
"invalid_cmd_uci_cmd_t",
+ "uci_handshake_id_and_uciok",
+ "uci_handshake_prints_all_options",
+ "isready_returns_readyok",
+ "isready_transitions_to_idle",
+ "debug_on_sets_flag",
+ "debug_off_clears_flag",
+ "setoption_spin",
+ "setoption_spin_clamps_too_low",
+ "setoption_spin_clamps_too_high",
+ "setoption_check_true",
+ "setoption_check_false",
+ "setoption_button",
+ "setoption_string",
+ "setoption_hash_changes_value",
+ "position_startpos_loads",
+ "position_fen_loads",
+ "position_startpos_moves",
+ "go_depth_sets_args",
+ "go_wtime_btime_sets_args",
+ "go_nodes_sets_args",
+ "go_movetime_sets_args",
+ "go_movestogo_sets_args",
+ "go_mate_sets_args",
+ "go_infinite_sets_flag",
+ "go_ponder_sets_flag",
+ "go_combined_args",
+ "go_perft_sets_args",
+ "active_stop_transitions_to_idle",
+ "halt_sets_stop_signal",
+ "active_isready_transitions_to_ping",
+ "quit_sets_signal",
+ "new_game_accepted",
+ "full_handshake_sequence",
+ "uci_state_init_defaults",
+ "apply_option_spin_valid",
+ "apply_option_spin_below_min",
+ "apply_option_spin_above_max",
+ "apply_option_check",
+ "apply_option_button",
+ "apply_option_string",
+ "apply_option_unknown_ignored",
+ "option_settings_count",
+ "option_settings_types",
};