X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zlint%2Fmain.cpp;fp=zlint%2Fmain.cpp;h=038e6f78a0cfce1bf47f3900cef8e4743c55e912;hb=40213edfa0408f88b008c3d1ee4a4f90dcdf2fb9;hp=0000000000000000000000000000000000000000;hpb=b1f8a12e7743258d4f9654157d212ffcd83ae241;p=yazpp-moved-to-github.git diff --git a/zlint/main.cpp b/zlint/main.cpp new file mode 100644 index 0000000..038e6f7 --- /dev/null +++ b/zlint/main.cpp @@ -0,0 +1,50 @@ +#include +#include + +#include + +int main(int argc, char **argv) +{ + Yaz_SocketManager mySocketManager; + Zlint z(new Yaz_PDU_Assoc(&mySocketManager)); + + if (argc > 1) + z.set_host(argv[1]); + else + z.set_host("localhost:9999"); + + Zlint_test_init_01 t01; + z.add_test(&t01); + + Zlint_test_init_02 t02; + z.add_test(&t02); + + Zlint_test_init_03 t03; + z.add_test(&t03); + + Zlint_test_init_04 t04; + z.add_test(&t04); + + Zlint_test_init_05 t05; + z.add_test(&t05); + + Zlint_test_init_06 t06; + z.add_test(&t06); + + Zlint_test_init_07 t07; + z.add_test(&t07); + + Zlint_test_init_08 t08; + z.add_test(&t08); + + Zlint_test_search_01 s01; + z.add_test(&s01); + + Zlint_test_scan_01 scan01; + z.add_test(&scan01); + + while (mySocketManager.processEvent() > 0) + ; + exit (0); +} +