Release 1.6.4
[yazpp-moved-to-github.git] / zlint / main.cpp
1 #if HAVE_CONFIG_H
2 #include <config.h>
3 #endif
4 #include <stdlib.h>
5
6 #include <yazpp/pdu-assoc.h>
7 #include <yazpp/socket-manager.h>
8
9 #include <zlint.h>
10
11 int main(int argc, char **argv)
12 {
13     SocketManager mySocketManager;
14     Zlint z(new PDU_Assoc(&mySocketManager));
15
16     if (argc > 1)
17         z.set_host(argv[1]);
18     else
19         z.set_host("localhost:9999");
20
21     Zlint_test_init_01 t01;
22     z.add_test(&t01);
23
24     Zlint_test_init_02 t02;
25     z.add_test(&t02);
26
27     Zlint_test_init_03 t03;
28     z.add_test(&t03);
29
30     Zlint_test_init_04 t04;
31     z.add_test(&t04);
32
33     Zlint_test_init_05 t05;
34     z.add_test(&t05);
35
36     Zlint_test_init_06 t06;
37     z.add_test(&t06);
38
39     Zlint_test_init_07 t07;
40     z.add_test(&t07);
41
42     Zlint_test_init_08 t08;
43     z.add_test(&t08);
44
45     Zlint_test_search_01 s01;
46     z.add_test(&s01);
47
48     Zlint_test_scan_01 scan01;
49     z.add_test(&scan01);
50
51     while (mySocketManager.processEvent() > 0)
52         ;
53     exit (0);
54 }
55
56 /*
57  * Local variables:
58  * c-basic-offset: 4
59  * c-file-style: "Stroustrup"
60  * indent-tabs-mode: nil
61  * End:
62  * vim: shiftwidth=4 tabstop=8 expandtab
63  */
64