src/server/test/main.c

changeset 498
0d80f8a2b29f
parent 452
ce359a2b51fe
--- a/src/server/test/main.c	Wed May 31 19:39:10 2023 +0200
+++ b/src/server/test/main.c	Sun Jun 04 20:09:18 2023 +0200
@@ -48,6 +48,7 @@
 #include "webdav.h"
 #include "uri.h"
 #include "object.h"
+#include "io.h"
 
 void register_pg_tests(int argc, char **argv, UcxTestSuite *suite);
 
@@ -99,6 +100,27 @@
     ucx_test_register(suite, test_expr_parse_expr_func_expr1);
     ucx_test_register(suite, test_expr_parse_expr_func_expr2);
     
+    // io tests
+    ucx_test_register(suite, test_io_http_stream_parse_chunk_header_hdronly_first);
+    ucx_test_register(suite, test_io_http_stream_parse_chunk_header_hdronly);
+    ucx_test_register(suite, test_io_http_stream_parse_chunk_header_hdronly_seq_fail);
+    ucx_test_register(suite, test_io_http_stream_parse_chunk_header_hdr_data);
+    ucx_test_register(suite, test_io_http_stream_parse_chunk_header_empty);
+    ucx_test_register(suite, test_io_http_stream_parse_chunk_header_partial_first);
+    ucx_test_register(suite, test_io_http_stream_parse_chunk_header_partial);
+    ucx_test_register(suite, test_io_http_stream_parse_chunk_header_invalid);
+    ucx_test_register(suite, test_io_http_stream_parse_chunk_header_zero);
+    ucx_test_register(suite, test_io_httpstream_write);
+    ucx_test_register(suite, test_io_httpstream_chunked_write);
+    ucx_test_register(suite, test_io_httpstream_chunked_write_end);
+    ucx_test_register(suite, test_io_httpstream_chunked_write_xx);
+    ucx_test_register(suite, test_io_httpstream_chunked_write_partial_header);
+    ucx_test_register(suite, test_io_httpstream_chunked_write_partial_data);
+    ucx_test_register(suite, test_io_httpstream_chunked_write_partial_trailer);
+    ucx_test_register(suite, test_io_httpstream_chunked_write_partial_trailer_partial_header);
+    ucx_test_register(suite, test_io_httpstream_chunked_write_data_2x);
+    ucx_test_register(suite, test_io_httpstream_chunked_write_xx_limit);
+    
     // vfs tests
     ucx_test_register(suite, test_vfs_open);
     ucx_test_register(suite, test_vfs_mkdir);

mercurial