summaryrefslogtreecommitdiffstats
path: root/dcop/tests/Makefile.am
blob: 16d8ac7e06584faa1baa7d250733a0868e7a68ba (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

nothing:
	@echo -e "dcop tests not run.\nRun make tests in the tests directory to make them"

INCLUDES = $(all_includes)
AM_LDFLAGS   = $(all_libraries)

METASOURCES = AUTO

####### Files

check_PROGRAMS = dcop_test driver

dcop_test_SOURCES = test.cpp test.skel
dcop_test_LDADD = $(LIB_KDECORE)
dcop_test_LDFLAGS = $(KDE_RPATH)

driver_SOURCES = driver.cpp test.stub
driver_LDADD = $(LIB_KDECORE)
driver_LDFLAGS = $(KDE_RPATH)

CLEANFILES = batch.generated definitions.generated driver.generated shell.generated test.h

BUILT_SOURCES = test.h

test-clean:
	rm batch.returns driver.returns shell.returns batch.stdout driver.stdout shell.stdout

test.h: shell.generated

shell.generated: $(srcdir)/testcases $(srcdir)/generate.pl
	perl $(srcdir)/generate.pl < $(srcdir)/testcases

check-local:
	sh $(srcdir)/run-tests.sh