-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathMakefile
68 lines (55 loc) · 2.08 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
# Copyright (c) 2025 Cloudflare, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
.PHONY: accept acceptance e2e load leader l helper h storage-proxy s
leader:
RUST_LOG=hyper=off,debug cargo run \
--profile release-symbols \
--features test-utils \
--example service \
-- \
-c ./crates/daphne-server/examples/configuration-leader.toml
l: leader
helper:
RUST_LOG=hyper=off,debug cargo run \
--profile release-symbols \
--features test-utils \
--example service \
-- \
-c ./crates/daphne-server/examples/configuration-helper.toml
h: helper
helper-worker:
cd ./crates/daphne-worker-test/ && \
wrangler dev -c wrangler.aggregator.toml --port 8788 -e helper
hw: helper-worker
leader-worker:
cd ./crates/daphne-worker-test/ && \
wrangler dev -c wrangler.aggregator.toml --port 8788 -e leader
lw: leader-worker
storage-proxy:
docker compose -f ./crates/daphne-worker-test/docker-compose-storage-proxy.yaml up --build
s: storage-proxy
e2e: /tmp/private-key /tmp/certificate
export HPKE_SIGNING_KEY="$$(cat /tmp/private-key)"; \
export E2E_TEST_HPKE_SIGNING_CERTIFICATE="$$(cat /tmp/certificate)"; \
docker compose -f ./crates/daphne-server/docker-compose-e2e.yaml up \
--no-attach leader_storage \
--no-attach helper_storage \
--build \
--abort-on-container-exit \
--exit-code-from test
e2e-worker:
docker compose -f ./crates/daphne-worker-test/docker/docker-compose-e2e.yaml up \
--build \
--abort-on-container-exit \
--exit-code-from test
build_interop:
docker build . -f ./interop/Dockerfile.interop_helper --tag daphne-interop
run_interop:
docker run -it -p 8788:8788 -P daphne-interop --name daphne-interop
/tmp/private-key:
openssl ecparam -name prime256v1 -genkey -noout -out $@
/tmp/certificate:
openssl req -key /tmp/private-key -new -x509 -days 1 -out /tmp/certificate -subj '/C=US/L=Palo Alto/O=Cloudflare Lda/CN=dap.cloudflare.com'
reset-storage:
-cargo run --bin dapf -- test-routes clear-storage -s p256_hkdf_sha256 http://localhost:8787/v09/
-cargo run --bin dapf -- test-routes clear-storage -s p256_hkdf_sha256 http://localhost:8788/v09/