File: Makefile.am

package info (click to toggle)
dbus-sharp 0.8.1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 868 kB
  • sloc: cs: 7,690; sh: 494; makefile: 181
file content (53 lines) | stat: -rw-r--r-- 1,032 bytes parent folder | download | duplicates (3)
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
ASSEMBLY = dbus-sharp-tests
TARGET = $(ASSEMBLY).dll
XBUILD_Q = $(XBUILD) /nologo /verbosity:quiet

NUNIT_CONSOLE = $$(echo $$(which nunit-console2 || which nunit-console))
RUNNER = $(NUNIT_CONSOLE) -nologo

CSFILES = AddressTest.cs \
	AuthenticationTest.cs \
	MatchRuleTest.cs \
	ObjectPathTest.cs \
	SignatureTest.cs \
	BusTests.cs \
	ExportInterfaceTest.cs \
	RenamedInterfaceTest.cs \
	MessageReaderTest.cs \
	MessageWriterTest.cs \
	IntrospectorTest.cs

if ENABLE_TESTS

all: $(TARGET)

$(TARGET):
	$(XBUILD_Q) dbus-sharp-tests.csproj

test: $(TARGET)
	if test -z "$$DBUS_SESSION_BUS_ADDRESS" ; then \
		eval `dbus-launch --sh-syntax` ; \
		echo "D-Bus per-session daemon address is: $$DBUS_SESSION_BUS_ADDRESS" ; \
	fi; $(RUNNER) $$TEST_HARNESS_FLAGS $(TARGET);

check: test

# This is not needed on that branch
# it's for compat with wrench
setup: ;
run: check

.PHONY: $(TARGET)

endif

EXTRA_DIST = \
	$(CSFILES) \
	dbus-sharp-tests.csproj

CLEANFILES = \
	$(TARGET) \
	$(TARGET).mdb

MAINTAINERCLEANFILES = \
	Makefile.in