Thread pool for server
[yaz-moved-to-github.git] / test / Makefile.am
1 ## This file is part of the YAZ toolkit.
2 ## Copyright (C) 1995-2009 Index Data
3
4 check_PROGRAMS = tstxmalloc tsticonv tstnmem tstmatchstr tstwrbuf tstodr \
5  tstccl tstlog tstcomstack \
6  tstsoap1 tstsoap2 tstodrstack tstlogthread tstxmlquery tstpquery \
7  tst_comstack tst_filepath tst_record_conv tst_retrieval tst_tpath \
8  tst_timing tst_query_charset tst_oid tst_icu_I18N tst_match_glob \
9  tst_rpn2cql tst_srv
10 check_SCRIPTS = tstmarc.sh tstmarccol.sh tstcql2xcql.sh tstcql2pqf.sh tsticu.sh
11
12 TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
13
14 EXTRA_DIST = tstodr.asn tstodrcodec.c tstodrcodec.h cql2xcqlsample \
15  cql2pqf-order.txt cql2pqfsample \
16  $(check_SCRIPTS) \
17  marc1.marc marc1.xml marc1.chr marc1.xml.marc \
18  marc2.marc marc2.xml marc2.chr marc2.xml.marc \
19  marc3.marc marc3.xml marc3.chr marc3.xml.marc \
20  marc4.marc marc4.xml marc4.chr marc4.xml.marc \
21  marc5.marc marc5.xml marc5.chr marc5.xml.marc \
22  marc6.marc marc6.xml marc6.chr marc6.xml.marc \
23  marc7.marc marc7.xml marc7.chr marc7.xml.marc \
24  marc8.marc marc8.xml marc8.chr marc8.xml.marc \
25  marc9.marc marc9.xml marc9.chr marc9.xml.marc \
26  marccol1.u8.marc marccol1.u8.1.lst marccol1.u8.2.lst \
27  marccol2.u8.marc marccol2.u8.1.lst marccol2.u8.2.lst \
28  marccol3.u8.marc marccol3.u8.1.lst marccol3.u8.2.lst \
29  marccol4.u8.marc marccol4.u8.1.lst marccol4.u8.2.lst \
30  marccol5.u8.marc marccol5.u8.1.lst marccol5.u8.2.lst \
31  tsticu-0.xml tsticu-0.input tsticu-0.output \
32  tsticu-1.xml tsticu-1.input tsticu-1.output \
33  tst_record_conv.xsl 
34
35 YAZCOMP = ../util/yaz-asncomp
36 YAZCOMPLINE = $(YAZCOMP) -d z.tcl -i yaz -I../include $(YCFLAGS)
37
38 AM_CPPFLAGS=-I$(top_srcdir)/include $(XML2_CFLAGS) $(ICU_CPPFLAGS)
39
40 dist-hook:
41         mkdir -p $(distdir)/cql
42         cp $(srcdir)/cql/*.err $(srcdir)/cql/*.out $(distdir)/cql
43         mkdir -p $(distdir)/cql2pqf
44         cp $(srcdir)/cql2pqf/*.err $(srcdir)/cql2pqf/*.out $(distdir)/cql2pqf
45
46 # Rule for generating codecs for our small ASN.1 spec
47 tstodrcodec.c tstodrcodec.h: tstodr.asn $(YAZCOMP)
48         cd $(srcdir); $(YAZCOMP) tstodr.asn
49
50 LDADD = ../src/libyaz.la
51 tst_icu_I18N_LDADD = ../src/libyaz.la ../src/libyaz_icu.la $(ICU_LIBS)
52
53 CONFIG_CLEAN_FILES=*.log
54
55 tstxmalloc_SOURCES = tstxmalloc.c
56 tsticonv_SOURCES = tsticonv.c
57 tstnmem_SOURCES = tstnmem.c
58 tstmatchstr_SOURCES = tstmatchstr.c
59 tstwrbuf_SOURCES = tstwrbuf.c
60 tstodr_SOURCES = tstodrcodec.c tstodrcodec.h tstodr.c
61 tstodrstack_SOURCES = tstodrstack.c
62 tstccl_SOURCES = tstccl.c
63 tstlog_SOURCES = tstlog.c
64 tstcomstack_SOURCES = tstcomstack.c
65 tstsoap1_SOURCES = tstsoap1.c
66 tstsoap2_SOURCES = tstsoap2.c
67 tstlogthread_SOURCES = tstlogthread.c
68 tstxmlquery_SOURCES = tstxmlquery.c
69 tstpquery_SOURCES = tstpquery.c
70 tst_comstack_SOURCES = tst_comstack.c
71 tst_filepath_SOURCES = tst_filepath.c
72 tst_oid_SOURCES = tst_oid.c
73 tst_record_conv_SOURCES = tst_record_conv.c
74 tst_retrieval_SOURCES = tst_retrieval.c
75 tst_tpath_SOURCES = tst_tpath.c
76 tst_timing_SOURCES = tst_timing.c
77 tst_query_charset_SOURCES = tst_query_charset.c
78 tst_icu_I18N_SOURCES = tst_icu_I18N.c
79 tst_match_glob_SOURCES = tst_match_glob.c
80 tst_rpn2cql_SOURCES = tst_rpn2cql.c
81 tst_srv_SOURCES = tst_srv.c
82 tst_srv_LDADD =  ../src/libyaz.la $(PTHREAD_LIBS)