summaryrefslogtreecommitdiff
path: root/src/test/Makefile.am
blob: a546396178a4d6c66a893a0a54de88cd5ec656fd (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
tests = importtest unittest

check_PROGRAMS = $(tests)
check_LTLIBRARIES = libtest_driver.la

libtest_driver_la_CPPFLAGS = \
	$(CPPUNIT_CFLAGS) \
	$(DEBUG_CXXFLAGS)

libtest_driver_la_SOURCES = \
	test.cpp

importtest_CPPFLAGS = \
	-DTDOC=\"$(top_srcdir)/src/test/data\" \
	-I$(top_srcdir)/inc \
	$(LIBVISIO_CXXFLAGS) \
	$(REVENGE_STREAM_CFLAGS) \
	$(CPPUNIT_CFLAGS) \
	$(DEBUG_CXXFLAGS)

importtest_LDADD = \
	../lib/libvisio-@VSD_MAJOR_VERSION@.@VSD_MINOR_VERSION@.la \
	libtest_driver.la \
	$(CPPUNIT_LIBS) \
	$(LIBVISIO_LIBS) \
	$(REVENGE_STREAM_LIBS)

importtest_SOURCES = \
	xmldrawinggenerator.cpp \
	xmldrawinggenerator.h \
	importtest.cpp

unittest_CPPFLAGS = \
	-I$(top_srcdir)/src/lib \
	$(LIBVISIO_CXXFLAGS) \
	$(CPPUNIT_CFLAGS) \
	$(DEBUG_CXXFLAGS)

unittest_LDFLAGS = -L$(top_srcdir)/src/lib
unittest_LDADD = \
	$(top_builddir)/src/lib/libvisio-internal.la \
	libtest_driver.la \
	$(LIBVISIO_LIBS) \
	$(CPPUNIT_LIBS)

unittest_SOURCES = \
	VSDInternalStreamTest.cpp

EXTRA_DIST = \
	data/Visio11FormatLine.vsd \
	data/Visio11TextFieldsWithCurrency.vsd \
	data/Visio11TextFieldsWithUnits.vsd \
	data/Visio5TextFieldsWithUnits.vsd \
	data/Visio6TextFieldsWithUnits.vsd \
	data/bgcolor.vsdx \
	data/bitmaps.vsd \
	data/bitmaps2.vsd \
	data/color-boxes.vsdx \
	data/dwg.vsd \
	data/dwg.vsdx \
	data/fdo86664.vsdx \
	data/fdo86729-ms1252.vsd \
	data/fdo86729-utf8.vsd \
	data/no-bgcolor.vsd \
	data/tdf76829-datetime-format.vsd \
	data/tdf76829-numeric-format.vsd

# ImportTest::testVsdMetadataTitleUtf8 checks formatted date string
AM_TESTS_ENVIRONMENT = TZ=UTC; export TZ;

TESTS = $(tests)