forked from karlseguin/pg.zig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
20 lines (16 loc) · 769 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
F=
.PHONY: t
t:
TEST_FILTER="${F}" zig build test --summary all -freference-trace
.PHONY: d
d:
cd tests && docker compose up
.PHONY: ssl
ssl:
openssl req -days 3650 -new -text -nodes -subj '/C=SG/ST=SG/L=SG/O=Personal/OU=Personal/CN=localhost' -keyout tests/server.key -out tests/server.csr
openssl req -days 3650 -x509 -text -in tests/server.csr -key tests/server.key -out tests/server.crt
rm tests/server.csr
cp tests/server.crt tests/root.crt
openssl req -days 3650 -new -nodes -subj '/C=SG/ST=SG/L=SG/O=Personal/OU=Personal/CN=localhost/CN=testclient1' -keyout tests/client.key -out tests/client.csr
openssl x509 -days 3650 -req -CAcreateserial -in tests/client.csr -CA tests/root.crt -CAkey tests/server.key -out tests/client.crt
rm tests/client.csr