+ {0, 0, 0}
+};
+
+test_st cmdline_tests[] ={
+ {"echo fubar", 0, echo_fubar_BINARY },
+ {"core-count", 0, core_count_BINARY },
+ {"wait --quiet", 0, wait_BINARY },
+ {"wait --quiet --help", 0, wait_help_BINARY },
+ {"wait --quiet --version", 0, wait_version_BINARY },
+ {"wait --quiet /etc/services", 0, wait_services_BINARY },
+ {"wait /etc/services", 0, wait_services_BINARY2 },
+ {"wait /etc/services", 0, wait_services_appliction_TEST },
+ {"gdb wait /etc/services", 0, gdb_wait_services_appliction_TEST },
+ {"gdb abort", 0, gdb_abort_services_appliction_TEST },
+ {0, 0, 0}
+};
+
+test_st get_free_port_TESTS[] ={
+ {"get_free_port()", 0, get_free_port_TEST },
+ {"default_port()", 0, default_port_TEST },
+ {0, 0, 0}
+};
+
+test_st fatal_message_TESTS[] ={
+ {"libtest::fatal", 0, fatal_TEST },
+ {"fatal_message()", 0, fatal_message_TEST },
+ {0, 0, 0}
+};
+
+test_st number_of_cpus_TESTS[] ={
+ {"libtest::number_of_cpus()", 0, number_of_cpus_TEST },
+ {0, 0, 0}
+};
+
+test_st create_tmpfile_TESTS[] ={
+ {"libtest::create_tmpfile()", 0, create_tmpfile_TEST },
+ {0, 0, 0}
+};
+
+test_st timer_TESTS[] ={
+ {"libtest::Timer", 0, Timer_TEST },
+ {0, 0, 0}
+};
+
+test_st dns_TESTS[] ={
+ {"libtest::lookup(true)", 0, lookup_true_TEST },
+ {"libtest::lookup(false)", 0, lookup_false_TEST },
+ {"libtest::check_dns()", 0, check_dns_TEST },
+ {0, 0, 0}
+};
+
+test_st application_tests[] ={
+ {"vchar_t", 0, vchar_t_TEST },
+ {"vchar_t make() append()", 0, vchar_t_make_append_TEST },
+ {"vchar_t compare()", 0, vchar_t_compare_neg_TEST },
+ {"true", 0, application_true_BINARY },
+ {"gbd true --fubar", 0, application_gdb_true_BINARY },
+ {"gbd true", 0, application_gdb_true_BINARY2 },
+ {"true --fubar", 0, application_true_fubar_BINARY },
+ {"doesnotexist --fubar", 0, application_doesnotexist_BINARY },
+ {"echo fubar", 0, application_echo_fubar_BINARY },
+ {"echo fubar (as option)", 0, application_echo_fubar_BINARY2 },
+ {0, 0, 0}
+};
+
+static test_return_t check_for_curl(void *)
+{
+ test_skip(true, HAVE_LIBCURL);
+ return TEST_SUCCESS;
+}
+
+static test_return_t disable_fatal_exception(void *)
+{
+ fatal_calls= 0;
+ fatal::disable();
+ return TEST_SUCCESS;
+}
+
+static test_return_t enable_fatal_exception(void *)
+{
+ fatal::enable();
+ return TEST_SUCCESS;
+}
+
+test_st http_tests[] ={
+ {"GET", 0, GET_TEST },
+ {"POST", 0, POST_TEST },
+ {"TRACE", 0, TRACE_TEST },