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