23b2f12740676a10347a201981e83370583ef942
[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 test_mutex \
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_rpn2solr test_json test_xml_include test_file_glob \
10  test_shared_ptr
11
12 check_SCRIPTS = tstmarc.sh tstmarccol.sh tstcql2xcql.sh tstcql2pqf.sh tsticu.sh
13
14 TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
15
16 EXTRA_DIST = tstodr.asn test_odrcodec.c test_odrcodec.h cql2xcqlsample \
17  cql2pqf-order.txt cql2pqfsample \
18  $(check_SCRIPTS) \
19  marccol1.u8.marc marccol1.u8.1.lst marccol1.u8.2.lst \
20  marccol2.u8.marc marccol2.u8.1.lst marccol2.u8.2.lst \
21  marccol3.u8.marc marccol3.u8.1.lst marccol3.u8.2.lst \
22  marccol4.u8.marc marccol4.u8.1.lst marccol4.u8.2.lst \
23  marccol5.u8.marc marccol5.u8.1.lst marccol5.u8.2.lst \
24  tsticu-0.xml tsticu-0.input tsticu-0.output \
25  tsticu-1.xml tsticu-1.input tsticu-1.output \
26  test_record_conv.xsl test_xml_include.xml
27
28 YAZCOMP = ../util/yaz-asncomp
29 YAZCOMPLINE = $(YAZCOMP) -d z.tcl -i yaz -I../include $(YCFLAGS)
30
31 AM_CPPFLAGS=-I$(top_srcdir)/include $(XML2_CFLAGS) $(ICU_CPPFLAGS)
32
33 dist-hook:
34         mkdir -p $(distdir)/cql
35         cp $(srcdir)/cql/*.err $(srcdir)/cql/*.out $(distdir)/cql
36         mkdir -p $(distdir)/cql2pqf
37         cp $(srcdir)/cql2pqf/*.err $(srcdir)/cql2pqf/*.out $(distdir)/cql2pqf
38         cp $(srcdir)/marc?.chr $(distdir)
39         cp $(srcdir)/marc?.marc $(distdir)
40         cp $(srcdir)/marc?.xml $(distdir)
41         cp $(srcdir)/*.xml.marc $(distdir)
42         cp $(srcdir)/xml2marc?.xml $(distdir)
43         cp $(srcdir)/tmarc?.xml $(distdir)
44         cp $(srcdir)/xml2tmarc?.xml $(distdir)
45
46 # Rule for generating codecs for our small ASN.1 spec
47 test_odrcodec.c test_odrcodec.h: tstodr.asn $(YAZCOMP)
48         cd $(srcdir); $(YAZCOMP) tstodr.asn
49
50 LDADD = ../src/libyaz.la
51 test_icu_LDADD = ../src/libyaz_icu.la ../src/libyaz.la $(ICU_LIBS)
52
53 CONFIG_CLEAN_FILES=*.log
54
55 test_xmalloc_SOURCES = test_xmalloc.c
56 test_iconv_SOURCES = test_iconv.c
57 test_nmem_SOURCES = test_nmem.c
58 test_matchstr_SOURCES = test_matchstr.c
59 test_wrbuf_SOURCES = test_wrbuf.c
60 test_odr_SOURCES = test_odrcodec.c test_odrcodec.h test_odr.c
61 test_odrstack_SOURCES = test_odrstack.c
62 test_ccl_SOURCES = test_ccl.c
63 test_log_SOURCES = test_log.c
64 test_mutex_SOURCES = test_mutex.c
65 test_soap1_SOURCES = test_soap1.c
66 test_soap2_SOURCES = test_soap2.c
67 test_log_thread_SOURCES = test_log_thread.c
68 test_xmlquery_SOURCES = test_xmlquery.c
69 test_pquery_SOURCES = test_pquery.c
70 test_comstack_SOURCES = test_comstack.c
71 test_filepath_SOURCES = test_filepath.c
72 test_oid_SOURCES = test_oid.c
73 test_record_conv_SOURCES = test_record_conv.c
74 test_retrieval_SOURCES = test_retrieval.c
75 test_tpath_SOURCES = test_tpath.c
76 test_timing_SOURCES = test_timing.c
77 test_query_charset_SOURCES = test_query_charset.c
78 test_icu_SOURCES = test_icu.c
79 test_match_glob_SOURCES = test_match_glob.c
80 test_rpn2cql_SOURCES = test_rpn2cql.c
81 test_rpn2solr_SOURCES = test_rpn2solr.c
82 test_json_SOURCES = test_json.c
83 test_xml_include_SOURCES = test_xml_include.c
84 test_file_glob_SOURCES = test_file_glob.c
85 test_shared_ptr_SOURCES = test_shared_ptr.c