Skip to content

Commit 109234a

Browse files
authored
Merge pull request #198 from minishrink/v6_fix
Document and build daemon CLIs for debugging
2 parents 51b6921 + cb84fa0 commit 109234a

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

INSTALL.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@ This repository contains
1010
* configuration file parsing
1111
* argument parsing
1212
* RPCs
13+
3. The following CLI tools for debugging:
14+
* lib/channel_helper.exe -- a channel passing helper CLI
15+
* memory/memory_cli.exe -- a squeezed debugging CLI
16+
* v6/v6_cli.exe -- a V6d debugging CLI
17+
* cluster/cluster_cli.exe -- a xapi-clusterd debugging CLI
18+
19+
To build these, run: `jbuilder build path/to/exec.exe`.
20+
To run: `./_build/default/path/to/exec.exe`.

example/jbuild

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@ let () = Printf.ksprintf Jbuild_plugin.V1.send {|
4040

4141
(alias
4242
((name runtest)
43-
(deps (example.exe))))
43+
(deps (example.exe))
44+
(action (run ${<}))))
4445
|} flags coverage_rewriter

lib/jbuild

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,4 @@ let () = Printf.ksprintf Jbuild_plugin.V1.send {|
9292
lwt
9393
lwt.unix
9494
xcp))))
95-
96-
(alias
97-
((name runtest)
98-
(deps (channel_helper.exe))))
9995
|} runtime_coverage_enabled flags coverage_dep coverage_rewriter flags coverage_rewriter flags

memory/jbuild

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,4 @@ let () = Printf.ksprintf Jbuild_plugin.V1.send {|
4848
rpclib.cmdliner
4949
rpclib.markdown
5050
xcp.memory))))
51-
52-
(alias
53-
((name runtest)
54-
(deps (memory_cli.exe))))
5551
|} flags coverage_rewriter

v6/jbuild

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let flags = function
1515
in
1616
go ic ""
1717

18-
let rewriters_ppx = ["ppx_deriving_rpc"; "ppx_sexp_conv"]
18+
let rewriters_ppx = ["ppx_deriving_rpc"]
1919
let flags = flags rewriters_ppx
2020

2121
let coverage_rewriter =
@@ -32,10 +32,21 @@ let () = Printf.ksprintf Jbuild_plugin.V1.send {|
3232
((name xcp_v6)
3333
(public_name xcp.v6)
3434
(flags (:standard -w -39 %s))
35+
(modules (:standard \ v6_cli ))
3536
(libraries
3637
(rpclib
3738
threads
3839
xcp))
3940
(wrapped false)
4041
%s))
42+
43+
(executable
44+
((name v6_cli)
45+
(modules (v6_cli))
46+
(libraries
47+
(cmdliner
48+
rpclib.cmdliner
49+
rpclib.markdown
50+
xcp.v6))))
51+
4152
|} flags coverage_rewriter

0 commit comments

Comments
 (0)