17 #include "my_config.h"
18 #include <gtest/gtest.h>
19 #include <gmock/gmock.h>
21 #include "my_getopt.h"
27 my_bool opt_use_tap=
true;
28 my_bool opt_help=
false;
32 {
"tap-output", 1,
"TAP (default) or gunit output.",
33 &opt_use_tap, &opt_use_tap, NULL,
39 &opt_help, &opt_help, NULL,
44 {0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
48 extern "C" my_bool get_one_option(
int,
const struct my_option *,
char *)
57 uint opt_debug_sync_timeout= 0;
61 extern "C" void sql_alloc_error_handler(
void)
67 extern void install_tap_listener();
69 int main(
int argc,
char **argv)
71 ::testing::InitGoogleTest(&argc, argv);
72 ::testing::InitGoogleMock(&argc, argv);
75 if (handle_options(&argc, &argv, unittest_options, get_one_option))
78 install_tap_listener();
80 printf(
"\n\nTest options: [--[disable-]tap-output]\n");
82 return RUN_ALL_TESTS();