summaryrefslogtreecommitdiff
path: root/scripts/scalability/makefile
blob: 7afc042852a39ded87f1f391a96bae23d5972199 (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
# 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
SIZE ?= 10

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) SIZE=$(SIZE))