summaryrefslogtreecommitdiff
path: root/tests/twisted/Makefile.am
blob: e1d03b325edbcd75e7956d3b3d47c3458d9c1268 (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
NULL = 

TWISTED_TESTS = \
	cm/protocol.py \
	test-register.py \
	test-register-fail.py \
	test-register-sasl.py \
	test-handle-normalisation.py \
	test-message.py \
	test-self-alias.py \
	text/initiate-requestotron.py \
	voip/incoming-basics.py \
	voip/outgoing-basics.py \
	$(NULL)

TESTS =

TESTS_ENVIRONMENT = \
	PYTHONPATH=@abs_top_srcdir@/tests/twisted

check-local: check-coding-style check-twisted

CHECK_TWISTED_SLEEP=0

check-twisted:
	$(MAKE) -C tools
	rm -f tools/sofiasip-testing.log
	sh $(srcdir)/tools/with-session-bus.sh \
		--config-file=tools/tmp-session-bus.conf \
		--sleep=$(CHECK_TWISTED_SLEEP) \
		-- $(MAKE) check-TESTS \
		TESTS="$(TWISTED_TESTS)" \
		TESTS_ENVIRONMENT="$(TESTS_ENVIRONMENT) $(PYTHON)" 2>&1 | \
		fgrep -v -e DeprecationWarning -e DigestAuthorizer

EXTRA_DIST = \
	$(TWISTED_TESTS) \
	constants.py \
	sofiatest.py \
	servicetest.py \
	voip/voip_test.py

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

check_misc_sources = $(TESTS)

include $(top_srcdir)/tools/check-coding-style.mk

SUBDIRS = tools