forked from google/skia-buildbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
209 lines (166 loc) · 6.68 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
# The list of files we want to go into core.js, which is concat'd and
# minified. These files should be either present in the project, brought
# into third_party/bower_compoents via bower, or in node_modules.
CORE_SOURCE_FILES = node_modules/native-promise-only/npo.js \
third_party/bower_components/webcomponentsjs/webcomponents.min.js \
../res/js/common.js \
res/js/ctfe.js
BOWER_DIR=third_party/bower_components
VULCANIZE1=true
include ../go/skiaversion/skiaversion.mk
# Require clean_webtools to ensure changes to res/common/imp/*.html are reflected.
.PHONY: ctfe
ctfe: res/css/ctfe.css clean_webtools core_js elements_html skiaversion
go install -v ./go/ctfe
.PHONY: ctfe_debug
ctfe_debug: res/css/ctfe.css debug skiaversion
go install -v ./go/ctfe
.PHONY: ctfe_release
ctfe_release: ctfe
CGO_ENABLED=0 GOOS=linux go install -a ./go/ctfe
./build_ctfe_release
.PHONY: ctfe_push
ctfe_push: ctfe skia-public
pushk ctfe
.PHONY: ctmaster_release
ctmaster_release: all
GOOS=linux go install -a ./go/...
./build_ctmaster_release
.PHONY: ctmaster_push
ctmaster_push: all skia-public
pushk ct-master
# Build debug versions of core.js and elements.html.
.PHONY: debug
debug: clean_webtools debug_core_js debug_elements_html
include ../make/clusters.mk
include ../webtools/webtools.mk
# Master scripts.
.PHONY: build_chromium
build_chromium:
go install -v ./go/master_scripts/build_chromium/
.PHONY: create_pagesets_on_workers
create_pagesets_on_workers:
go install -v ./go/master_scripts/create_pagesets_on_workers/
.PHONY: capture_archives_on_workers
capture_archives_on_workers:
go install -v ./go/master_scripts/capture_archives_on_workers/
.PHONY: run_lua_on_workers
run_lua_on_workers:
go install -v ./go/master_scripts/run_lua_on_workers/
.PHONY: capture_skps_on_workers
capture_skps_on_workers:
go install -v ./go/master_scripts/capture_skps_on_workers/
.PHONY: pixel_diff_on_workers
pixel_diff_on_workers:
go install -v ./go/master_scripts/pixel_diff_on_workers/
.PHONY: run_chromium_perf_on_workers
run_chromium_perf_on_workers:
go install -v ./go/master_scripts/run_chromium_perf_on_workers/
.PHONY: run_chromium_analysis_on_workers
run_chromium_analysis_on_workers:
go install -v ./go/master_scripts/run_chromium_analysis_on_workers/
.PHONY: metrics_analysis_on_workers
metrics_analysis_on_workers:
go install -v ./go/master_scripts/metrics_analysis_on_workers/
# Worker scripts.
.PHONY: create_pagesets
create_pagesets:
go install -v ./go/worker_scripts/create_pagesets/
.PHONY: build_repo
build_repo:
go install -v ./go/worker_scripts/build_repo/
GOOS=windows GOARCH=amd64 go build -o ${GOPATH}/bin/build_repo.exe ./go/worker_scripts/build_repo/
.PHONY: isolate_telemetry
isolate_telemetry:
go install -v ./go/worker_scripts/isolate_telemetry/
GOOS=windows GOARCH=amd64 go build -o ${GOPATH}/bin/isolate_telemetry.exe ./go/worker_scripts/isolate_telemetry/
.PHONY: capture_archives
capture_archives:
go install -v ./go/worker_scripts/capture_archives/
.PHONY: run_lua
run_lua:
go install -v ./go/worker_scripts/run_lua/
.PHONY: capture_skps
capture_skps:
go install -v ./go/worker_scripts/capture_skps/
.PHONY: pixel_diff
pixel_diff:
go install -v ./go/worker_scripts/pixel_diff/
.PHONY: run_chromium_perf
run_chromium_perf:
go install -v ./go/worker_scripts/run_chromium_perf/
GOOS=windows GOARCH=amd64 go build -o ${GOPATH}/bin/run_chromium_perf.exe ./go/worker_scripts/run_chromium_perf/
.PHONY: run_chromium_analysis
run_chromium_analysis:
go install -v ./go/worker_scripts/run_chromium_analysis/
GOOS=windows GOARCH=amd64 go build -o ${GOPATH}/bin/run_chromium_analysis.exe ./go/worker_scripts/run_chromium_analysis/
.PHONY: metrics_analysis
metrics_analysis:
go install -v ./go/worker_scripts/metrics_analysis/
.PHONY: poller
poller:
go install -v ./go/poller/
# This is the quick version triggered by the presubmit script.
.PHONY: testgo
testgo:
go test ./go/... -v -test.short
.PHONY: test
test:
go test ./go/...
.PHONY: master_scripts
master_scripts: build_chromium \
create_pagesets_on_workers capture_archives_on_workers \
run_lua_on_workers capture_skps_on_workers \
pixel_diff_on_workers run_chromium_perf_on_workers poller \
run_chromium_analysis_on_workers metrics_analysis_on_workers
.PHONY: worker_scripts
worker_scripts: create_pagesets capture_archives run_lua capture_skps \
pixel_diff run_chromium_perf \
run_chromium_analysis build_repo metrics_analysis \
isolate_telemetry
.PHONY: all
all: master_scripts worker_scripts testgo
.PHONY: e2e_tests
e2e_tests:
@echo "Running create_pagesets"
go run go/worker_scripts/create_pagesets/main.go -logtostderr --worker_num=1 --pageset_type=Dummy1k
@echo "Completed create_pagests. Sleeping for 15 seconds and continuing."
sleep 15
@echo
@echo
@echo "Running capture_archives"
go run go/worker_scripts/capture_archives/main.go -logtostderr --worker_num=1 --pageset_type=Dummy1k --chromium_build=38517cc-d7e49ce -logtostderr
@echo "Completed capture_archives. Sleeping for 15 seconds and continuing."
sleep 15
@echo
@echo
@echo "Running skpicture_printer"
go run go/worker_scripts/capture_skps/main.go --worker_num=1 --pageset_type=Dummy1k --chromium_build=38517cc-d7e49ce -logtostderr --run_id=rmistry123 --target_platform=Linux
@echo "Completed skpicture_printer. Sleeping for 15 seconds and continuing."
sleep 15
@echo
@echo
@echo "Running smoothness"
go run go/worker_scripts/run_benchmark/main.go --worker_num=1 --pageset_type=Dummy1k --chromium_build=38517cc-d7e49ce -logtostderr --run_id=rmistry123 --benchmark_name=smoothness --repeat_benchmark=2 --target_platform=Linux
@echo "Completed smoothness. Sleeping for 15 seconds and continuing."
sleep 15
@echo
@echo
@echo "Running rasterize_and_record_micro"
go run go/worker_scripts/run_benchmark/main.go --worker_num=1 --pageset_type=Dummy1k --chromium_build=38517cc-d7e49ce -logtostderr --run_id=rmistry123 --benchmark_name=rasterize_and_record_micro --repeat_benchmark=2 --target_platform=Linux
@echo "Completed rasterize_and_record_micro. Sleeping for 15 seconds and continuing."
sleep 15
@echo
@echo
@echo "Running repaint"
go run go/worker_scripts/run_benchmark/main.go --worker_num=1 --pageset_type=Dummy1k --chromium_build=38517cc-d7e49ce -logtostderr --run_id=rmistry123 --benchmark_name=repaint --repeat_benchmark=2 --target_platform=Linux
@echo "Completed repaint. Sleeping for 15 seconds and continuing."
sleep 15
@echo
@echo
@echo "Running lua scripts"
go run go/worker_scripts/run_lua/main.go --worker_num=1 --pageset_type=Dummy1k --chromium_build=38517cc-d7e49ce --run_id=rmistry123 --logtostderr
@echo "Completed lua scripts. Sleeping for 15 seconds and continuing."
sleep 15
@echo
@echo