OSDN Git Service

change version number
[bbk/bchanl.git] / src / test_main.c
1 /*
2  * test_main.c
3  *
4  * Copyright (c) 2009-2012 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        <btron/btron.h>
29
30 #include    <unittest_driver.h>
31
32 #include    "test.h"
33
34 EXPORT  W       MAIN(MESSAGE *msg)
35 {
36         unittest_driver_t *driver;
37
38         driver = unittest_driver_new();
39         if (driver == NULL) {
40                 return 0;
41         }
42
43         test_sbjtcache_main(driver);
44         test_sbjtparser_main(driver);
45         test_sbjtlist_main(driver);
46         test_sbjtlayout_main(driver);
47         test_bbsmncache_main(driver);
48         test_bbsmnparser_main(driver);
49         test_bbsmnlayout_main(driver);
50         test_bbsmnfilter_main(driver);
51         test_extbbslist_main(driver);
52         test_util_main(driver);
53
54         unittest_driver_runnning(driver);
55         unittest_driver_delete(driver);
56
57         return 0;
58 }