diff --git a/dune b/dune index e2b4842adb5..2a094a073a9 100644 --- a/dune +++ b/dune @@ -13,3 +13,7 @@ (executable (name configure) (libraries dune-configurator findlib cmdliner unix)) + +; Can still be used for dependencies, but dune won't scan these dirs +; for dune files +(data_only_dirs doc scripts python3 .vscode) diff --git a/ocaml/doc/dune b/ocaml/doc/dune index ee0f921d032..7c3dbcf4f68 100644 --- a/ocaml/doc/dune +++ b/ocaml/doc/dune @@ -35,3 +35,4 @@ (action (run %{x})) ) +(data_only_dirs templates) diff --git a/ocaml/dune b/ocaml/dune new file mode 100644 index 00000000000..dbdeef2876a --- /dev/null +++ b/ocaml/dune @@ -0,0 +1 @@ +(data_only_dirs xe) diff --git a/ocaml/gencert/dune b/ocaml/gencert/dune index ef7875abd29..66a78ca4a41 100644 --- a/ocaml/gencert/dune +++ b/ocaml/gencert/dune @@ -67,3 +67,5 @@ ) (action (run %{test} --color=always)) ) + +(data_only_dirs test_data) diff --git a/ocaml/idl/dune b/ocaml/idl/dune index 31513e0cfca..8d337c5c7f2 100644 --- a/ocaml/idl/dune +++ b/ocaml/idl/dune @@ -81,3 +81,5 @@ (alias update-dm-lifecycle) (action (diff datamodel_lifecycle.ml datamodel_lifecycle.ml.generated))) + +(data_only_dirs templates) diff --git a/ocaml/idl/ocaml_backend/dune b/ocaml/idl/ocaml_backend/dune index f6c4173d363..70cc34c90a1 100644 --- a/ocaml/idl/ocaml_backend/dune +++ b/ocaml/idl/ocaml_backend/dune @@ -11,3 +11,4 @@ ) ) +(data_only_dirs python) diff --git a/ocaml/libs/clock/test_timer.ml b/ocaml/libs/clock/test_timer.ml index b94a3c470d2..ecfafa8dcbd 100644 --- a/ocaml/libs/clock/test_timer.ml +++ b/ocaml/libs/clock/test_timer.ml @@ -7,7 +7,7 @@ let spans = let test_timer_remaining = let print = Fmt.to_to_string Mtime.Span.pp in - Test.make ~name:"Timer.remaining" ~print spans @@ fun duration -> + Test.make ~count:20 ~name:"Timer.remaining" ~print spans @@ fun duration -> let timer = Timer.start ~duration in let half = Timer.span_to_s duration /. 2. in let elapsed = Mtime_clock.counter () in diff --git a/ocaml/libs/vhd/vhd_format/f.ml b/ocaml/libs/vhd/vhd_format/f.ml index 6109c8aa713..e3bfc97a1fe 100644 --- a/ocaml/libs/vhd/vhd_format/f.ml +++ b/ocaml/libs/vhd/vhd_format/f.ml @@ -31,11 +31,7 @@ exception Cstruct_differ let cstruct_equal a b = let check_contents a b = try - for i = 0 to Cstruct.length a - 1 do - let a' = Cstruct.get_char a i in - let b' = Cstruct.get_char b i in - if a' <> b' then raise Cstruct_differ - done ; + if Cstruct.compare a b <> 0 then raise Cstruct_differ ; true with _ -> false in diff --git a/ocaml/libs/vhd/vhd_format_lwt_test/lib.ml b/ocaml/libs/vhd/vhd_format_lwt_test/lib.ml index 3073ba88bca..68803676df3 100644 --- a/ocaml/libs/vhd/vhd_format_lwt_test/lib.ml +++ b/ocaml/libs/vhd/vhd_format_lwt_test/lib.ml @@ -99,7 +99,7 @@ let check_written_sectors t expected = | false -> fail (Failure "read empty sector, expected data") | true -> - Alcotest.check cstruct __LOC__ data y ; + Alcotest.check cstruct ~pos:__POS__ "" data y ; return () ) >>= fun () -> loop xs @@ -139,10 +139,10 @@ let check_raw_stream_contents t expected = let actual = Cstruct.sub data (i * 512) 512 in ( if not (List.mem_assoc sector expected) then - Alcotest.check cstruct __LOC__ empty_sector actual + Alcotest.check cstruct ~pos:__POS__ "" empty_sector actual else let expected = List.assoc sector expected in - Alcotest.check cstruct __LOC__ expected actual + Alcotest.check cstruct ~pos:__POS__ "" expected actual ) ; check (i + 1) in @@ -163,7 +163,7 @@ let check_raw_stream_contents t expected = else let expected = List.assoc offset expected in let actual = Cstruct.sub remaining 0 F.sector_size in - Alcotest.check cstruct __LOC__ expected actual ; + Alcotest.check cstruct ~pos:__POS__ "" expected actual ; loop Int64.(add offset 1L) (Cstruct.shift remaining F.sector_size) in loop offset data diff --git a/ocaml/libs/vhd/vhd_format_lwt_test/parse_test.ml b/ocaml/libs/vhd/vhd_format_lwt_test/parse_test.ml index 458c0c7cce6..93ea89365cf 100644 --- a/ocaml/libs/vhd/vhd_format_lwt_test/parse_test.ml +++ b/ocaml/libs/vhd/vhd_format_lwt_test/parse_test.ml @@ -51,9 +51,9 @@ let check_empty_disk size = let filename = make_new_filename () in Vhd_IO.create_dynamic ~filename ~size () >>= fun vhd -> Vhd_IO.openchain filename false >>= fun vhd' -> - Alcotest.check Lib.header __LOC__ vhd.Vhd.header vhd'.Vhd.header ; - Alcotest.check Lib.footer __LOC__ vhd.Vhd.footer vhd'.Vhd.footer ; - Alcotest.check Lib.bat __LOC__ vhd.Vhd.bat vhd'.Vhd.bat ; + Alcotest.check Lib.header ~pos:__POS__ "" vhd.Vhd.header vhd'.Vhd.header ; + Alcotest.check Lib.footer ~pos:__POS__ "" vhd.Vhd.footer vhd'.Vhd.footer ; + Alcotest.check Lib.bat ~pos:__POS__ "" vhd.Vhd.bat vhd'.Vhd.bat ; Vhd_IO.close vhd' >>= fun () -> Vhd_IO.close vhd (* Create a disk, resize it, check headers *) @@ -64,7 +64,8 @@ let check_resize size = let vhd = Vhd.resize vhd newsize in Vhd_IO.close vhd >>= fun () -> Vhd_IO.openchain filename false >>= fun vhd' -> - Alcotest.(check int64) __LOC__ newsize vhd.Vhd.footer.Footer.current_size ; + Alcotest.(check int64 ~pos:__POS__) + "" newsize vhd.Vhd.footer.Footer.current_size ; Vhd_IO.close vhd' (* Create a snapshot, check headers *) @@ -74,9 +75,9 @@ let check_empty_snapshot size = let filename = make_new_filename () in Vhd_IO.create_difference ~filename ~parent:vhd () >>= fun vhd' -> Vhd_IO.openchain filename false >>= fun vhd'' -> - Alcotest.check Lib.header __LOC__ vhd'.Vhd.header vhd''.Vhd.header ; - Alcotest.check Lib.footer __LOC__ vhd'.Vhd.footer vhd''.Vhd.footer ; - Alcotest.check Lib.bat __LOC__ vhd'.Vhd.bat vhd''.Vhd.bat ; + Alcotest.check Lib.header ~pos:__POS__ "" vhd'.Vhd.header vhd''.Vhd.header ; + Alcotest.check Lib.footer ~pos:__POS__ "" vhd'.Vhd.footer vhd''.Vhd.footer ; + Alcotest.check Lib.bat ~pos:__POS__ "" vhd'.Vhd.bat vhd''.Vhd.bat ; Vhd_IO.close vhd'' >>= fun () -> Vhd_IO.close vhd' >>= fun () -> Vhd_IO.close vhd diff --git a/ocaml/libs/xapi-rrd/lib_test/dune b/ocaml/libs/xapi-rrd/lib_test/dune index 7a66380a63e..1c62f716d46 100644 --- a/ocaml/libs/xapi-rrd/lib_test/dune +++ b/ocaml/libs/xapi-rrd/lib_test/dune @@ -25,3 +25,5 @@ xapi-rrd ) ) + +(data_only_dirs test_data) diff --git a/ocaml/libs/xapi-stdext/lib/xapi-stdext-unix/test/unixext_test.ml b/ocaml/libs/xapi-stdext/lib/xapi-stdext-unix/test/unixext_test.ml index 7953076844b..d4e2d836675 100644 --- a/ocaml/libs/xapi-stdext/lib/xapi-stdext-unix/test/unixext_test.ml +++ b/ocaml/libs/xapi-stdext/lib/xapi-stdext-unix/test/unixext_test.ml @@ -115,7 +115,8 @@ let test_time_limited_write = let test_time_limited_read = let gen = Gen.tup2 Generate.t Generate.timeouts and print = Print.tup2 Generate.print Print.float in - Test.make ~name:__FUNCTION__ ~print gen @@ fun (behaviour, timeout) -> + Test.make ~count:20 ~name:__FUNCTION__ ~print gen + @@ fun (behaviour, timeout) -> skip_blk behaviour.kind ; skip_dirlnk behaviour.kind ; skip_blk_timed behaviour ; @@ -166,7 +167,7 @@ let test_time_limited_read = let test_proxy = let gen = Generate.t and print = Generate.print in - Test.make ~name:__FUNCTION__ ~print gen @@ fun behaviour -> + Test.make ~count:20 ~name:__FUNCTION__ ~print gen @@ fun behaviour -> if behaviour.kind <> Unix.S_SOCK then QCheck2.assume_fail () ; let test wrapped_fd = diff --git a/ocaml/message-switch/core_test/concur-rpc-test.sh b/ocaml/message-switch/core_test/concur-rpc-test.sh index a91768972fe..1403946ba5b 100755 --- a/ocaml/message-switch/core_test/concur-rpc-test.sh +++ b/ocaml/message-switch/core_test/concur-rpc-test.sh @@ -9,37 +9,36 @@ trap "cleanup" TERM INT function cleanup { rm -rf "${SWITCHPATH}" } +SECS=${SECS:-0.1} rm -rf "${SWITCHPATH}" && mkdir -p "${SWITCHPATH}" echo Test message switch concurrent processing echo Checking the switch can start late -test -x ./server_unix_main.exe || exit 1 -./server_unix_main.exe -path "$SPATH" & -sleep 1 -test -x ../switch/switch_main.exe && test -x ./client_unix_main.exe || exit 1 -../switch/switch_main.exe --path "$SPATH" --statedir "${SWITCHPATH}" & -./client_unix_main.exe -path "$SPATH" -secs 5 -sleep 2 +./server_unix_main.exe -path "${SPATH}" & +SERVER=$! +sleep "${SECS}" +../switch/switch_main.exe --path "${SPATH}" --statedir "${SWITCHPATH}" & +./client_unix_main.exe -path "${SPATH}" -secs "${SECS}" +wait "${SERVER}" echo Performance test of Lwt to Lwt -test -x lwt/server_main.exe && test -x lwt/client_main.exe || exit 1 -lwt/server_main.exe -path "$SPATH" -concurrent & -lwt/client_main.exe -path "$SPATH" -secs 5 -sleep 2 +lwt/server_main.exe -path "${SPATH}" -concurrent & +SERVER=$! +lwt/client_main.exe -path "${SPATH}" -secs "${SECS}" +wait "${SERVER}" echo Performance test of Async to Lwt -test -x lwt/server_main.exe && test -x async/client_async_main.exe || exit 1 -lwt/server_main.exe -path "$SPATH" -concurrent & -async/client_async_main.exe -path "$SPATH" -secs 5 -sleep 2 +lwt/server_main.exe -path "${SPATH}" -concurrent & +SERVER=$! +async/client_async_main.exe -path "${SPATH}" -secs "${SECS}" +wait "${SERVER}" echo Performance test of Async to Async -test -x async/server_async_main.exe && test -x async/client_async_main.exe || exit 1 -async/server_async_main.exe -path "$SPATH" -concurrent & -async/client_async_main.exe -path "$SPATH" -secs 5 -sleep 2 +async/server_async_main.exe -path "${SPATH}" -concurrent & +SERVER=$! +async/client_async_main.exe -path "${SPATH}" -secs "${SECS}" +wait "${SERVER}" -../cli/main.exe shutdown --path "$SPATH" -sleep 2 +../cli/main.exe shutdown --path "${SPATH}" diff --git a/ocaml/message-switch/dune b/ocaml/message-switch/dune index a0d445776e6..3daaf679370 100644 --- a/ocaml/message-switch/dune +++ b/ocaml/message-switch/dune @@ -1,3 +1,5 @@ (executable (name configure) (libraries dune-configurator findlib)) + +(data_only_dirs www python) diff --git a/ocaml/networkd/test/dune b/ocaml/networkd/test/dune index 951eda074a0..9d7ac2c9248 100644 --- a/ocaml/networkd/test/dune +++ b/ocaml/networkd/test/dune @@ -25,3 +25,5 @@ ) ) ) + +(data_only_dirs jsonrpc_files) diff --git a/ocaml/quicktest/dune b/ocaml/quicktest/dune index 9a8a4a75043..b061ff1176c 100644 --- a/ocaml/quicktest/dune +++ b/ocaml/quicktest/dune @@ -40,7 +40,7 @@ xenctrl xml-light2 ) - (preprocess (pps ppx_deriving_rpc ppx_sexp_conv)) + (preprocess (per_module ((pps ppx_deriving_rpc) Quicktest_vm_lifecycle))) ) diff --git a/ocaml/rrd2csv/dune b/ocaml/rrd2csv/dune new file mode 100644 index 00000000000..97dab88ae44 --- /dev/null +++ b/ocaml/rrd2csv/dune @@ -0,0 +1 @@ +(data_only_dirs man) diff --git a/ocaml/sdk-gen/c/autogen/dune b/ocaml/sdk-gen/c/autogen/dune index e7809a95ba5..78b81f38e4c 100644 --- a/ocaml/sdk-gen/c/autogen/dune +++ b/ocaml/sdk-gen/c/autogen/dune @@ -23,3 +23,4 @@ ) ) +(data_only_dirs src include) diff --git a/ocaml/sdk-gen/c/dune b/ocaml/sdk-gen/c/dune index 79cb32b80c6..ca7f44dee18 100644 --- a/ocaml/sdk-gen/c/dune +++ b/ocaml/sdk-gen/c/dune @@ -19,3 +19,4 @@ (action (run %{x})) ) +(data_only_dirs templates) diff --git a/ocaml/sdk-gen/csharp/autogen/dune b/ocaml/sdk-gen/csharp/autogen/dune index d5e542936ad..61e1f86a0a4 100644 --- a/ocaml/sdk-gen/csharp/autogen/dune +++ b/ocaml/sdk-gen/csharp/autogen/dune @@ -12,4 +12,6 @@ LICENSE (source_tree .) ) -) \ No newline at end of file +) + +(data_only_dirs src) diff --git a/ocaml/sdk-gen/csharp/dune b/ocaml/sdk-gen/csharp/dune index e7112b1aae9..df6856bfc22 100644 --- a/ocaml/sdk-gen/csharp/dune +++ b/ocaml/sdk-gen/csharp/dune @@ -46,3 +46,4 @@ (action (run %{x} -s %{y})) ) +(data_only_dirs templates) diff --git a/ocaml/sdk-gen/dune b/ocaml/sdk-gen/dune new file mode 100644 index 00000000000..49140147129 --- /dev/null +++ b/ocaml/sdk-gen/dune @@ -0,0 +1 @@ +(data_only_dirs component-test) diff --git a/ocaml/sdk-gen/go/autogen/dune b/ocaml/sdk-gen/go/autogen/dune index c1cb1ddd3b8..98bbd45a418 100644 --- a/ocaml/sdk-gen/go/autogen/dune +++ b/ocaml/sdk-gen/go/autogen/dune @@ -22,3 +22,5 @@ (source_tree .) ) ) + +(data_only_dirs src) diff --git a/ocaml/sdk-gen/go/dune b/ocaml/sdk-gen/go/dune index 6d99103516a..de55ec5cee8 100644 --- a/ocaml/sdk-gen/go/dune +++ b/ocaml/sdk-gen/go/dune @@ -44,3 +44,5 @@ (source_tree templates) ) ) + +(data_only_dirs test_data templates) diff --git a/ocaml/sdk-gen/java/autogen/dune b/ocaml/sdk-gen/java/autogen/dune index ba31f05eaaf..0d4efe16d03 100644 --- a/ocaml/sdk-gen/java/autogen/dune +++ b/ocaml/sdk-gen/java/autogen/dune @@ -5,3 +5,4 @@ ) ) +(data_only_dirs xen-api) diff --git a/ocaml/sdk-gen/java/dune b/ocaml/sdk-gen/java/dune index 498b3a7bc09..a1daac834b0 100644 --- a/ocaml/sdk-gen/java/dune +++ b/ocaml/sdk-gen/java/dune @@ -29,3 +29,4 @@ (action (run %{x})) ) +(data_only_dirs templates) diff --git a/ocaml/sdk-gen/powershell/autogen/dune b/ocaml/sdk-gen/powershell/autogen/dune index 56eb4c8480a..61e1f86a0a4 100644 --- a/ocaml/sdk-gen/powershell/autogen/dune +++ b/ocaml/sdk-gen/powershell/autogen/dune @@ -13,3 +13,5 @@ (source_tree .) ) ) + +(data_only_dirs src) diff --git a/ocaml/sdk-gen/powershell/dune b/ocaml/sdk-gen/powershell/dune index 39b2f99b75f..826885af543 100644 --- a/ocaml/sdk-gen/powershell/dune +++ b/ocaml/sdk-gen/powershell/dune @@ -19,3 +19,4 @@ (action (run %{x})) ) +(data_only_dirs templates) diff --git a/ocaml/squeezed/dune b/ocaml/squeezed/dune new file mode 100644 index 00000000000..389b982cc01 --- /dev/null +++ b/ocaml/squeezed/dune @@ -0,0 +1 @@ +(data_only_dirs scripts) diff --git a/ocaml/tests/dune b/ocaml/tests/dune index 7d351d5e45c..fe620e8fc7f 100644 --- a/ocaml/tests/dune +++ b/ocaml/tests/dune @@ -122,7 +122,7 @@ xml-light2 yojson ) - (preprocess (pps ppx_deriving_rpc ppx_sexp_conv)) + (preprocess (per_module ((pps ppx_deriving_rpc) Test_cluster_host))) ) (test (name test_storage_smapiv1_wrapper) @@ -168,3 +168,5 @@ ) (env (_ (env-vars (XAPI_TEST 1)))) + +(data_only_dirs test_data tests) diff --git a/ocaml/xapi-cli-server/dune b/ocaml/xapi-cli-server/dune index 8d7cacd6ad8..c1a8269dbb6 100644 --- a/ocaml/xapi-cli-server/dune +++ b/ocaml/xapi-cli-server/dune @@ -45,7 +45,7 @@ xmlm xml-light2 ) - (preprocess (pps ppx_deriving_rpc)) + (preprocess (per_module ((pps ppx_deriving_rpc) Cli_operations))) (wrapped false) ) diff --git a/ocaml/xapi-idl/dune b/ocaml/xapi-idl/dune new file mode 100644 index 00000000000..85c1a3c24e2 --- /dev/null +++ b/ocaml/xapi-idl/dune @@ -0,0 +1 @@ +(data_only_dirs designs xen-api-plugin) diff --git a/ocaml/xapi-idl/gpumon/dune b/ocaml/xapi-idl/gpumon/dune index ccd184e9098..de10e06dae6 100644 --- a/ocaml/xapi-idl/gpumon/dune +++ b/ocaml/xapi-idl/gpumon/dune @@ -11,7 +11,7 @@ xapi-log ) (wrapped false) - (preprocess (pps ppx_deriving_rpc))) + (preprocess (per_module ((pps ppx_deriving_rpc) Gpumon_interface)))) (executable (name gpumon_cli) diff --git a/ocaml/xapi-idl/lib_test/device_number_test.ml b/ocaml/xapi-idl/lib_test/device_number_test.ml index fc8d5b210f1..1e32115cd16 100644 --- a/ocaml/xapi-idl/lib_test/device_number_test.ml +++ b/ocaml/xapi-idl/lib_test/device_number_test.ml @@ -133,10 +133,13 @@ let test_2_way_convert = let original = of_disk_number hvm disk_number |> Option.get in let of_linux = of_linux_device (to_linux_device original) |> Option.get in let of_xenstore = of_xenstore_key (to_xenstore_key original) in - Alcotest.check device_number_equal_linux - "of_linux must be equal to original" original of_linux ; - Alcotest.check device_number "of_xenstore must be equal to original" - original of_xenstore + (* use ~pos instead of msg: a non-empty msg causes the formatter to be flushed, + and messages printed on stdout, which is very slow if we do this in a loop a million times + *) + Alcotest.check' ~pos:__POS__ ~msg:"" device_number_equal_linux + ~expected:original ~actual:of_linux ; + Alcotest.check' ~pos:__POS__ ~msg:"" device_number ~expected:original + ~actual:of_xenstore in let max_d = (1 lsl 20) - 1 in diff --git a/ocaml/xapi-idl/lib_test/dune b/ocaml/xapi-idl/lib_test/dune index 1b1e8193ca7..689abf9b5eb 100644 --- a/ocaml/xapi-idl/lib_test/dune +++ b/ocaml/xapi-idl/lib_test/dune @@ -1,3 +1,5 @@ +(data_only_dirs test_data) + (library (name test_lib) (modules idl_test_common) @@ -6,11 +8,9 @@ (wrapped false) ) -(test +(executable (name guard_interfaces_test) - (package xapi-idl) (modules guard_interfaces_test) - (deps (source_tree test_data)) (libraries test_lib xapi-idl.guard.privileged @@ -18,6 +18,13 @@ ) ) +(rule + (alias runtest) + (package xapi-idl) + (deps (:exe ./guard_interfaces_test.exe) (source_tree test_data/guard)) + (action (run %{exe})) +) + (test (name device_number_test) (package xapi-idl) @@ -34,7 +41,6 @@ (modes exe) (package xapi-idl) (modules (:standard \ idl_test_common guard_interfaces_test device_number_test)) - (deps (source_tree test_data)) (libraries alcotest cohttp_posix @@ -61,3 +67,10 @@ xapi-log ) (preprocess (per_module ((pps ppx_deriving_rpc) Task_server_test Updates_test)))) + +(rule + (alias runtest) + (package xapi-idl) + (deps (:exe ./test.exe) (source_tree test_data/guard)) + (action (run %{exe})) +) diff --git a/ocaml/xapi-idl/rrd/dune b/ocaml/xapi-idl/rrd/dune index 9462c9341e6..8a427a965e3 100644 --- a/ocaml/xapi-idl/rrd/dune +++ b/ocaml/xapi-idl/rrd/dune @@ -39,8 +39,7 @@ (re_export xapi-idl.rrd.interface.types) xapi-rrd ) - (wrapped false) - (preprocess (pps ppx_deriving_rpc))) + (wrapped false)) (executable (name rrd_cli) diff --git a/ocaml/xapi-idl/storage/dune b/ocaml/xapi-idl/storage/dune index 036e8dedd89..1ca965d4368 100644 --- a/ocaml/xapi-idl/storage/dune +++ b/ocaml/xapi-idl/storage/dune @@ -10,7 +10,7 @@ xapi-idl ) (wrapped false) - (preprocess (pps ppx_sexp_conv ppx_deriving_rpc))) + (preprocess (pps ppx_deriving_rpc))) (library (name xcp_storage_interface) @@ -28,7 +28,7 @@ xapi-log ) (wrapped false) - (preprocess (pps ppx_sexp_conv ppx_deriving_rpc ppx_deriving.show))) + (preprocess (pps ppx_deriving_rpc ppx_deriving.show))) (library (name xcp_storage) @@ -43,8 +43,7 @@ xapi-idl.storage.interface xapi-stdext-date ) - (wrapped false) - (preprocess (pps ppx_sexp_conv ppx_deriving_rpc))) + (wrapped false)) (test (name storage_test) @@ -58,8 +57,7 @@ xapi-idl xapi-idl.storage xapi-idl.storage.interface - ) - (preprocess (pps ppx_sexp_conv ppx_deriving_rpc))) + )) (test (name suite) diff --git a/ocaml/xapi-idl/xen/dune b/ocaml/xapi-idl/xen/dune index 16ed23ecd22..83266865537 100644 --- a/ocaml/xapi-idl/xen/dune +++ b/ocaml/xapi-idl/xen/dune @@ -30,7 +30,7 @@ ) (flags (:standard -w -27)) (wrapped false) - (preprocess (pps ppx_deriving_rpc ppx_sexp_conv))) + (preprocess (pps ppx_deriving_rpc))) (library (name xcp_xen) @@ -44,5 +44,4 @@ xapi-idl xapi-idl.xen.interface ) - (wrapped false) - (preprocess (pps ppx_deriving_rpc ppx_sexp_conv))) + (wrapped false)) diff --git a/ocaml/xapi-storage-script/dune b/ocaml/xapi-storage-script/dune index 5fa4f0f28fa..a3b86f166b4 100644 --- a/ocaml/xapi-storage-script/dune +++ b/ocaml/xapi-storage-script/dune @@ -72,3 +72,4 @@ (action (bash "export PYTHONPATH=../xapi-storage/python/; echo $PYTHONPATH; ./%{x} --root=$PWD/test --self-test-only=true")) ) +(data_only_dirs test examples) diff --git a/ocaml/xapi-storage/dune b/ocaml/xapi-storage/dune new file mode 100644 index 00000000000..f45f1f79866 --- /dev/null +++ b/ocaml/xapi-storage/dune @@ -0,0 +1 @@ +(data_only_dirs rpc-light) diff --git a/ocaml/xapi-storage/python/dune b/ocaml/xapi-storage/python/dune new file mode 100644 index 00000000000..261d3661603 --- /dev/null +++ b/ocaml/xapi-storage/python/dune @@ -0,0 +1 @@ +(data_only_dirs examples) diff --git a/ocaml/xcp-rrdd/dune b/ocaml/xcp-rrdd/dune new file mode 100644 index 00000000000..db0846cbfe3 --- /dev/null +++ b/ocaml/xcp-rrdd/dune @@ -0,0 +1 @@ +(data_only_dirs scripts bugtool-plugin) diff --git a/ocaml/xenopsd/dune b/ocaml/xenopsd/dune new file mode 100644 index 00000000000..389b982cc01 --- /dev/null +++ b/ocaml/xenopsd/dune @@ -0,0 +1 @@ +(data_only_dirs scripts)