mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-09 04:35:35 -05:00
fix: remove dep on mtime in checker
This commit is contained in:
parent
28fad1e408
commit
07d512badc
2 changed files with 4 additions and 2 deletions
|
|
@ -3,6 +3,6 @@
|
||||||
(name main)
|
(name main)
|
||||||
(public_name sidekick-checker)
|
(public_name sidekick-checker)
|
||||||
(package sidekick-bin)
|
(package sidekick-bin)
|
||||||
(libraries containers sidekick-bin.lib mtime mtime.clock.os
|
(libraries containers sidekick-bin.lib
|
||||||
sidekick.util sidekick.tef sidekick.drup)
|
sidekick.util sidekick.tef sidekick.drup)
|
||||||
(flags :standard -warn-error -a+8 -open Sidekick_util))
|
(flags :standard -warn-error -a+8 -open Sidekick_util))
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,8 @@ let () =
|
||||||
Printexc.record_backtrace true;
|
Printexc.record_backtrace true;
|
||||||
Sidekick_tef.setup();
|
Sidekick_tef.setup();
|
||||||
|
|
||||||
|
let t1 = Unix.gettimeofday() in
|
||||||
|
|
||||||
Arg.parse opts (fun f -> files := f :: !files) "checker [opt]* [file]+";
|
Arg.parse opts (fun f -> files := f :: !files) "checker [opt]* [file]+";
|
||||||
|
|
||||||
let ok =
|
let ok =
|
||||||
|
|
@ -96,7 +98,7 @@ let () =
|
||||||
| _ -> Error.errorf "expected <problem>? <proof>"
|
| _ -> Error.errorf "expected <problem>? <proof>"
|
||||||
in
|
in
|
||||||
|
|
||||||
let t2 = Mtime_clock.elapsed () |> Mtime.Span.to_s in
|
let t2 = Unix.gettimeofday() -. t1 in
|
||||||
Format.printf "c %s@." (if ok then "OK" else "FAIL");
|
Format.printf "c %s@." (if ok then "OK" else "FAIL");
|
||||||
Format.printf "c elapsed time: %.3fs@." t2;
|
Format.printf "c elapsed time: %.3fs@." t2;
|
||||||
if not ok then exit 1
|
if not ok then exit 1
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue