2e5977dfb85e3be4398db8a21886294aa913c318
[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 = test_xmalloc test_iconv test_nmem test_matchstr test_wrbuf \
5  test_odr test_ccl test_log \
6  test_soap1 test_soap2 test_odrstack test_log_thread test_xmlquery test_pquery \
7  test_comstack test_filepath test_record_conv test_retrieval test_tpath \
8  test_timing test_query_charset test_oid test_icu test_match_glob \
9  test_rpn2cql test_json test_xml_include test_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 test_odrcodec.c test_odrcodec.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  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
47 # Rule for generating codecs for our small ASN.1 spec
48 test_odrcodec.c test_odrcodec.h: tstodr.asn $(YAZCOMP)
49         cd $(srcdir); $(YAZCOMP) tstodr.asn
50
51 LDADD = ../src/libyaz.la
52 test_icu_LDADD = ../src/libyaz_icu.la $(ICU_LIBS)
53 AM_CFLAGS = $(PTHREAD_CFLAGS)
54
55
56 CONFIG_CLEAN_FILES=*.log
57
58 test_xmalloc_SOURCES = test_xmalloc.c
59 test_iconv_SOURCES = test_iconv.c
60 test_nmem_SOURCES = test_nmem.c
61 test_matchstr_SOURCES = test_matchstr.c
62 test_wrbuf_SOURCES = test_wrbuf.c
63 test_odr_SOURCES = test_odrcodec.c test_odrcodec.h test_odr.c
64 test_odrstack_SOURCES = test_odrstack.c
65 test_ccl_SOURCES = test_ccl.c
66 test_log_SOURCES = test_log.c
67 test_soap1_SOURCES = test_soap1.c
68 test_soap2_SOURCES = test_soap2.c
69 test_log_thread_SOURCES = test_log_thread.c
70 test_xmlquery_SOURCES = test_xmlquery.c
71 test_pquery_SOURCES = test_pquery.c
72 test_comstack_SOURCES = test_comstack.c
73 test_filepath_SOURCES = test_filepath.c
74 test_oid_SOURCES = test_oid.c
75 test_record_conv_SOURCES = test_record_conv.c
76 test_retrieval_SOURCES = test_retrieval.c
77 test_tpath_SOURCES = test_tpath.c
78 test_timing_SOURCES = test_timing.c
79 test_query_charset_SOURCES = test_query_charset.c
80 test_icu_SOURCES = test_icu.c
81 test_match_glob_SOURCES = test_match_glob.c
82 test_rpn2cql_SOURCES = test_rpn2cql.c
83 test_json_SOURCES = test_json.c
84 test_xml_include_SOURCES = test_xml_include.c
85 test_file_glob_SOURCES = test_file_glob.c