2011-04-18 18:10:18 +00:00
|
|
|
/* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
|
* of this software and associated documentation files (the "Software"), to
|
|
|
|
|
* deal in the Software without restriction, including without limitation the
|
|
|
|
|
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
|
|
* sell copies of the Software, and to permit persons to whom the Software is
|
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
|
*
|
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
|
*
|
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
|
|
|
* IN THE SOFTWARE.
|
|
|
|
|
*/
|
|
|
|
|
|
2011-07-02 00:54:17 +00:00
|
|
|
TEST_DECLARE (tcp_ping_pong)
|
|
|
|
|
TEST_DECLARE (tcp_ping_pong_v6)
|
|
|
|
|
TEST_DECLARE (pipe_ping_pong)
|
2011-04-21 22:45:49 +00:00
|
|
|
TEST_DECLARE (delayed_accept)
|
2011-04-22 03:12:10 +00:00
|
|
|
TEST_DECLARE (tcp_writealot)
|
2011-07-21 00:00:12 +00:00
|
|
|
TEST_DECLARE (tcp_bind_error_addrinuse)
|
|
|
|
|
TEST_DECLARE (tcp_bind_error_addrnotavail_1)
|
|
|
|
|
TEST_DECLARE (tcp_bind_error_addrnotavail_2)
|
|
|
|
|
TEST_DECLARE (tcp_bind_error_fault)
|
|
|
|
|
TEST_DECLARE (tcp_bind_error_inval)
|
|
|
|
|
TEST_DECLARE (tcp_bind_localhost_ok)
|
|
|
|
|
TEST_DECLARE (tcp_listen_without_bind)
|
|
|
|
|
TEST_DECLARE (tcp_bind6_error_addrinuse)
|
|
|
|
|
TEST_DECLARE (tcp_bind6_error_addrnotavail)
|
|
|
|
|
TEST_DECLARE (tcp_bind6_error_fault)
|
|
|
|
|
TEST_DECLARE (tcp_bind6_error_inval)
|
|
|
|
|
TEST_DECLARE (tcp_bind6_localhost_ok)
|
|
|
|
|
TEST_DECLARE (pipe_bind_error_addrinuse)
|
|
|
|
|
TEST_DECLARE (pipe_bind_error_addrnotavail)
|
|
|
|
|
TEST_DECLARE (pipe_bind_error_inval)
|
|
|
|
|
TEST_DECLARE (pipe_listen_without_bind)
|
2011-04-21 22:45:49 +00:00
|
|
|
TEST_DECLARE (connection_fail)
|
2011-06-02 07:19:56 +00:00
|
|
|
TEST_DECLARE (connection_fail_doesnt_auto_close)
|
2011-06-02 09:31:42 +00:00
|
|
|
TEST_DECLARE (shutdown_eof)
|
2011-05-04 15:10:33 +00:00
|
|
|
TEST_DECLARE (callback_stack)
|
2011-05-16 23:17:48 +00:00
|
|
|
TEST_DECLARE (timer)
|
2011-05-18 23:58:07 +00:00
|
|
|
TEST_DECLARE (timer_again)
|
2011-07-21 00:51:26 +00:00
|
|
|
TEST_DECLARE (idle_starvation)
|
2011-05-08 02:44:55 +00:00
|
|
|
TEST_DECLARE (loop_handles)
|
2011-05-20 15:22:19 +00:00
|
|
|
TEST_DECLARE (ref)
|
|
|
|
|
TEST_DECLARE (idle_ref)
|
|
|
|
|
TEST_DECLARE (async_ref)
|
|
|
|
|
TEST_DECLARE (prepare_ref)
|
|
|
|
|
TEST_DECLARE (check_ref)
|
2011-07-21 12:53:40 +00:00
|
|
|
TEST_DECLARE (unref_in_prepare_cb)
|
2011-05-09 02:29:22 +00:00
|
|
|
TEST_DECLARE (async)
|
2011-05-21 01:05:37 +00:00
|
|
|
TEST_DECLARE (get_currentexe)
|
2011-06-17 09:47:35 +00:00
|
|
|
TEST_DECLARE (hrtime)
|
2011-06-25 13:33:52 +00:00
|
|
|
TEST_DECLARE (getaddrinfo_basic)
|
|
|
|
|
TEST_DECLARE (getaddrinfo_concurrent)
|
2011-06-20 16:41:57 +00:00
|
|
|
TEST_DECLARE (gethostbyname)
|
2011-07-11 20:45:16 +00:00
|
|
|
TEST_DECLARE (getsockname)
|
2011-04-19 12:51:10 +00:00
|
|
|
TEST_DECLARE (fail_always)
|
|
|
|
|
TEST_DECLARE (pass_always)
|
2011-07-21 00:55:26 +00:00
|
|
|
TEST_DECLARE (spawn_exit_code)
|
2011-07-02 00:54:17 +00:00
|
|
|
HELPER_DECLARE (tcp4_echo_server)
|
|
|
|
|
HELPER_DECLARE (tcp6_echo_server)
|
|
|
|
|
HELPER_DECLARE (pipe_echo_server)
|
2011-04-04 23:43:17 +00:00
|
|
|
|
2011-06-25 10:35:49 +00:00
|
|
|
|
2011-04-19 02:26:32 +00:00
|
|
|
TASK_LIST_START
|
2011-07-02 00:54:17 +00:00
|
|
|
TEST_ENTRY (tcp_ping_pong)
|
|
|
|
|
TEST_HELPER (tcp_ping_pong, tcp4_echo_server)
|
2011-04-04 23:43:17 +00:00
|
|
|
|
2011-07-02 00:54:17 +00:00
|
|
|
TEST_ENTRY (tcp_ping_pong_v6)
|
|
|
|
|
TEST_HELPER (tcp_ping_pong_v6, tcp6_echo_server)
|
|
|
|
|
|
|
|
|
|
TEST_ENTRY (pipe_ping_pong)
|
|
|
|
|
TEST_HELPER (pipe_ping_pong, pipe_echo_server)
|
2011-07-02 00:04:05 +00:00
|
|
|
|
2011-04-21 22:45:49 +00:00
|
|
|
TEST_ENTRY (delayed_accept)
|
|
|
|
|
|
2011-04-22 03:12:10 +00:00
|
|
|
TEST_ENTRY (tcp_writealot)
|
2011-07-02 00:54:17 +00:00
|
|
|
TEST_HELPER (tcp_writealot, tcp4_echo_server)
|
2011-04-22 03:12:10 +00:00
|
|
|
|
2011-07-21 00:00:12 +00:00
|
|
|
TEST_ENTRY (tcp_bind_error_addrinuse)
|
|
|
|
|
TEST_ENTRY (tcp_bind_error_addrnotavail_1)
|
|
|
|
|
TEST_ENTRY (tcp_bind_error_addrnotavail_2)
|
|
|
|
|
TEST_ENTRY (tcp_bind_error_fault)
|
|
|
|
|
TEST_ENTRY (tcp_bind_error_inval)
|
|
|
|
|
TEST_ENTRY (tcp_bind_localhost_ok)
|
|
|
|
|
TEST_ENTRY (tcp_listen_without_bind)
|
|
|
|
|
|
|
|
|
|
TEST_ENTRY (tcp_bind6_error_addrinuse)
|
|
|
|
|
TEST_ENTRY (tcp_bind6_error_addrnotavail)
|
|
|
|
|
TEST_ENTRY (tcp_bind6_error_fault)
|
|
|
|
|
TEST_ENTRY (tcp_bind6_error_inval)
|
|
|
|
|
TEST_ENTRY (tcp_bind6_localhost_ok)
|
|
|
|
|
|
|
|
|
|
TEST_ENTRY (pipe_bind_error_addrinuse)
|
|
|
|
|
TEST_ENTRY (pipe_bind_error_addrnotavail)
|
|
|
|
|
TEST_ENTRY (pipe_bind_error_inval)
|
|
|
|
|
TEST_ENTRY (pipe_listen_without_bind)
|
2011-06-27 04:34:04 +00:00
|
|
|
|
2011-04-21 22:45:49 +00:00
|
|
|
TEST_ENTRY (connection_fail)
|
2011-06-02 07:19:56 +00:00
|
|
|
TEST_ENTRY (connection_fail_doesnt_auto_close)
|
2011-04-21 22:45:49 +00:00
|
|
|
|
2011-06-02 09:31:42 +00:00
|
|
|
TEST_ENTRY (shutdown_eof)
|
2011-07-02 00:54:17 +00:00
|
|
|
TEST_HELPER (shutdown_eof, tcp4_echo_server)
|
2011-06-02 09:31:42 +00:00
|
|
|
|
2011-05-04 15:10:33 +00:00
|
|
|
TEST_ENTRY (callback_stack)
|
2011-07-02 00:54:17 +00:00
|
|
|
TEST_HELPER (callback_stack, tcp4_echo_server)
|
2011-04-05 02:24:03 +00:00
|
|
|
|
2011-05-16 23:17:48 +00:00
|
|
|
TEST_ENTRY (timer)
|
2011-04-15 17:32:28 +00:00
|
|
|
|
2011-05-18 23:58:07 +00:00
|
|
|
TEST_ENTRY (timer_again)
|
|
|
|
|
|
2011-07-21 00:51:26 +00:00
|
|
|
TEST_ENTRY (idle_starvation)
|
|
|
|
|
|
2011-05-20 15:22:19 +00:00
|
|
|
TEST_ENTRY (ref)
|
|
|
|
|
TEST_ENTRY (idle_ref)
|
|
|
|
|
TEST_ENTRY (async_ref)
|
|
|
|
|
TEST_ENTRY (prepare_ref)
|
|
|
|
|
TEST_ENTRY (check_ref)
|
2011-07-21 12:53:40 +00:00
|
|
|
TEST_ENTRY (unref_in_prepare_cb)
|
2011-05-20 15:22:19 +00:00
|
|
|
|
2011-05-08 02:44:55 +00:00
|
|
|
TEST_ENTRY (loop_handles)
|
|
|
|
|
|
2011-05-09 02:29:22 +00:00
|
|
|
TEST_ENTRY (async)
|
|
|
|
|
|
2011-05-21 01:05:37 +00:00
|
|
|
TEST_ENTRY (get_currentexe)
|
|
|
|
|
|
2011-06-17 09:47:35 +00:00
|
|
|
TEST_ENTRY (hrtime)
|
2011-06-25 13:33:52 +00:00
|
|
|
|
|
|
|
|
TEST_ENTRY (getaddrinfo_basic)
|
|
|
|
|
TEST_ENTRY (getaddrinfo_concurrent)
|
2011-06-17 09:47:35 +00:00
|
|
|
|
2011-06-20 16:41:57 +00:00
|
|
|
TEST_ENTRY (gethostbyname)
|
2011-07-02 00:54:17 +00:00
|
|
|
TEST_HELPER (gethostbyname, tcp4_echo_server)
|
2011-06-20 16:41:57 +00:00
|
|
|
|
2011-07-11 20:45:16 +00:00
|
|
|
TEST_ENTRY (getsockname)
|
|
|
|
|
|
2011-07-21 00:55:26 +00:00
|
|
|
TEST_ENTRY (spawn_exit_code)
|
|
|
|
|
|
2011-05-03 23:56:26 +00:00
|
|
|
#if 0
|
|
|
|
|
/* These are for testing the test runner. */
|
2011-04-04 23:43:17 +00:00
|
|
|
TEST_ENTRY (fail_always)
|
|
|
|
|
TEST_ENTRY (pass_always)
|
2011-05-03 23:56:26 +00:00
|
|
|
#endif
|
2011-04-19 02:26:32 +00:00
|
|
|
TASK_LIST_END
|