We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47013fc commit 3366248Copy full SHA for 3366248
examples/volume/org.xen.xcp.storage.plainlvm/Volume.create
@@ -40,7 +40,23 @@ end
40
module Test = struct
41
open OUnit
42
43
- let test common = ()
+ let test_lvcreate () =
44
+ let vol = Lvm.make_temp_volume () in
45
+ let vg_name = "hello" in
46
+ finally
47
+ (fun () ->
48
+ Lvm.vgcreate vg_name [ vol ];
49
+ Lvm.lvcreate vg_name "testvol" 1L;
50
+ Lvm.lvremove vg_name "testvol"
51
+ ) (fun () ->
52
+ Lvm.remove_temp_volume vol
53
+ )
54
+
55
+ let test common =
56
+ let suite = "create" >::: [
57
+ "lvcreate" >:: test_lvcreate;
58
+ ] in
59
+ ignore(run_test_tt ~verbose:common.Common.verbose suite)
60
end
61
62
module M = Make(Command)(Test)
0 commit comments