summaryrefslogtreecommitdiffstats
path: root/tests/Makefile.am
blob: 9da07c502e6ac14d7aed7ead6dff5867fe24d8bc (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
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir) -I.

dist_noinst_HEADERS = test.h
noinst_PROGRAMS = testrecord testdatabase

testrecord_SOURCES = testrecord.c
testrecord_LDADD = ../libmsi/libmsi.la
testdatabase_SOURCES = testdatabase.c
testdatabase_LDADD = ../libmsi/libmsi.la

TESTS_ENVIRONMENT = srcdir=$(srcdir) ./runtest

if WIN32
noinst_PROGRAMS += testsuminfo

testdatabase_LDADD += -lole32
testsuminfo_SOURCES = testsuminfo.c
testsuminfo_LDADD = ../libmsi/libmsi.la -lole32

TESTS = \
	testdatabase$(EXEEXT) \
	testrecord$(EXEEXT) \
	testsuminfo$(EXEEXT)

endif

CLEANFILES = \
	testdatabase.log testdatabase.diff \
	testrecord.log testrecord.diff \
	testsuminfo.log testsuminfo.diff

EXTRA_DIST = runtest \
	testdatabase.ok \
	testrecord.ok \
	testsuminfo.ok

.NOTPARALLEL: