-
Notifications
You must be signed in to change notification settings - Fork 188
/
dune
41 lines (35 loc) · 1.06 KB
/
dune
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
(executable
(libraries unix)
(name gen_commit))
(rule
(targets COMMIT)
(action (with-outputs-to %{targets} (run git rev-parse HEAD))))
(rule
(target deps.csv)
(deps vpnkit.opam)
(action (with-outputs-to %{target} (run opam list --installed --required-by=vpnkit --recursive --columns name,package,license: --separator=, --nobuild --color=never))))
(rule
(target licenses.json)
(deps deps.csv (:gen ./scripts/licenses.exe))
(action (run %{gen} -out %{target} -in %{deps})))
(rule
(target vpnkit.exe)
(deps src/bin/main.exe)
(action (copy %{deps} %{target})))
(rule
(target vpnkit.tgz)
(deps vpnkit.exe (:gen ./scripts/mac_package.exe))
(action (run %{gen} -out %{target} -in %{deps})))
(rule
(alias e2e)
(deps src/hostnet_test/main.exe
go/test_inputs/open_dedicated_connection.bin
go/test_inputs/close.bin
go/test_inputs/open_multiplexed_unix_connection.bin
go/test_inputs/window.bin
go/test_inputs/data.bin
go/test_inputs/open_multiplexed_connection.bin
go/test_inputs/shutdown.bin
)
(action (run ./src/hostnet_test/main.exe))
)