Version 5.14.3
[yaz-moved-to-github.git] / test / Makefile.am
1 ## This file is part of the YAZ toolkit.
2 ## Copyright (C) Index Data
3
4 check_PROGRAMS = test_ccl test_comstack test_cql2ccl \
5  test_embed_record test_filepath test_file_glob \
6  test_iconv test_icu test_json \
7  test_libstemmer test_log test_log_thread \
8  test_match_glob test_matchstr test_mutex \
9  test_nmem test_odr test_odrstack test_oid test_options \
10  test_pquery test_query_charset \
11  test_record_conv test_rpn2cql test_rpn2solr test_retrieval \
12  test_shared_ptr test_soap1 test_soap2 test_solr test_sortspec \
13  test_timing test_tpath test_wrbuf \
14  test_xmalloc test_xml_include test_xmlquery test_zgdu
15
16 check_SCRIPTS = test_marc.sh test_marccol.sh test_cql2xcql.sh \
17         test_cql2pqf.sh test_icu.sh
18
19 TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
20
21 EXTRA_DIST = tstodr.asn test_odrcodec.c test_odrcodec.h cql2xcqlsample \
22  cql2pqf-order.txt cql2pqfsample \
23  $(check_SCRIPTS) \
24  marccol1.u8.marc marccol1.u8.1.lst marccol1.u8.2.lst \
25  marccol2.u8.marc marccol2.u8.1.lst marccol2.u8.2.lst \
26  marccol3.u8.marc marccol3.u8.1.lst marccol3.u8.2.lst \
27  marccol4.u8.marc marccol4.u8.1.lst marccol4.u8.2.lst \
28  marccol5.u8.marc marccol5.u8.1.lst marccol5.u8.2.lst \
29  test_icu.0.xml test_icu.0.input test_icu.0.output \
30  test_icu.1.xml test_icu.1.input test_icu.1.output \
31  test_icu.2.xml test_icu.2.input test_icu.2.output \
32  test_icu.3.xml test_icu.3.input test_icu.3.output \
33  test_icu.4.xml test_icu.4.input test_icu.4.output \
34  test_record_conv.xsl test_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         cp $(srcdir)/marc?.chr $(distdir)
47         cp $(srcdir)/marc?.marc $(distdir)
48         cp $(srcdir)/marc?.xml $(distdir)
49         cp $(srcdir)/marc?.json $(distdir)
50         cp $(srcdir)/marc?.json.marc $(distdir)
51         cp $(srcdir)/*.xml.marc $(distdir)
52         cp $(srcdir)/xml2marc?.xml $(distdir)
53         cp $(srcdir)/tmarc?.xml $(distdir)
54         cp $(srcdir)/xml2tmarc?.xml $(distdir)
55
56 # Rule for generating codecs for our small ASN.1 spec
57 test_odrcodec.c test_odrcodec.h: tstodr.asn $(YAZCOMP)
58         cd $(srcdir); $(YAZCOMP) tstodr.asn
59
60 LDADD = ../src/libyaz.la 
61 test_icu_LDADD = ../src/libyaz_icu.la ../src/libyaz.la $(ICU_LIBS)
62 test_libstemmer_LDADD = ../src/libyaz_icu.la ../src/libyaz.la $(ICU_LIBS)
63
64 CONFIG_CLEAN_FILES=*.log
65
66 test_cql2ccl_SOURCES = test_cql2ccl.c
67 test_xmalloc_SOURCES = test_xmalloc.c
68 test_iconv_SOURCES = test_iconv.c
69 test_nmem_SOURCES = test_nmem.c
70 test_matchstr_SOURCES = test_matchstr.c
71 test_wrbuf_SOURCES = test_wrbuf.c
72 test_odr_SOURCES = test_odrcodec.c test_odrcodec.h test_odr.c
73 test_odrstack_SOURCES = test_odrstack.c
74 test_ccl_SOURCES = test_ccl.c
75 test_log_SOURCES = test_log.c
76 test_mutex_SOURCES = test_mutex.c
77 test_soap1_SOURCES = test_soap1.c
78 test_soap2_SOURCES = test_soap2.c
79 test_solr_SOURCES = test_solr.c
80 test_sortspec_SOURCES = test_sortspec.c
81 test_log_thread_SOURCES = test_log_thread.c
82 test_xmlquery_SOURCES = test_xmlquery.c
83 test_options_SOURCES = test_options.c
84 test_pquery_SOURCES = test_pquery.c
85 test_comstack_SOURCES = test_comstack.c
86 test_filepath_SOURCES = test_filepath.c
87 test_oid_SOURCES = test_oid.c
88 test_record_conv_SOURCES = test_record_conv.c
89 test_retrieval_SOURCES = test_retrieval.c
90 test_tpath_SOURCES = test_tpath.c
91 test_timing_SOURCES = test_timing.c
92 test_query_charset_SOURCES = test_query_charset.c
93 test_icu_SOURCES = test_icu.c
94 test_match_glob_SOURCES = test_match_glob.c
95 test_rpn2cql_SOURCES = test_rpn2cql.c
96 test_rpn2solr_SOURCES = test_rpn2solr.c
97 test_json_SOURCES = test_json.c
98 test_xml_include_SOURCES = test_xml_include.c
99 test_file_glob_SOURCES = test_file_glob.c
100 test_shared_ptr_SOURCES = test_shared_ptr.c
101 test_libstemmer_SOURCES = test_libstemmer.c
102 test_embed_record_SOURCES = test_embed_record.c
103 test_zgdu_SOURCES = test_zgdu.c