OSDN Git Service

unite htmlform_urlencode
[bbk/bchanf.git] / src / test_main.c
1 /*
2  * test_main.c
3  *
4  * Copyright (c) 2012-2015 project bchan
5  *
6  * This software is provided 'as-is', without any express or implied
7  * warranty. In no event will the authors be held liable for any damages
8  * arising from the use of this software.
9  *
10  * Permission is granted to anyone to use this software for any purpose,
11  * including commercial applications, and to alter it and redistribute it
12  * freely, subject to the following restrictions:
13  *
14  * 1. The origin of this software must not be misrepresented; you must not
15  *    claim that you wrote the original software. If you use this software
16  *    in a product, an acknowledgment in the product documentation would be
17  *    appreciated but is not required.
18  *
19  * 2. Altered source versions must be plainly marked as such, and must not be
20  *    misrepresented as being the original software.
21  *
22  * 3. This notice may not be removed or altered from any source
23  *    distribution.
24  *
25  */
26
27 #include        <basic.h>
28 #include        <bstdlib.h>
29 #include        <bstdio.h>
30 #include        <errcode.h>
31 #include        <btron/btron.h>
32
33 #include    <unittest_driver.h>
34
35 #include    <test_http.h>
36 #include    <test_parse.h>
37 #include    <test_coll.h>
38 #include    <test_coding.h>
39 #include    <test_tad.h>
40 #include    <test_css.h>
41 #include    <test_hmi.h>
42
43 EXPORT  W       MAIN(MESSAGE *msg)
44 {
45         unittest_driver_t *driver;
46
47         driver = unittest_driver_new();
48         if (driver == NULL) {
49                 return 0;
50         }
51
52         test_http_transferdecoder_main(driver);
53         test_http_contentdecoder_main(driver);
54         test_http_headerlexer_main(driver);
55         test_http_statuslineparser_main(driver);
56         test_http_requestlinestream_main(driver);
57         test_http_defaultheaderstream_main(driver);
58         test_http_defaultheaderparser_main(driver);
59
60         test_tokenchecker_main(driver);
61         test_charreferparser_main(driver);
62
63         test_idtocb_main(driver);
64         test_arraybase_main(driver);
65         test_treebase_main(driver);
66         test_bytearray_main(driver);
67         test_wordarray_main(driver);
68
69         test_base64encoder_main(driver);
70         test_base64decoder_main(driver);
71         test_htmlform_urlencoder_main(driver);
72
73         test_taditerator_main(driver);
74         test_tadstack_main(driver);
75         test_tadtsvparser_main(driver);
76         test_tadlexer_le_main(driver);
77         test_traydata_iterator_main(driver);
78         test_tadfragment_main(driver);
79         test_tadlangcode_main(driver);
80         test_taddecoder_main(driver);
81         test_tadsegment_main(driver);
82
83         test_cssrendering_box_main(driver);
84         test_cssrendering_coordinate_main(driver);
85
86         test_texteditor_characterstate_main(driver);
87         test_texteditor_stackfilter_main(driver);
88         test_texteditor_insertfilter_main(driver);
89         test_texteditor_textfragment_main(driver);
90
91         unittest_driver_runnning(driver);
92         unittest_driver_delete(driver);
93
94         return 0;
95 }