summaryrefslogtreecommitdiff
path: root/tests/twisted/Makefile.am
blob: 6548dff6e1cf8f5d4d220ec82d1fc186a7f76d21 (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
TWISTED_TESTS = \
		cm/protocol.py \
		connect/connect-success.py \
		connect/connect-success-ssl.py \
		connect/connect-fail.py \
		connect/connect-fail-ssl.py \
		connect/server-quit-ignore.py \
		connect/server-quit-noclose.py \
		connect/invalid-nick.py \
		contacts.py \
		channels/join-muc-channel.py \
		channels/join-muc-channel-bouncer.py \
		channels/requests-create.py \
		channels/requests-muc.py \
		channels/muc-channel-topic.py \
		messages/accept-invalid-nicks.py \
		messages/contactinfo-request.py \
		messages/messages-iface.py \
		messages/message-order.py \
		messages/leading-space.py \
		messages/long-message-split.py \
		messages/room-contact-mixup.py \
		$(NULL)

TESTS =

TESTS_ENVIRONMENT = \
	PYTHONPATH=@abs_top_srcdir@/tests/twisted:@abs_top_builddir@/tests/twisted \
	IDLE_SSL_KEY=@abs_top_srcdir@/tests/twisted/tools/idletest.key \
	IDLE_SSL_CERT=@abs_top_srcdir@/tests/twisted/tools/idletest.cert

if WANT_TWISTED_TESTS

check-local: check-twisted

check-twisted:
	$(MAKE) -C tools
	rm -f tools/core
	rm -f tools/idle-testing.log
	sh $(srcdir)/tools/with-session-bus.sh --config-file=tools/tmp-session-bus.conf -- $(MAKE) check-TESTS \
		TESTS="$(TWISTED_TESTS)" \
		TESTS_ENVIRONMENT="$(TESTS_ENVIRONMENT) $(TEST_PYTHON)"
	@if test -e tools/core; then\
		echo "Core dump exists: tools/core";\
		exit 1;\
	fi

endif

EXTRA_DIST = \
	     $(TWISTED_TESTS) \
	     servicetest.py \
	     idletest.py \
	     constants.py \
	     $(NULL)

CLEANFILES = idle-[1-9]*.log *.pyc */*.pyc

SUBDIRS = tools