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