-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
84 lines (61 loc) · 2.49 KB
/
Makefile
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
SHELL := /bin/bash
export GO111MODULE=on
define PROJECT_HELP_MSG
Usage:\n
\t make help:\t\t show this message\n\n
\t make build:\t\t build Chuck\n
\t make install-tools:\t install additional tools requirements\n\n
\t make test:\t\t run Chuck unit tests\n
\t make test-intg-c:\t run Chuck for the integration tests (Chuck integration tests)\n
\t make test-intg-r:\t run Chuck integration tests (exec make test-intg-c before)\n\n
\t make version:\t\t print Chuck version\n
\t make run-rec:\t\t run Chuck in the recording mode\n
\t make run-dbg:\t\t run Chuck in the debug mode\n
\t make run-intg-rec:\t run Chuck in the integration tests recording mode\n\n
\t make run-intg:\t run Chuck in the integration tests mode as local server\n\n
\t make run-intg-r:\t run Chuck in the integration tests mode for real devices(not simulator)\n\n
\t make copy-intg-auto:\t run integration tests copying & cleaning utility (copy scenarious mode)\n
\t make copy-intg-man:\t run integration tests copying & cleaning utility (create scenario mode)\n
endef
export PROJECT_HELP_MSG
help:
echo -e $$PROJECT_HELP_MSG
build:
go build
install-tools:
python3 -m venv ext-tools/test-runner/venv
source ext-tools/test-runner/venv/bin/activate && pip install --upgrade pip && pip install -r ext-tools/test-runner/requirements.txt
python3 -m venv ext-tools/sc-copy/venv
source ext-tools/sc-copy/venv/bin/activate && pip install --upgrade pip && pip install -r ext-tools/sc-copy/requirements.txt
test:
go test ./... -v
test-intg-c:
go build
./chuck intg -address=127.0.0.1 -port=8123 -folder=ext-tools/test-runner/stubs -verbose=1
test-intg-r:
( \
source ext-tools/test-runner/venv/bin/activate; \
python ext-tools/test-runner/test_chuck.py; \
)
version:
./chuck --version
run-rec:
./chuck rec -address=127.0.0.1 -port=8123 -folder=log -prevent_304=1 -new_folder=1 -focused=0 -requests=1
run-dbg:
./chuck dbg -address=127.0.0.1 -port=8123 -folder=dbg
run-intg:
./chuck intg-noproxy -address=127.0.0.1 -port=8123 -folder=intg -verbose=1
run-intg-rec:
./chuck intg_rec -address=127.0.0.1 -port=8123 -folder=log-intg -new_folder=1 -requests=0
run-intg-r:
./chuck intg-noproxy -address=0.0.0.0 -port=8123 -folder=intg -verbose=1
copy-intg-auto:
( \
source ext-tools/sc-copy/venv/bin/activate; \
python ext-tools/sc-copy/main.py copy log-intg sc-cleaned; \
)
copy-intg-man:
( \
source ext-tools/sc-copy/venv/bin/activate; \
python ext-tools/sc-copy/main.py new log sc-cleaned; \
)