Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for cmdliner.2.0.0 #402

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bench/bench.ml
Original file line number Diff line number Diff line change
Expand Up @@ -558,10 +558,10 @@ let env_var s = Cmd.Env.info ("INDEX_BENCH_" ^ s)
let new_file =
let parse s =
match Sys.file_exists s && Sys.is_directory s with
| false -> `Ok s
| true -> `Error (Printf.sprintf "Error: `%s' is a directory" s)
| false -> Ok s
| true -> Error (`Msg (Printf.sprintf "Error: `%s' is a directory" s))
in
(parse, Format.pp_print_string)
Arg.conv (parse, Format.pp_print_string)

let regex =
let parse s =
Expand Down
7 changes: 4 additions & 3 deletions bench/dune
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
(modules bench)
(preprocess
(pps ppx_repr ppx_deriving_yojson))
(libraries index index.unix cmdliner metrics metrics-unix yojson fmt re
stdlib-shims common mtime mtime.clock.os unix))
(libraries index index.unix cmdliner metrics metrics-unix yojson fmt fmt.tty
re stdlib-shims common mtime mtime.clock.os unix))

(alias
(name bench)
Expand All @@ -26,7 +26,8 @@
(preprocess
(pps ppx_repr))
(libraries index index.unix unix cmdliner logs repr ppx_repr common
tezos-base58 optint fmt rusage mtime mtime.clock.os digestif))
tezos-base58 optint fmt fmt.tty rusage mtime mtime.clock.os digestif
digestif.c))

;; Require the above executables to compile during tests

Expand Down
2 changes: 1 addition & 1 deletion index-bench.opam
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ depends: [
"logs" {>= "0.7.0"}
"progress" {>= "0.2.1"}
"tezos-base58" {>= "1.0.0" & with-test}
"digestif" {>= "0.7" & with-test}
"digestif" {>= "1.0.0" & with-test}
"optint" {>= "0.1.0" & with-test}
"repr" {>= "0.2.1" & with-test}
"rusage" {>= "1.0.0" & with-test}
Expand Down
5 changes: 3 additions & 2 deletions test/unix/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(tests
(names main force_merge io_array)
(package index)
(libraries index index.unix unix alcotest fmt logs logs.fmt logs.threaded re
stdlib-shims threads.posix repr semaphore-compat optint mtime.clock.os))
(libraries index index.unix unix alcotest fmt fmt.tty logs logs.fmt
logs.threaded re stdlib-shims threads.posix repr semaphore-compat optint
mtime.clock.os))
Loading