blob: 05ce1461b1b4498b121294a7425add090a6b9815 (
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
|
# Test Controller Makefile
# ========================
#
# This makefile knows how to install server and client components of the Test
# Controller, as well as to trigger a run of the benchmarks.
#
# See the file README.rst for more information on how to use this makefile.
URI ?= https://giraffe.cdev.bitmask.net:7001
PIDFILE = /tmp/test_controller.pid
LOGFILE = /tmp/test_controller.log
TACFILE = ./test_controller/server/server.tac
all: test
#----------------#
# Server targets #
#----------------#
install-server:
pip install ".[server]"
start-server:
twistd --pidfile=$(PIDFILE) --logfile=$(LOGFILE) --python=$(TACFILE)
start-server-nodaemon:
twistd --nodaemon --python=$(TACFILE)
kill:
[ -f $(PIDFILE) ] && kill -9 $$(cat $(PIDFILE))
log:
tail -F $(LOGFILE)
restart: kill start
#----------------#
# Client targets #
#----------------#
install-client:
pip install ".[client]"
test:
(cd test_controller/client && make test URI=$(URI))
|