e7f4e8a5edff34e8078c920f5ff301b9a98a2e49
[platform/upstream/libxslt.git] / tests / general / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 $(top_builddir)/xsltproc/xsltproc:
4         @(cd ../../xsltproc ; $(MAKE) xsltproc)
5
6 EXTRA_DIST = \
7     bug-1-.out bug-1-.xsl \
8     bug-2-.out bug-2-.xsl \
9     bug-3-.out bug-3-.xsl \
10     bug-4-.out bug-4-.xsl \
11     bug-5-.out bug-5-.xsl \
12     bug-6-.out bug-6-.xsl \
13     bug-7-.out bug-7-.xsl \
14     bug-8-.out bug-8-.xsl \
15     bug-9-.out bug-9-.xsl \
16     bug-10-.out bug-10-.xsl \
17     bug-11-.out bug-11-.xsl \
18     bug-12-.out bug-12-.xsl \
19     bug-13-.out bug-13-.xsl \
20     bug-14-.out bug-14-.xsl \
21     bug-15-.out bug-15-.xsl \
22     bug-16-.out bug-16-.xsl \
23     bug-17-.out bug-17-.xsl \
24     bug-18-.out bug-18-.xsl \
25     bug-19-.out bug-19-.xsl \
26     bug-20-.out bug-20-.xsl \
27     bug-21-.out bug-21-.xsl \
28     bug-22-.out bug-22-.xsl \
29     bug-23-.out bug-23-.xsl \
30     bug-24-.out bug-24-.xsl \
31     bug-25-.out bug-25-.xsl \
32     bug-26-.out bug-26-.xsl \
33     bug-27-.out bug-27-.xsl \
34     bug-28-.out bug-28-.xsl \
35     bug-29-.out bug-29-.xsl \
36     bug-30-.out bug-30-.xsl \
37     bug-31-.out bug-31-.xsl \
38     bug-32-.out bug-32-.xsl \
39     bug-33-.out bug-33-.xsl \
40     bug-35-.out bug-35-.xsl \
41     bug-36-.out bug-36-.xsl \
42     bug-36-inc.out bug-36-inc.xsl \
43     bug-37-.out bug-37-.xsl \
44     bug-37-inc.out bug-37-inc.xsl \
45     array.out array.xsl \
46     bug-38-.out bug-38-.xsl \
47     bug-39-.out bug-39-.xsl \
48     bug-40-.out bug-40-.xsl \
49     bug-41-.out bug-41-.xsl \
50     bug-42-.out bug-42-.xsl \
51     bug-43-.out bug-43-.xsl \
52     bug-44-.out bug-44-.xsl \
53     bug-45-.out bug-45-.xsl \
54     bug-46-.out bug-46-.xsl \
55     bug-47-.out bug-47-.xsl \
56     bug-48-.out bug-48-.xsl \
57     bug-49-.out bug-49-.xsl \
58     bug-50-.out bug-50-.xsl \
59     bug-52.out bug-52.xsl \
60     bug-53.out bug-53.xsl \
61     bug-54.out bug-54.xsl \
62     bug-55.out bug-55.xsl \
63     bug-56.out bug-56.xsl \
64     bug-57.out bug-57.xsl \
65     bug-59.out bug-59.xsl \
66     bug-60.out bug-60.xsl \
67     bug-61.out bug-61.xsl \
68     bug-62-inc.out bug-62-inc.xsl \
69     bug-62.out bug-62.xsl \
70     bug-63.out bug-63.xsl \
71     bug-64.out bug-64.xsl \
72     bug-65.ent bug-65.out bug-65.xsl \
73     bug-66.out bug-66.xsl \
74     bug-68.out bug-68.xsl \
75     bug-69.out bug-69.xsl \
76     bug-70.out bug-70.xsl \
77     bug-71.out bug-71.xsl \
78     bug-72.out bug-72.xsl \
79     bug-73.out bug-73.xsl \
80     bug-74.out bug-74.xsl \
81     bug-75.out bug-75.xsl \
82     bug-76.out bug-76.xsl \
83     bug-77.out bug-77.xsl \
84     bug-78.out bug-78.xsl \
85     bug-79.out bug-79.xsl \
86     bug-80.out bug-80.xsl \
87     bug-81.out bug-81.xsl \
88     bug-82.out bug-82.xsl \
89     bug-83.out bug-83.xsl \
90     bug-84.out bug-84.xsl \
91     bug-86.out bug-86.xsl \
92     bug-87.out bug-87.xsl \
93     bug-88.out bug-88.xsl \
94     bug-89.out bug-89.xsl \
95     bug-90.out bug-90.xsl \
96     bug-91.out bug-91.xsl \
97     bug-92.out bug-92.xsl \
98     bug-93.out bug-93.xsl \
99     bug-93-inc.out bug-93-inc.xsl \
100     bug-94.out bug-94.xsl \
101     bug-95.out bug-95.xsl \
102     bug-96.out bug-96.xsl \
103     bug-97.out bug-97.xsl \
104     bug-98.out bug-98.xsl \
105     bug-99.out bug-99.xsl \
106     bug-100.out bug-100.xsl \
107     bug-101.out bug-101.xsl \
108     bug-102.out bug-102.xsl \
109     bug-102-inc.out bug-102-inc.xsl \
110     bug-103.out bug-103.xsl \
111     bug-104.out bug-104.xsl \
112     bug-105.out bug-105.xsl \
113     bug-106.out bug-106.xsl \
114     bug-107.out bug-107.xsl \
115     bug-108.out bug-108.xsl \
116     bug-109.out bug-109.xsl \
117     bug-110.out bug-110.xsl \
118     bug-111.out bug-111.xsl \
119     bug-112.out bug-112.xsl \
120     character.out character.xsl \
121     character2.out character2.xsl \
122     itemschoose.out itemschoose.xsl \
123     inner.xsl
124
125
126 all:
127
128 valgrind:
129         @echo '## Running the regression tests under Valgrind'
130         $(MAKE) CHECKER='valgrind -q' tests
131
132 test tests: $(top_builddir)/xsltproc/xsltproc
133         @(echo > .memdump)
134         @(for i in $(srcdir)/../docs/*.xml ; do \
135           if [ -d $$i ] ; then continue ; fi ; \
136           doc=`basename $$i .xml` ; \
137           for j in $(srcdir)/$$doc*.xsl ; do \
138           if [ ! -f $$j ] ; then continue ; fi ; \
139           if [ -d $$j ] ; then continue ; fi ; \
140           name=`basename $$j .xsl`; \
141           out=$(srcdir)/"$$name".out; \
142           echo Running $$j on $$i ; \
143           $(CHECKER) $(top_builddir)/xsltproc/xsltproc $$j $$i > result.$$name;\
144           if [ ! -f $$out ] ; then cp result.$$name $$out ; \
145           else diff $$out result.$$name; fi ; \
146           grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0" || true;\
147           rm -f result.$$name ; \
148           done ; done)
149