summaryrefslogtreecommitdiffstats
path: root/libkcal/tests/Makefile.am
blob: 563473604bfe3ddb5a99b98f5207f80afde2445c (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
INCLUDES = -I$(top_srcdir)/libkcal \
  -I$(srcdir)/../libical/src/libical \
  -I$(srcdir)/../libical/src/libicalss -I../libical/src/libical \
  -I../libical/src/libicalss -I$(srcdir)/../versit \
  -I$(top_srcdir) $(all_includes)

AM_CPPFLAGS = -DKDETOPSRCDIR=\"$(top_srcdir)\"

check_PROGRAMS = testtostring \
                 testincidence \
                 testcalendar \
                 fbrecurring \
                 readandwrite \
                 testresource \
                 testfields \
                 testrecurrence \
                 testrecurprevious \
                 testrecurson \
                 testrecurrencetype \
                 testvcalexport \
                 testfb \
                 testcalselectdialog


METASOURCES = AUTO

testincidence_SOURCES = testincidence.cpp
testincidence_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -lktexteditor
testincidence_LDADD = ../libkcal.la

testcalendar_SOURCES = testcalendar.cpp
testcalendar_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -lktexteditor
testcalendar_LDADD = ../libkcal.la

testtostring_SOURCES = testtostring.cpp
testtostring_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -lktexteditor
testtostring_LDADD = ../libkcal.la

fbrecurring_SOURCES = fbrecurring.cpp
fbrecurring_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -lktexteditor
fbrecurring_LDADD = ../libkcal.la

readandwrite_SOURCES = readandwrite.cpp
readandwrite_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -lktexteditor
readandwrite_LDADD = ../libkcal.la

testresource_SOURCES = testresource.cpp
testresource_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -lktexteditor
testresource_LDADD = ../libkcal.la

testrecurrence_SOURCES = testrecurrence.cpp
testrecurrence_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -lktexteditor
testrecurrence_LDADD = ../libkcal.la

testrecurprevious_SOURCES = testrecurprevious.cpp
testrecurprevious_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -lktexteditor
testrecurprevious_LDADD = ../libkcal.la

testrecurson_SOURCES = testrecurson.cpp
testrecurson_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -lktexteditor
testrecurson_LDADD = ../libkcal.la

testrecurrencetype_SOURCES = testrecurrencetype.cpp
testrecurrencetype_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -lktexteditor
testrecurrencetype_LDADD = ../libkcal.la

testvcalexport_SOURCES = testvcalexport.cpp
testvcalexport_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -lktexteditor
testvcalexport_LDADD = ../libkcal.la

testfields_SOURCES = testfields.cpp
testfields_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -lktexteditor
testfields_LDADD   = ../libkcal.la
testfields_CXXFLAGS= -DINPUT='"$(srcdir)/data/test_pilot.ics"'

testfb_SOURCES = testfb.cpp
testfb_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -lktexteditor
testfb_LDADD = ../libkcal.la

testcalselectdialog_SOURCES = testcalselectdialog.cpp
testcalselectdialog_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -lktexteditor
testcalselectdialog_LDADD = ../libkcal.la

TESTFILES = test1.ics test2.ics test3.ics test4.ics test5.ics test_Mozilla.ics

check-local: readandwrite testrecurrence testrecurprevious testrecurson testvcalexport
	rm -f FAILED;
	for i in `find $(srcdir)/data/RecurrenceRule/ -name "*.ics"`; do \
	  perl $(srcdir)/runtestcase.pl testrecurrence "next" $$i; \
	done;
	for i in `find $(srcdir)/data/RecurrenceRule/ -name "*.ics"`; do \
	  perl $(srcdir)/runtestcase.pl testrecurprevious "prev" $$i; \
	done;
	for i in `find $(srcdir)/data/RecurrenceRule/ -name "*.ics"`; do \
	  perl $(srcdir)/runtestcase.pl testrecurson "recurson" $$i; \
	done;
#	for i in `find $(srcdir)/data/Compat/ -name "*.ics"`; do \
#	  perl $(srcdir)/runtestcase.pl readandwrite "ical" $$i; \
#	done;
	for i in `find $(srcdir)/data/vCalendar/ -name "*.ics"`; do \
	  perl $(srcdir)/runtestcase.pl testvcalexport "vcal" $$i; \
	done;
	for i in `find $(srcdir)/data/vCalendar/ -name "*.vcs"`; do \
	  perl $(srcdir)/runtestcase.pl readandwrite "ical" $$i; \
	done;
	[ ! -e FAILED ]