Skip to content

Commit 4ab6428

Browse files
committed
CP-311148: calibrate VM memory overhead measurements [WiP]
Signed-off-by: Edwin Török <edwin.torok@citrix.com>
1 parent cfcbd99 commit 4ab6428

File tree

4 files changed

+517
-1
lines changed

4 files changed

+517
-1
lines changed

ocaml/quicktest/dune

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@
99
ezxenstore
1010
ezxenstore.watch
1111
fmt
12+
fmt.tty
1213
forkexec
1314
http_lib
1415
mtime
1516
mtime.clock.os
17+
cli_progress_bar
18+
quicktest_trace
19+
quicktest_trace_api
1620
quicktest_trace_rpc
1721
pam
1822
qcheck-alcotest

ocaml/quicktest/quicktest.ml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,25 @@ let qchecks =
1919
|> List.map @@ fun (name, test) ->
2020
(name, List.map QCheck_alcotest.(to_alcotest ~long:true) test)
2121

22+
let setup_tty () =
23+
let style_renderer =
24+
if !Quicktest_args.use_colour then
25+
(* use default style, auto-detect color support *)
26+
None
27+
else
28+
(* never use color *)
29+
Some `None
30+
in
31+
Fmt_tty.setup_std_outputs ?style_renderer ()
32+
2233
let () =
2334
Quicktest_args.parse () ;
35+
setup_tty () ;
36+
let open Quicktest_trace in
37+
let disk = DiskBackend.create_backend ~filename:"trace" () in
38+
TeeBackend.with_setup (module ConsoleBackend.Backend) disk () @@ fun () ->
39+
TeeBackend.setup_tick () ;
40+
Sys.catch_break true ;
2441
Qt_filter.wrap (fun () ->
2542
let suite =
2643
[
@@ -36,6 +53,10 @@ let () =
3653
; ("Quicktest_async_calls", Quicktest_async_calls.tests ())
3754
; ("Quicktest_vm_import_export", Quicktest_vm_import_export.tests ())
3855
; ("Quicktest_vm_lifecycle", Quicktest_vm_lifecycle.tests ())
56+
; ( "Quicktest_vm_calibrate_cleanup"
57+
, Quicktest_vm_calibrate.tests_cleanup ()
58+
)
59+
; ("Quicktest_vm_calibrate", Quicktest_vm_calibrate.tests ())
3960
; ("Quicktest_vm_snapshot", Quicktest_vm_snapshot.tests ())
4061
; ( "Quicktest_vdi_ops_data_integrity"
4162
, Quicktest_vdi_ops_data_integrity.tests ()

0 commit comments

Comments
 (0)