Tests as separate object implementations
[yazpp-moved-to-github.git] / zlint / main.cpp
1 #include <yaz++/pdu-assoc.h>
2 #include <yaz++/socket-manager.h>
3
4 #include <zlint.h>
5
6 int main(int argc, char **argv)
7 {
8     Yaz_SocketManager mySocketManager;
9     Zlint z(new Yaz_PDU_Assoc(&mySocketManager));
10  
11     if (argc > 1)
12         z.set_host(argv[1]);
13     else
14         z.set_host("localhost:9999");
15
16     Zlint_test_init_01 t01;
17     z.add_test(&t01);
18
19     Zlint_test_init_02 t02;
20     z.add_test(&t02);
21
22     Zlint_test_init_03 t03;
23     z.add_test(&t03);
24
25     Zlint_test_init_04 t04;
26     z.add_test(&t04);
27
28     Zlint_test_init_05 t05;
29     z.add_test(&t05);
30
31     Zlint_test_init_06 t06;
32     z.add_test(&t06);
33
34     Zlint_test_init_07 t07;
35     z.add_test(&t07);
36
37     Zlint_test_init_08 t08;
38     z.add_test(&t08);
39
40     Zlint_test_search_01 s01;
41     z.add_test(&s01);
42
43     Zlint_test_scan_01 scan01;
44     z.add_test(&scan01);
45
46     while (mySocketManager.processEvent() > 0)
47         ;
48     exit (0);
49 }
50