17 #include "my_config.h"
18 #include <gtest/gtest.h>
19 #include <gmock/gmock.h>
21 #include "my_getopt.h"
22 #include "test_utils.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 *)
56 extern void install_tap_listener();
58 int main(
int argc,
char **argv)
60 ::testing::InitGoogleTest(&argc, argv);
61 ::testing::InitGoogleMock(&argc, argv);
64 if (handle_options(&argc, &argv, unittest_options, get_one_option))
67 install_tap_listener();
69 printf(
"\n\nTest options: [--[disable-]tap-output]\n");
71 my_testing::setup_server_for_unit_tests();
72 int ret= RUN_ALL_TESTS();
73 my_testing::teardown_server_for_unit_tests();