-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
40 lines (35 loc) · 1.5 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
SUBDIRS = src tests samples
EXTRA_DIST = version.incl \
xerces-c.spec \
xerces-c.pc.in \
CREDITS \
INSTALL \
KEYS \
LICENSE \
NOTICE \
README \
config/pretty-make \
doc \
projects \
reconf \
scripts/createBindingsFormatFromHPP.pl \
scripts/makeStringDefinition.pl \
scripts/sanityTest.pl \
scripts/sanityTest_ExpectedResult.log \
tools
AUTOMAKE_OPTIONS = foreign dist-bzip2 dist-zip dist-xz
ACLOCAL_AMFLAGS = -I m4
CLEANFILES = test-results.log
pkgconfigdir = @pkgconfigdir@
pkgconfig_DATA= xerces-c.pc
check:
-rm -f test-results.log
export PATH=${abs_top_builddir}/samples:${abs_top_builddir}/tests:"${PATH}" && export XERCESC_NLS_HOME=${abs_top_builddir}/src/.libs && cd ${top_srcdir} && perl scripts/sanityTest.pl 2>&1 | ${SED} 's/ *[0-9][0-9]* *ms */{timing removed}/' 1> ${abs_top_builddir}/test-results.log
if [ "$$(dpkg-architecture -q DEB_HOST_ARCH_BITS)" -eq 32 ]; then \
cp ${top_srcdir}/scripts/sanityTest_ExpectedResult.log ${top_srcdir}/scripts/sanityTest_ExpectedResult_32.log; \
patch -p1 < ${top_srcdir}/scripts/sanityTest_ExpectedResult_32.diff; \
fi
diff test-results.log ${top_srcdir}/scripts/sanityTest_ExpectedResult.log
if [ "$$(dpkg-architecture -q DEB_HOST_ARCH_BITS)" -eq 32 ]; then \
patch -p1 -R < ${top_srcdir}/scripts/sanityTest_ExpectedResult_32.diff; \
fi