2011-04-18 11:10:18 -07: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-09-15 15:16:53 -07:00
|
|
|
TEST_DECLARE (tty)
|
2011-10-19 00:48:38 -07:00
|
|
|
TEST_DECLARE (stdio_over_pipes)
|
2011-10-25 13:07:29 -07:00
|
|
|
TEST_DECLARE (ipc_listen_before_write)
|
|
|
|
TEST_DECLARE (ipc_listen_after_write)
|
2011-07-01 17:54:17 -07:00
|
|
|
TEST_DECLARE (tcp_ping_pong)
|
|
|
|
TEST_DECLARE (tcp_ping_pong_v6)
|
2011-09-26 22:51:08 -07:00
|
|
|
TEST_DECLARE (tcp_ref)
|
|
|
|
TEST_DECLARE (tcp_ref2)
|
2011-07-01 17:54:17 -07:00
|
|
|
TEST_DECLARE (pipe_ping_pong)
|
2011-04-22 00:45:49 +02:00
|
|
|
TEST_DECLARE (delayed_accept)
|
2011-10-26 13:32:15 -07:00
|
|
|
TEST_DECLARE (multiple_listen)
|
2011-04-22 05:12:10 +02:00
|
|
|
TEST_DECLARE (tcp_writealot)
|
2011-07-21 02:00:12 +02: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)
|
2011-09-09 23:53:09 +02:00
|
|
|
TEST_DECLARE (tcp_close)
|
2011-10-21 15:37:47 -07:00
|
|
|
TEST_DECLARE (tcp_flags)
|
2011-09-16 04:36:32 +02:00
|
|
|
TEST_DECLARE (tcp_write_error)
|
2011-07-21 02:00:12 +02:00
|
|
|
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)
|
2011-08-19 23:22:30 +02:00
|
|
|
TEST_DECLARE (udp_send_and_recv)
|
2011-09-29 19:29:15 -04:00
|
|
|
TEST_DECLARE (udp_multicast_join)
|
2011-08-19 23:22:30 +02:00
|
|
|
TEST_DECLARE (udp_dgram_too_big)
|
|
|
|
TEST_DECLARE (udp_dual_stack)
|
|
|
|
TEST_DECLARE (udp_ipv6_only)
|
2011-07-21 02:00:12 +02:00
|
|
|
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-22 00:45:49 +02:00
|
|
|
TEST_DECLARE (connection_fail)
|
2011-06-02 09:19:56 +02:00
|
|
|
TEST_DECLARE (connection_fail_doesnt_auto_close)
|
2011-06-02 11:31:42 +02:00
|
|
|
TEST_DECLARE (shutdown_eof)
|
2011-05-04 17:10:33 +02:00
|
|
|
TEST_DECLARE (callback_stack)
|
2011-10-06 01:00:56 +02:00
|
|
|
TEST_DECLARE (error_message)
|
2011-05-17 01:17:48 +02:00
|
|
|
TEST_DECLARE (timer)
|
2011-09-26 22:01:21 -07:00
|
|
|
TEST_DECLARE (timer_ref)
|
|
|
|
TEST_DECLARE (timer_ref2)
|
2011-05-19 01:58:07 +02:00
|
|
|
TEST_DECLARE (timer_again)
|
2011-07-21 02:51:26 +02:00
|
|
|
TEST_DECLARE (idle_starvation)
|
2011-05-08 04:44:55 +02:00
|
|
|
TEST_DECLARE (loop_handles)
|
2011-05-20 08:22:19 -07:00
|
|
|
TEST_DECLARE (ref)
|
|
|
|
TEST_DECLARE (idle_ref)
|
2011-10-02 00:48:42 +07:00
|
|
|
TEST_DECLARE (get_loadavg)
|
2011-05-20 08:22:19 -07:00
|
|
|
TEST_DECLARE (async_ref)
|
|
|
|
TEST_DECLARE (prepare_ref)
|
|
|
|
TEST_DECLARE (check_ref)
|
2011-07-21 14:53:40 +02:00
|
|
|
TEST_DECLARE (unref_in_prepare_cb)
|
2011-05-09 04:29:22 +02:00
|
|
|
TEST_DECLARE (async)
|
2011-05-20 18:05:37 -07:00
|
|
|
TEST_DECLARE (get_currentexe)
|
2011-10-01 15:45:42 +07:00
|
|
|
TEST_DECLARE (get_memory)
|
2011-06-17 11:47:35 +02:00
|
|
|
TEST_DECLARE (hrtime)
|
2011-06-25 15:33:52 +02:00
|
|
|
TEST_DECLARE (getaddrinfo_basic)
|
|
|
|
TEST_DECLARE (getaddrinfo_concurrent)
|
2011-06-20 09:41:57 -07:00
|
|
|
TEST_DECLARE (gethostbyname)
|
2011-08-25 02:30:10 +02:00
|
|
|
TEST_DECLARE (getsockname_tcp)
|
|
|
|
TEST_DECLARE (getsockname_udp)
|
2011-04-19 14:51:10 +02:00
|
|
|
TEST_DECLARE (fail_always)
|
|
|
|
TEST_DECLARE (pass_always)
|
2011-07-20 17:55:26 -07:00
|
|
|
TEST_DECLARE (spawn_exit_code)
|
2011-07-25 17:11:23 -07:00
|
|
|
TEST_DECLARE (spawn_stdout)
|
2011-07-29 18:30:07 -07:00
|
|
|
TEST_DECLARE (spawn_stdin)
|
|
|
|
TEST_DECLARE (spawn_and_kill)
|
2011-10-11 21:00:56 +02:00
|
|
|
TEST_DECLARE (spawn_and_ping)
|
2011-09-06 00:16:41 +02:00
|
|
|
TEST_DECLARE (fs_file_noent)
|
2011-08-19 16:46:42 -07:00
|
|
|
TEST_DECLARE (fs_file_async)
|
|
|
|
TEST_DECLARE (fs_file_sync)
|
|
|
|
TEST_DECLARE (fs_async_dir)
|
|
|
|
TEST_DECLARE (fs_async_sendfile)
|
2011-09-01 14:15:01 -07:00
|
|
|
TEST_DECLARE (fs_fstat)
|
2011-09-01 15:36:01 -07:00
|
|
|
TEST_DECLARE (fs_chmod)
|
2011-09-03 11:06:08 -07:00
|
|
|
TEST_DECLARE (fs_chown)
|
2011-09-03 16:31:35 -07:00
|
|
|
TEST_DECLARE (fs_link)
|
|
|
|
TEST_DECLARE (fs_symlink)
|
2011-09-06 02:52:23 +02:00
|
|
|
TEST_DECLARE (fs_utime)
|
|
|
|
TEST_DECLARE (fs_futime)
|
2011-09-28 12:46:37 -07:00
|
|
|
TEST_DECLARE (fs_stat_missing_path)
|
2011-09-16 12:04:36 -07:00
|
|
|
TEST_DECLARE (fs_event_watch_dir)
|
|
|
|
TEST_DECLARE (fs_event_watch_file)
|
|
|
|
TEST_DECLARE (fs_event_watch_file_current_dir)
|
2011-10-10 16:27:55 +02:00
|
|
|
TEST_DECLARE (fs_readdir_empty_dir)
|
2011-10-12 16:42:55 +02:00
|
|
|
TEST_DECLARE (fs_readdir_file)
|
2011-10-12 10:36:14 -07:00
|
|
|
TEST_DECLARE (fs_open_dir)
|
2011-08-19 16:46:42 -07:00
|
|
|
TEST_DECLARE (threadpool_queue_work_simple)
|
2011-08-01 20:10:55 -07:00
|
|
|
#ifdef _WIN32
|
|
|
|
TEST_DECLARE (spawn_detect_pipe_name_collisions_on_windows)
|
2011-08-05 00:14:17 +01:00
|
|
|
TEST_DECLARE (argument_escaping)
|
2011-08-09 04:14:06 +01:00
|
|
|
TEST_DECLARE (environment_creation)
|
2011-08-01 20:10:55 -07:00
|
|
|
#endif
|
2011-07-01 17:54:17 -07:00
|
|
|
HELPER_DECLARE (tcp4_echo_server)
|
|
|
|
HELPER_DECLARE (tcp6_echo_server)
|
|
|
|
HELPER_DECLARE (pipe_echo_server)
|
2011-04-05 01:43:17 +02:00
|
|
|
|
2011-06-25 12:35:49 +02:00
|
|
|
|
2011-04-19 04:26:32 +02:00
|
|
|
TASK_LIST_START
|
2011-09-15 15:16:53 -07:00
|
|
|
TEST_ENTRY (tty)
|
2011-10-19 00:48:38 -07:00
|
|
|
TEST_ENTRY (stdio_over_pipes)
|
2011-10-25 13:07:29 -07:00
|
|
|
TEST_ENTRY (ipc_listen_before_write)
|
|
|
|
TEST_ENTRY (ipc_listen_after_write)
|
2011-09-26 22:51:08 -07:00
|
|
|
|
|
|
|
TEST_ENTRY (tcp_ref)
|
|
|
|
|
|
|
|
TEST_ENTRY (tcp_ref2)
|
|
|
|
TEST_HELPER (tcp_ref2, tcp4_echo_server)
|
|
|
|
|
2011-07-01 17:54:17 -07:00
|
|
|
TEST_ENTRY (tcp_ping_pong)
|
|
|
|
TEST_HELPER (tcp_ping_pong, tcp4_echo_server)
|
2011-04-05 01:43:17 +02:00
|
|
|
|
2011-07-01 17:54:17 -07: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-01 17:04:05 -07:00
|
|
|
|
2011-04-22 00:45:49 +02:00
|
|
|
TEST_ENTRY (delayed_accept)
|
2011-10-26 13:32:15 -07:00
|
|
|
TEST_ENTRY (multiple_listen)
|
2011-04-22 00:45:49 +02:00
|
|
|
|
2011-04-22 05:12:10 +02:00
|
|
|
TEST_ENTRY (tcp_writealot)
|
2011-07-01 17:54:17 -07:00
|
|
|
TEST_HELPER (tcp_writealot, tcp4_echo_server)
|
2011-04-22 05:12:10 +02:00
|
|
|
|
2011-07-21 02:00:12 +02: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)
|
2011-09-09 23:53:09 +02:00
|
|
|
TEST_ENTRY (tcp_close)
|
2011-10-21 15:37:47 -07:00
|
|
|
TEST_ENTRY (tcp_flags)
|
2011-09-16 04:36:32 +02:00
|
|
|
TEST_ENTRY (tcp_write_error)
|
2011-07-21 02:00:12 +02:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
2011-08-19 23:22:30 +02:00
|
|
|
TEST_ENTRY (udp_send_and_recv)
|
|
|
|
TEST_ENTRY (udp_dgram_too_big)
|
|
|
|
TEST_ENTRY (udp_dual_stack)
|
|
|
|
TEST_ENTRY (udp_ipv6_only)
|
2011-09-29 19:29:15 -04:00
|
|
|
TEST_ENTRY (udp_multicast_join)
|
2011-08-19 23:22:30 +02:00
|
|
|
|
2011-07-21 02:00:12 +02:00
|
|
|
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-26 22:34:04 -06:00
|
|
|
|
2011-04-22 00:45:49 +02:00
|
|
|
TEST_ENTRY (connection_fail)
|
2011-06-02 09:19:56 +02:00
|
|
|
TEST_ENTRY (connection_fail_doesnt_auto_close)
|
2011-04-22 00:45:49 +02:00
|
|
|
|
2011-06-02 11:31:42 +02:00
|
|
|
TEST_ENTRY (shutdown_eof)
|
2011-07-01 17:54:17 -07:00
|
|
|
TEST_HELPER (shutdown_eof, tcp4_echo_server)
|
2011-06-02 11:31:42 +02:00
|
|
|
|
2011-05-04 17:10:33 +02:00
|
|
|
TEST_ENTRY (callback_stack)
|
2011-07-01 17:54:17 -07:00
|
|
|
TEST_HELPER (callback_stack, tcp4_echo_server)
|
2011-04-05 04:24:03 +02:00
|
|
|
|
2011-10-06 01:00:56 +02:00
|
|
|
TEST_ENTRY (error_message)
|
|
|
|
|
2011-05-17 01:17:48 +02:00
|
|
|
TEST_ENTRY (timer)
|
2011-09-26 22:01:21 -07:00
|
|
|
TEST_ENTRY (timer_ref)
|
|
|
|
TEST_ENTRY (timer_ref2)
|
2011-04-15 19:32:28 +02:00
|
|
|
|
2011-05-19 01:58:07 +02:00
|
|
|
TEST_ENTRY (timer_again)
|
|
|
|
|
2011-07-21 02:51:26 +02:00
|
|
|
TEST_ENTRY (idle_starvation)
|
|
|
|
|
2011-05-20 08:22:19 -07:00
|
|
|
TEST_ENTRY (ref)
|
|
|
|
TEST_ENTRY (idle_ref)
|
|
|
|
TEST_ENTRY (async_ref)
|
|
|
|
TEST_ENTRY (prepare_ref)
|
|
|
|
TEST_ENTRY (check_ref)
|
2011-07-21 14:53:40 +02:00
|
|
|
TEST_ENTRY (unref_in_prepare_cb)
|
2011-05-20 08:22:19 -07:00
|
|
|
|
2011-05-08 04:44:55 +02:00
|
|
|
TEST_ENTRY (loop_handles)
|
|
|
|
|
2011-05-09 04:29:22 +02:00
|
|
|
TEST_ENTRY (async)
|
|
|
|
|
2011-05-20 18:05:37 -07:00
|
|
|
TEST_ENTRY (get_currentexe)
|
|
|
|
|
2011-10-01 15:45:42 +07:00
|
|
|
TEST_ENTRY (get_memory)
|
|
|
|
|
2011-10-02 00:48:42 +07:00
|
|
|
TEST_ENTRY (get_loadavg)
|
|
|
|
|
2011-06-17 11:47:35 +02:00
|
|
|
TEST_ENTRY (hrtime)
|
2011-06-25 15:33:52 +02:00
|
|
|
|
|
|
|
TEST_ENTRY (getaddrinfo_basic)
|
|
|
|
TEST_ENTRY (getaddrinfo_concurrent)
|
2011-06-17 11:47:35 +02:00
|
|
|
|
2011-06-20 09:41:57 -07:00
|
|
|
TEST_ENTRY (gethostbyname)
|
2011-07-01 17:54:17 -07:00
|
|
|
TEST_HELPER (gethostbyname, tcp4_echo_server)
|
2011-06-20 09:41:57 -07:00
|
|
|
|
2011-08-25 02:30:10 +02:00
|
|
|
TEST_ENTRY (getsockname_tcp)
|
|
|
|
TEST_ENTRY (getsockname_udp)
|
2011-07-11 13:45:16 -07:00
|
|
|
|
2011-07-20 17:55:26 -07:00
|
|
|
TEST_ENTRY (spawn_exit_code)
|
2011-07-25 17:11:23 -07:00
|
|
|
TEST_ENTRY (spawn_stdout)
|
2011-07-29 18:30:07 -07:00
|
|
|
TEST_ENTRY (spawn_stdin)
|
|
|
|
TEST_ENTRY (spawn_and_kill)
|
2011-10-11 21:00:56 +02:00
|
|
|
TEST_ENTRY (spawn_and_ping)
|
2011-08-01 20:10:55 -07:00
|
|
|
#ifdef _WIN32
|
|
|
|
TEST_ENTRY (spawn_detect_pipe_name_collisions_on_windows)
|
2011-08-05 00:14:17 +01:00
|
|
|
TEST_ENTRY (argument_escaping)
|
2011-08-09 04:14:06 +01:00
|
|
|
TEST_ENTRY (environment_creation)
|
2011-08-01 20:10:55 -07:00
|
|
|
#endif
|
2011-07-20 17:55:26 -07:00
|
|
|
|
2011-09-06 00:16:41 +02:00
|
|
|
TEST_ENTRY (fs_file_noent)
|
2011-08-19 16:46:42 -07:00
|
|
|
TEST_ENTRY (fs_file_async)
|
|
|
|
TEST_ENTRY (fs_file_sync)
|
|
|
|
TEST_ENTRY (fs_async_dir)
|
|
|
|
TEST_ENTRY (fs_async_sendfile)
|
2011-09-01 14:15:01 -07:00
|
|
|
TEST_ENTRY (fs_fstat)
|
2011-09-01 15:36:01 -07:00
|
|
|
TEST_ENTRY (fs_chmod)
|
2011-09-03 11:06:08 -07:00
|
|
|
TEST_ENTRY (fs_chown)
|
2011-09-06 02:52:23 +02:00
|
|
|
TEST_ENTRY (fs_utime)
|
|
|
|
TEST_ENTRY (fs_futime)
|
|
|
|
TEST_ENTRY (fs_symlink)
|
2011-09-28 12:46:37 -07:00
|
|
|
TEST_ENTRY (fs_stat_missing_path)
|
2011-09-16 12:04:36 -07:00
|
|
|
TEST_ENTRY (fs_event_watch_dir)
|
|
|
|
TEST_ENTRY (fs_event_watch_file)
|
|
|
|
TEST_ENTRY (fs_event_watch_file_current_dir)
|
2011-10-10 16:27:55 +02:00
|
|
|
TEST_ENTRY (fs_readdir_empty_dir)
|
2011-10-12 16:42:55 +02:00
|
|
|
TEST_ENTRY (fs_readdir_file)
|
2011-10-12 10:36:14 -07:00
|
|
|
TEST_ENTRY (fs_open_dir)
|
2011-08-19 16:46:42 -07:00
|
|
|
TEST_ENTRY (threadpool_queue_work_simple)
|
|
|
|
|
2011-05-03 16:56:26 -07:00
|
|
|
#if 0
|
|
|
|
/* These are for testing the test runner. */
|
2011-04-05 01:43:17 +02:00
|
|
|
TEST_ENTRY (fail_always)
|
|
|
|
TEST_ENTRY (pass_always)
|
2011-05-03 16:56:26 -07:00
|
|
|
#endif
|
2011-04-19 04:26:32 +02:00
|
|
|
TASK_LIST_END
|