diff --git a/manifest/main.ml b/manifest/main.ml index b5f5e0d4573c8c43cc72ec6c0d1de8d69ef4cae2..62ee4ea2a07b84d2bfe6196879a05745f9b94d3c 100644 --- a/manifest/main.ml +++ b/manifest/main.ml @@ -2590,7 +2590,7 @@ let octez_context_disk = let _tree_encoding_tests = tezt - ["test_tree_encoding"; "test_proofs"; "test_encoding"] + ["test_proofs"; "test_encoding"] ~path:"src/lib_tree_encoding/test" ~opam:"tezos-tree-encoding-test" ~synopsis:"Tests for the tree encoding library" @@ -4074,7 +4074,7 @@ let octez_dac_node_lib = let _octez_dac_node_lib_tests = tezt - ["test_main"; "test_data_streamer"] + ["test_data_streamer"] ~path:"src/lib_dac_node/test" ~opam:"tezos-dac-node-lib-test" ~synopsis:"Test for dac node lib" @@ -6582,7 +6582,6 @@ let _octez_shell_tests = "test_prevalidator_classification_operations"; "test_prevalidator_pending_operations"; "test_protocol_validator"; - "test_shell"; "test_shell_operation"; "test_synchronisation_heuristic"; "test_synchronisation_heuristic_fuzzy"; diff --git a/src/lib_base/test/test_bounded.ml b/src/lib_base/test/test_bounded.ml index 1851af857a95895d481f157efa55eceacab46b8d..9fdbf3f67337c50d3f3ccd9e8cbae5d8659d01c3 100644 --- a/src/lib_base/test/test_bounded.ml +++ b/src/lib_base/test/test_bounded.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Base - Invocation: dune exec src/lib_base/test/main.exe + Invocation: dune exec src/lib_base/test/main.exe \ + -- --file test_bounded.ml Subject: Test the [Bounded] module. *) diff --git a/src/lib_base/test/test_p2p_addr.ml b/src/lib_base/test/test_p2p_addr.ml index bb5ca4265e2f8e28ede79b52845eaac6924f7432..f118bebfdb04fed9bb82a0412bd6543fa2dc5b7e 100644 --- a/src/lib_base/test/test_p2p_addr.ml +++ b/src/lib_base/test/test_p2p_addr.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Base, P2p - Invocation: dune exec src/lib_base/test/main.exe + Invocation: dune exec src/lib_base/test/main.exe \ + -- --file test_p2p_addr.ml Subject: Check the parsing of addresses with domain names *) diff --git a/src/lib_base/test/test_protocol.ml b/src/lib_base/test/test_protocol.ml index 6794d4e2135b87b2bbce39b71be611c9fd69e0d9..b35ebfd0b531b758a4cb4d71764fd3e8e0480935 100644 --- a/src/lib_base/test/test_protocol.ml +++ b/src/lib_base/test/test_protocol.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Base, Protocol - Invocation: dune exec src/lib_base/test/main.exe + Invocation: dune exec src/lib_base/test/main.exe \ + -- --file test_protocol.ml Subject: Check the ordering of protocol versions *) diff --git a/src/lib_base/test/test_sized.ml b/src/lib_base/test/test_sized.ml index 98f3e94a75fcb9d9e1eaf024fdd991211ae8c534..3015e63c7d612d45f672645984290983c89ca5fe 100644 --- a/src/lib_base/test/test_sized.ml +++ b/src/lib_base/test/test_sized.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Base - Invocation: dune exec src/lib_base/test/main.exe + Invocation: dune exec src/lib_base/test/main.exe \ + -- --file test_sized.ml Subject: Check that the sized map and set functions behave correctly *) diff --git a/src/lib_base/test/test_time.ml b/src/lib_base/test/test_time.ml index 6bc737ef16df94bdad5307d433c086fcf410158d..5a190e42ac2b0e573ac8493469076ecc459c9d5e 100644 --- a/src/lib_base/test/test_time.ml +++ b/src/lib_base/test/test_time.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Base - Invocation: dune exec src/lib_base/test/main.exe + Invocation: dune exec src/lib_base/test/main.exe \ + -- --file test_time.ml Subject: Check that the Protocol and System times behave correctly regarding addition and encoding (binary and JSON) *) diff --git a/src/lib_clic/test/test_clic.ml b/src/lib_clic/test/test_clic.ml index b3cfa1cb45cae0c0a9cdb1fc4747620cdb981343..90244842ea2825ea9f75e77de595a119cc368e02 100644 --- a/src/lib_clic/test/test_clic.ml +++ b/src/lib_clic/test/test_clic.ml @@ -27,7 +27,8 @@ (** Testing ------- Component: Tezos_clic library - Invocation: dune exec src/lib_clic/test/main.exe + Invocation: dune exec src/lib_clic/test/main.exe \ + -- --file test_clic.ml Subject: Test the functionality of the Tezos_clic library, such as CLI command dispatch, parameters and auto-completion. *) diff --git a/src/lib_client_base/test/bip39_tests.ml b/src/lib_client_base/test/bip39_tests.ml index 3de849df03580a404f95ffa9b90ba8429a30c787..b17d5b39d4977314a3b7b2b335d9d595daacfd34 100644 --- a/src/lib_client_base/test/bip39_tests.ml +++ b/src/lib_client_base/test/bip39_tests.ml @@ -1,7 +1,8 @@ (** Testing ------- Component: Client Base - Invocation: dune exec src/lib_client_base/test/main.exe + Invocation: dune exec src/lib_client_base/test/main.exe \ + -- --file bip39_tests.ml Subject: BIP39 seed phrases. Mnemonic sentences for the generation of deterministic wallets. *) diff --git a/src/lib_client_base/test/pbkdf_tests.ml b/src/lib_client_base/test/pbkdf_tests.ml index 6180d17a004adcef449d0c2cf5bbd7bd086a494d..99b0f2b766cf50d1c8e51cb195e23aafe9380576 100644 --- a/src/lib_client_base/test/pbkdf_tests.ml +++ b/src/lib_client_base/test/pbkdf_tests.ml @@ -1,7 +1,8 @@ (** Testing ------- Component: Client Base - Invocation: dune exec src/lib_client_base/test/main.exe + Invocation: dune exec src/lib_client_base/test/main.exe \ + -- --file pbkdf_tests.ml Subject: On Password-Based Key Derivation Function 2 (PBKDF2) when using hash functions SHA256 and SHA512. *) diff --git a/src/lib_client_base_unix/test/test_mockup_wallet.ml b/src/lib_client_base_unix/test/test_mockup_wallet.ml index a0bb0b0c9472e762498cb0a908b37f75c6af41cb..42a24abffd1840d48c5df144958918755536e09c 100644 --- a/src/lib_client_base_unix/test/test_mockup_wallet.ml +++ b/src/lib_client_base_unix/test/test_mockup_wallet.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Mockup wallet library - Invocation: dune exec src/lib_client_base_unix/test/main.exe + Invocation: dune exec src/lib_client_base_unix/test/main.exe \ + -- --file test_mockup_wallet.ml Subject: Unit tests of the Mockup wallet library *) diff --git a/src/lib_context/test/test_context.ml b/src/lib_context/test/test_context.ml index d4d021e376dacae1dc7d5590cd45c71e22afdc81..e1ef3093c1f0363da0cb58a8251d69ce0a93b319 100644 --- a/src/lib_context/test/test_context.ml +++ b/src/lib_context/test/test_context.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Context - Invocation: dune exec src/lib_context/test/main.exe + Invocation: dune exec src/lib_context/test/main.exe \ + -- --file test_context.ml Subject: On context features. *) diff --git a/src/lib_context/test/test_merkle_proof.ml b/src/lib_context/test/test_merkle_proof.ml index d5e48ab35d11556d1a4a90cb565db14e7196560f..229c2444ead46a797933d61772c74b0f10b96b67 100644 --- a/src/lib_context/test/test_merkle_proof.ml +++ b/src/lib_context/test/test_merkle_proof.ml @@ -23,6 +23,14 @@ (* *) (*****************************************************************************) +(* Testing + ------- + Component: Context + Invocation: dune exec src/lib_context/test/main.exe \ + -- --file test_merkle_proof.ml + Subject: Test merkle proof. +*) + open Tezos_context_disk open Context.Proof open Qcheck2_helpers diff --git a/src/lib_dac_node/test/dune b/src/lib_dac_node/test/dune index a6aef6adf8b524453b90de97f3e706084baa7425..875801c6fd7f3d0093bb6080ce67edd120dfc264 100644 --- a/src/lib_dac_node/test/dune +++ b/src/lib_dac_node/test/dune @@ -26,7 +26,7 @@ -open Tezos_base_test_helpers -open Tezos_dac_node_lib -open Octez_alcotezt) - (modules test_main test_data_streamer)) + (modules test_data_streamer)) (executable (name main) diff --git a/src/lib_dac_node/test/test_data_streamer.ml b/src/lib_dac_node/test/test_data_streamer.ml index 1dd820cc39e7722047a62366f144a7b5639dcb90..234d66378b8e92f84e81d02b08d5b75956360f28 100644 --- a/src/lib_dac_node/test/test_data_streamer.ml +++ b/src/lib_dac_node/test/test_data_streamer.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Lib_dac_node Data_streamer - Invocation: dune exec src/lib_dac_node/test/main.exe + Invocation: dune exec src/lib_dac_node/test/main.exe \ + -- --file test_data_streamer.ml Subject: Tests for the data streamer component. *) @@ -113,3 +114,7 @@ let tests = `Quick test_closing_subscriber_stream; ] + +let () = + Alcotest_lwt.run ~__FILE__ "lib_dac_node" [("Data_streamer.ml", tests)] + |> Lwt_main.run diff --git a/src/lib_dac_node/test/test_main.ml b/src/lib_dac_node/test/test_main.ml deleted file mode 100644 index f782c821362ecc60b455a0996cd3b92bcf750767..0000000000000000000000000000000000000000 --- a/src/lib_dac_node/test/test_main.ml +++ /dev/null @@ -1,59 +0,0 @@ -(*****************************************************************************) -(* *) -(* Open Source License *) -(* Copyright (c) 2023 Marigold *) -(* *) -(* Permission is hereby granted, free of charge, to any person obtaining a *) -(* copy of this software and associated documentation files (the "Software"),*) -(* to deal in the Software without restriction, including without limitation *) -(* the rights to use, copy, modify, merge, publish, distribute, sublicense, *) -(* and/or sell copies of the Software, and to permit persons to whom the *) -(* Software is furnished to do so, subject to the following conditions: *) -(* *) -(* The above copyright notice and this permission notice shall be included *) -(* in all copies or substantial portions of the Software. *) -(* *) -(* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR*) -(* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *) -(* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL *) -(* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER*) -(* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING *) -(* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER *) -(* DEALINGS IN THE SOFTWARE. *) -(* *) -(*****************************************************************************) - -(** Testing - ------- - Component: Lib_dac_node Data_streamer - Invocation: dune exec src/lib_dac_node/test/main.exe - Subject: Tests for the data streamer component. -*) - -module Unit_test : sig - (** - * Example: [spec "Data_streamer.ml" Test_data_streamer.tests] - * Unit tests needs tag in log (like "[UNIT] some test description here...") - * This function handles such meta data *) - val spec : - string -> - unit Alcotest_lwt.test_case list -> - string * unit Alcotest_lwt.test_case list - - (** Tests with description string without [Unit] are skipped *) - val _skip : - string -> - unit Alcotest_lwt.test_case list -> - string * unit Alcotest_lwt.test_case list -end = struct - let spec unit_name test_cases = ("[Unit] " ^ unit_name, test_cases) - - let _skip unit_name test_cases = ("[SKIPPED] " ^ unit_name, test_cases) -end - -let () = - Alcotest_lwt.run - ~__FILE__ - "protocol > unit" - [Unit_test.spec "Data_streamer.ml" Test_data_streamer.tests] - |> Lwt_main.run diff --git a/src/lib_error_monad/test/test_registration.ml b/src/lib_error_monad/test/test_registration.ml index 672bdfebfa3f3b188b65e28871bb42e6f21b5a7e..13b18d8fa96b3b2232050bbd11b52810e732e4f6 100644 --- a/src/lib_error_monad/test/test_registration.ml +++ b/src/lib_error_monad/test/test_registration.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Error Monad - Invocation: dune exec src/lib_error_monad/test/main.exe + Invocation: dune exec src/lib_error_monad/test/main.exe \ + -- --file test_registration.ml Subject: On the registration and query of errors. *) diff --git a/src/lib_error_monad/test/test_splitted_error_encoding.ml b/src/lib_error_monad/test/test_splitted_error_encoding.ml index f0f363e684b5001a7aba1e9a02c397797b0fa88f..177185f07e4fb3ac5ee2840bb4402b88337b3596 100644 --- a/src/lib_error_monad/test/test_splitted_error_encoding.ml +++ b/src/lib_error_monad/test/test_splitted_error_encoding.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Error Monad - Invocation: dune exec src/lib_error_monad/test/main.exe + Invocation: dune exec src/lib_error_monad/test/main.exe \ + -- --file test_splitted_error_encoding.ml Subject: On the wrapping of error_encoding in a splitted. *) diff --git a/src/lib_layer2_store/test/test_indexed_store.ml b/src/lib_layer2_store/test/test_indexed_store.ml index f56c43002ca2050819c6061e41f20cb0b313a62a..f66c15b10063cf1b3c41114d38b61d1651001ed8 100644 --- a/src/lib_layer2_store/test/test_indexed_store.ml +++ b/src/lib_layer2_store/test/test_indexed_store.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Layer-2 indexed store - Invocation: dune exec src/lib_layer2_store/test/main.exe + Invocation: dune exec src/lib_layer2_store/test/main.exe \ + -- --file test_indexed_store.ml Subject: Test the indexed store *) diff --git a/src/lib_lazy_containers/test/chunked_byte_vector_tests.ml b/src/lib_lazy_containers/test/chunked_byte_vector_tests.ml index d6f4384d5ac89bdbeb3563477d7399deeac8e3d4..2801652202d9520fe073cfc19acd6421f8f1b46f 100644 --- a/src/lib_lazy_containers/test/chunked_byte_vector_tests.ml +++ b/src/lib_lazy_containers/test/chunked_byte_vector_tests.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Lazy containers - Invocation: dune exec src/lib_lazy_containers/test/main.exe + Invocation: dune exec src/lib_lazy_containers/test/main.exe \ + -- --file chunked_byte_vector_tests.ml Subject: Test chunked byte vector *) diff --git a/src/lib_lazy_containers/test/lazy_vector_tests.ml b/src/lib_lazy_containers/test/lazy_vector_tests.ml index e13e59832dc4103aef8bfa3b5e3805e84a073cff..162aecfc299c01042b0efa89f12aed4af79865b3 100644 --- a/src/lib_lazy_containers/test/lazy_vector_tests.ml +++ b/src/lib_lazy_containers/test/lazy_vector_tests.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Lazy containers - Invocation: dune exec src/lib_lazy_containers/test/main.exe + Invocation: dune exec src/lib_lazy_containers/test/main.exe \ + -- --file lazy_vector_tests.ml Subject: Test lazy vector *) diff --git a/src/lib_lwt_result_stdlib/test/test_fuzzing_list_against_stdlib.ml b/src/lib_lwt_result_stdlib/test/test_fuzzing_list_against_stdlib.ml index 264ccafe1857571d6c284bad0a0e3987ce62fc4e..a31d607ea1347637144cc4ba787d31fd41e3160a 100644 --- a/src/lib_lwt_result_stdlib/test/test_fuzzing_list_against_stdlib.ml +++ b/src/lib_lwt_result_stdlib/test/test_fuzzing_list_against_stdlib.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Stdlib - Invocation: dune exec src/lib_lwt_result_stdlib/test/main.exe + Invocation: dune exec src/lib_lwt_result_stdlib/test/main.exe \ + -- --file test_fuzzing_list_against_stdlib.ml Subject: Test fuzzing list against stdlib *) diff --git a/src/lib_lwt_result_stdlib/test/test_fuzzing_map_against_stdlib.ml b/src/lib_lwt_result_stdlib/test/test_fuzzing_map_against_stdlib.ml index 42f78ea0dd806eb5054dd7c71ec287cc4a5e3503..da35a48f5c84f90885383f2cd7f9c97aa7c4421b 100644 --- a/src/lib_lwt_result_stdlib/test/test_fuzzing_map_against_stdlib.ml +++ b/src/lib_lwt_result_stdlib/test/test_fuzzing_map_against_stdlib.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Stdlib - Invocation: dune exec src/lib_lwt_result_stdlib/test/main.exe + Invocation: dune exec src/lib_lwt_result_stdlib/test/main.exe \ + -- --file test_fuzzing_map_against_stdlib.ml Subject: Test fuzzing map against stdlib *) diff --git a/src/lib_lwt_result_stdlib/test/test_fuzzing_option_against_stdlib.ml b/src/lib_lwt_result_stdlib/test/test_fuzzing_option_against_stdlib.ml index 73af1e8da7c6945301ea0bd0ec910d0ace07b2fe..f2e4a3adece0805b2de7909d2716b2c51943ba13 100644 --- a/src/lib_lwt_result_stdlib/test/test_fuzzing_option_against_stdlib.ml +++ b/src/lib_lwt_result_stdlib/test/test_fuzzing_option_against_stdlib.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Stdlib - Invocation: dune exec src/lib_lwt_result_stdlib/test/main.exe + Invocation: dune exec src/lib_lwt_result_stdlib/test/main.exe \ + -- --file test_fuzzing_option_against_stdlib.ml Subject: Test fuzzing option against stdlib *) diff --git a/src/lib_lwt_result_stdlib/test/test_fuzzing_set_against_stdlib.ml b/src/lib_lwt_result_stdlib/test/test_fuzzing_set_against_stdlib.ml index 9737a0430068aa972b37b8e27b332459f6459909..41b733192d39dfb875d223d514f6367d67988d8e 100644 --- a/src/lib_lwt_result_stdlib/test/test_fuzzing_set_against_stdlib.ml +++ b/src/lib_lwt_result_stdlib/test/test_fuzzing_set_against_stdlib.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Stdlib - Invocation: dune exec src/lib_lwt_result_stdlib/test/main.exe + Invocation: dune exec src/lib_lwt_result_stdlib/test/main.exe \ + -- --file test_fuzzing_set_against_stdlib.ml Subject: Test fuzzing set against stdlib *) diff --git a/src/lib_lwt_result_stdlib/test/test_hashtbl.ml b/src/lib_lwt_result_stdlib/test/test_hashtbl.ml index 4f16bac40df1111c4c466d2aac1a12aa34c40f17..c74eca5a13acde56827322e5be86a246f4dcb487 100644 --- a/src/lib_lwt_result_stdlib/test/test_hashtbl.ml +++ b/src/lib_lwt_result_stdlib/test/test_hashtbl.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Stdlib - Invocation: dune exec src/lib_lwt_result_stdlib/test/main.exe + Invocation: dune exec src/lib_lwt_result_stdlib/test/main.exe \ + -- --file test_hashtbl.ml Subject: Test hashtable *) diff --git a/src/lib_lwt_result_stdlib/test/test_list_basic.ml b/src/lib_lwt_result_stdlib/test/test_list_basic.ml index 1b3e72b5ca55fa662dc2f6dd8e121dcb1e8d9599..8541c914497f0ec26394c3e7a9de1a24c1ee8d1a 100644 --- a/src/lib_lwt_result_stdlib/test/test_list_basic.ml +++ b/src/lib_lwt_result_stdlib/test/test_list_basic.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Stdlib - Invocation: dune exec src/lib_lwt_result_stdlib/test/main.exe + Invocation: dune exec src/lib_lwt_result_stdlib/test/main.exe \ + -- --file test_list_basic.ml Subject: Test basic properties of list *) diff --git a/src/lib_lwt_result_stdlib/test/test_list_basic_lwt.ml b/src/lib_lwt_result_stdlib/test/test_list_basic_lwt.ml index 9b7838850f7709a8939891ffaf4a0d669c9dead1..32771b19daae4b5cf9cc7228108e12f8f03f8282 100644 --- a/src/lib_lwt_result_stdlib/test/test_list_basic_lwt.ml +++ b/src/lib_lwt_result_stdlib/test/test_list_basic_lwt.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Stdlib - Invocation: dune exec src/lib_lwt_result_stdlib/test/main.exe + Invocation: dune exec src/lib_lwt_result_stdlib/test/main.exe \ + -- --file test_list_basic_lwt.ml Subject: Test basic properties of lwt list *) diff --git a/src/lib_lwt_result_stdlib/test/test_seq_basic.ml b/src/lib_lwt_result_stdlib/test/test_seq_basic.ml index 0566ace93a647ceb647b1d9ad3d8bc93684c73c3..e30ad6651e66d392a28fa5e8f9239bace3935b07 100644 --- a/src/lib_lwt_result_stdlib/test/test_seq_basic.ml +++ b/src/lib_lwt_result_stdlib/test/test_seq_basic.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Stdlib - Invocation: dune exec src/lib_lwt_result_stdlib/test/main.exe + Invocation: dune exec src/lib_lwt_result_stdlib/test/main.exe \ + -- --file test_seq_basic.ml Subject: Test basic properties of sequence *) diff --git a/src/lib_mockup/test/test_fuzzing_mockup_args.ml b/src/lib_mockup/test/test_fuzzing_mockup_args.ml index d756013e1bf277b998e00c6a288433ef058a8641..8d477740f2182d567fd10903a74df108836004f2 100644 --- a/src/lib_mockup/test/test_fuzzing_mockup_args.ml +++ b/src/lib_mockup/test/test_fuzzing_mockup_args.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Mockup args library - Invocation: dune exec src/lib_mockup/test/main.exe + Invocation: dune exec src/lib_mockup/test/main.exe \ + -- --file test_fuzzing_mockup_args.ml Subject: Fuzzing tests of the Mockup args library *) diff --git a/src/lib_mockup/test/test_mockup_args.ml b/src/lib_mockup/test/test_mockup_args.ml index 5f318860327f961494dba2a63a5cd8282de128bb..a904d1361c5aa85032fd09d778e85304c76ab8e5 100644 --- a/src/lib_mockup/test/test_mockup_args.ml +++ b/src/lib_mockup/test/test_mockup_args.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Mockup args library - Invocation: dune exec src/lib_mockup/test/main.exe + Invocation: dune exec src/lib_mockup/test/main.exe \ + -- --file test_mockup_args.ml Subject: Unit tests of the Mockup args library *) diff --git a/src/lib_mockup/test/test_persistence.ml b/src/lib_mockup/test/test_persistence.ml index f2c6f0e411b6619f732c88f9cd00f8b79c76c78f..b801b37b9e3e3247f97299206ab3d2e24f66ccb8 100644 --- a/src/lib_mockup/test/test_persistence.ml +++ b/src/lib_mockup/test/test_persistence.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Persistence library - Invocation: dune exec src/lib_mockup/test/main.exe + Invocation: dune exec src/lib_mockup/test/main.exe \ + -- --file test_persistence.ml Subject: Unit tests of the Persistence library *) diff --git a/src/lib_proxy/test/test_fuzzing_light.ml b/src/lib_proxy/test/test_fuzzing_light.ml index b9c51ddbd7587771a898b34be1eabaf3bd412e40..aed9ed3c38a5d14fe9615fe9665e2c96fd5b0ed4 100644 --- a/src/lib_proxy/test/test_fuzzing_light.ml +++ b/src/lib_proxy/test/test_fuzzing_light.ml @@ -27,7 +27,8 @@ ------- Component: Client - Invocation: dune exec src/lib_proxy/test/main.exe + Invocation: dune exec src/lib_proxy/test/main.exe \ + -- --file test_fuzzing_light.ml Dependencies: src/lib_proxy/test/light_lib.ml src/lib_proxy/test/test_light.ml Description: Most generators in this module are recursive / nested, hence diff --git a/src/lib_proxy/test/test_fuzzing_proxy_getter.ml b/src/lib_proxy/test/test_fuzzing_proxy_getter.ml index 7b3ed337778f385779ed557ba36326f5e1e0bfdf..177b395aa44ffd052ba2d94254f81a615264f2c0 100644 --- a/src/lib_proxy/test/test_fuzzing_proxy_getter.ml +++ b/src/lib_proxy/test/test_fuzzing_proxy_getter.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Proxy getter - Invocation: dune exec src/lib_proxy/test/main.exe + Invocation: dune exec src/lib_proxy/test/main.exe \ + -- --file test_fuzzing_proxy_getter.ml Subject: Fuzzing tests of internals of the client's --mode proxy *) diff --git a/src/lib_proxy/test/test_light.ml b/src/lib_proxy/test/test_light.ml index 98aec452be85c32d88811a60cc97f6cf1bde8b5d..52437eec1487783a8fa147100ff23fe3486ebf63 100644 --- a/src/lib_proxy/test/test_light.ml +++ b/src/lib_proxy/test/test_light.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Client - Invocation: dune exec src/lib_proxy/test/main.exe + Invocation: dune exec src/lib_proxy/test/main.exe \ + -- --file test_light.ml Dependencies: src/lib_proxy/test/light_lib.ml *) diff --git a/src/lib_proxy/test/test_proxy.ml b/src/lib_proxy/test/test_proxy.ml index 0520eb2f3e228e6f1fa48c6d6a7eec1bc8022c02..99e76dc5a0c6357ac2353052102a28091f1c7626 100644 --- a/src/lib_proxy/test/test_proxy.ml +++ b/src/lib_proxy/test/test_proxy.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Client - Invocation: dune exec src/lib_proxy/test/main.exe + Invocation: dune exec src/lib_proxy/test/main.exe \ + -- --file test_proxy.ml Subject: --mode proxy of the client *) diff --git a/src/lib_proxy_server_config/test/test_proxy_server_config.ml b/src/lib_proxy_server_config/test/test_proxy_server_config.ml index 753679c3e869baf74e3d81b6ea72b38da10989eb..493dfafd6d19d4780406d2ded7f854346e485603 100644 --- a/src/lib_proxy_server_config/test/test_proxy_server_config.ml +++ b/src/lib_proxy_server_config/test/test_proxy_server_config.ml @@ -27,7 +27,8 @@ ------- Component: Client - Invocation: dune exec src/lib_proxy_server_config/test/main.exe + Invocation: dune exec src/lib_proxy_server_config/test/main.exe \ + -- --file test_proxy_server_config.ml Description: Test various functions and types regarding the configuration of [tezos-proxy-server] *) diff --git a/src/lib_requester/test/test_fuzzing_requester.ml b/src/lib_requester/test/test_fuzzing_requester.ml index 59178c0ec78f3736da24746e6af740458ee68791..f9991d6ac19cc2670398045376ecc9bd50b06885 100644 --- a/src/lib_requester/test/test_fuzzing_requester.ml +++ b/src/lib_requester/test/test_fuzzing_requester.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Requester - Invocation: dune exec src/lib_requester/test/main.exe + Invocation: dune exec src/lib_requester/test/main.exe \ + -- --file test_fuzzing_requester.ml Subject: Relations between functions of [Requester]'s API *) diff --git a/src/lib_requester/test/test_requester.ml b/src/lib_requester/test/test_requester.ml index 0fc339227e90ec9b8bb64f52cc046ae9cb871569..97cee65804835422ba2a07a1152270def737a860 100644 --- a/src/lib_requester/test/test_requester.ml +++ b/src/lib_requester/test/test_requester.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Requester - Invocation: dune exec src/lib_requester/test/main.exe + Invocation: dune exec src/lib_requester/test/main.exe \ + -- --file test_requester.ml Subject: Basic behaviors of the API for generic resource fetching/requesting service. Instantiating the [Requester] functor with simple mocks. diff --git a/src/lib_rpc_http/test/test_rpc_http.ml b/src/lib_rpc_http/test/test_rpc_http.ml index d5fef0fbff287ec08c2de2b5c44e63a07b54f92d..3fc7e7e3b09f6b8dd6de0dc71a8eb1477deb7078 100644 --- a/src/lib_rpc_http/test/test_rpc_http.ml +++ b/src/lib_rpc_http/test/test_rpc_http.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: RPC-HTTP - Invocation: dune exec src/lib_rpc_http/test/main.exe + Invocation: dune exec src/lib_rpc_http/test/main.exe \ + -- --file test_rpc_http.ml Subject: Basic unit tests for HTTP server running RPC services. These tests concern themselves mainly with ACL feature diff --git a/src/lib_shell/test/dune b/src/lib_shell/test/dune index 8bf2e9828ee3ebf6a53e88f072507cb7c8ee370a..5c22cfd320bd1ef362dc2f8467f87a7bc5f68b85 100644 --- a/src/lib_shell/test/dune +++ b/src/lib_shell/test/dune @@ -59,7 +59,6 @@ test_prevalidator_classification_operations test_prevalidator_pending_operations test_protocol_validator - test_shell test_shell_operation test_synchronisation_heuristic test_synchronisation_heuristic_fuzzy diff --git a/src/lib_shell/test/test_consensus_heuristic.ml b/src/lib_shell/test/test_consensus_heuristic.ml index 3c4831bc3eb3fca864cde675f078320e17f96237..b35629ca621287777ba6e14aa6821f6ac3045a7a 100644 --- a/src/lib_shell/test/test_consensus_heuristic.ml +++ b/src/lib_shell/test/test_consensus_heuristic.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Shell - Invocation: dune exec src/lib_shell/test/main.exe + Invocation: dune exec src/lib_shell/test/main.exe \ + -- --file test_consensus_heuristic.ml Subject: Test the consensus heuristic *) @@ -374,3 +375,10 @@ let tests_lwt = List.map (fun (s, f) -> Alcotest_lwt.test_case s `Quick f) tests_worker_lwt_raw + +let () = + Alcotest_lwt.run + ~__FILE__ + "tezos-shell" + [("consensus heuristic sync", tests); ("consensus heuristic", tests_lwt)] + |> Lwt_main.run diff --git a/src/lib_shell/test/test_node.ml b/src/lib_shell/test/test_node.ml index b2d664f614c7048e4de30145c33a13ee43ef75c5..53e356ff51a6124f4bc1bda02d8015265bba9054 100644 --- a/src/lib_shell/test/test_node.ml +++ b/src/lib_shell/test/test_node.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Shell (Node) - Invocation: dune exec src/lib_shell/test/main.exe + Invocation: dune exec src/lib_shell/test/main.exe \ + -- --file test_node.ml Dependencies: src/lib_shell/test/shell_test_helpers.ml Subject: Unit tests for node. Currently only tests that events are emitted. @@ -231,3 +232,7 @@ let tests = `Quick (wrap node_initialization_events); ] + +let () = + Alcotest_lwt.run ~__FILE__ "tezos-shell" [("test node", tests)] + |> Lwt_main.run diff --git a/src/lib_shell/test/test_peer_validator.ml b/src/lib_shell/test/test_peer_validator.ml index f26fd5153614386f5f8aba09d5067a7215c685c4..65a559241d81725ad90c89b0db198801d13b9fe2 100644 --- a/src/lib_shell/test/test_peer_validator.ml +++ b/src/lib_shell/test/test_peer_validator.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Peer_validator - Invocation: dune exec src/lib_shell/test/main.exe + Invocation: dune exec src/lib_shell/test/main.exe \ + -- --file test_peer_validator.ml Subject: Unit tests for [Peer_validator] *) @@ -93,7 +94,16 @@ let wrap chain_db Tezos_crypto.Crypto_box.Public_key_hash.zero in - f chain_db genesis_header pv) + let* () = + Lwt.finalize + (fun () -> f chain_db genesis_header pv) + (fun () -> + let*! () = Peer_validator.shutdown pv in + let*! () = Block_validator_process.close block_validator_processs in + let*! () = Block_validator.shutdown block_validator in + unit) + in + return_unit) (* This test ensure that [validate_new_head hash header] remove all entries of [hash] in the db if the fitness does not increase. *) diff --git a/src/lib_shell/test/test_prevalidation.ml b/src/lib_shell/test/test_prevalidation.ml index 4cbbf7477bef2a132cebfda6e818557050cfb401..954b210c28588863dea70b9f518bff401fd89b01 100644 --- a/src/lib_shell/test/test_prevalidation.ml +++ b/src/lib_shell/test/test_prevalidation.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Prevalidation - Invocation: dune exec src/lib_shell/test/main.exe -- -f test_prevalidation.ml + Invocation: dune exec src/lib_shell/test/main.exe \ + -- --file test_prevalidation.ml Subject: Unit tests for {!Prevalidation.T} *) diff --git a/src/lib_shell/test/test_prevalidator_classification.ml b/src/lib_shell/test/test_prevalidator_classification.ml index 546423b22dc1c109835f4fa056ac93a570855607..75d2c5cda67691f91b3dce8ad5a6a3b68f38e31a 100644 --- a/src/lib_shell/test/test_prevalidator_classification.ml +++ b/src/lib_shell/test/test_prevalidator_classification.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Shell (Prevalidator classification) - Invocation: dune exec src/lib_shell/test/main.exe + Invocation: dune exec src/lib_shell/test/main.exe \ + -- --file test_prevalidator_classification.ml Subject: Unit tests the Prevalidator classification APIs *) diff --git a/src/lib_shell/test/test_prevalidator_classification_operations.ml b/src/lib_shell/test/test_prevalidator_classification_operations.ml index 4abbd3a724a70ce0b1dfa57b4f2cd9b6b0ff8dcd..cceef875844455f7993a9d736cafc97a25181151 100644 --- a/src/lib_shell/test/test_prevalidator_classification_operations.ml +++ b/src/lib_shell/test/test_prevalidator_classification_operations.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Shell (Prevalidator) - Invocation: dune exec src/lib_shell/test/main.exe + Invocation: dune exec src/lib_shell/test/main.exe \ + -- --file test_prevalidator_classification_operations.ml Subject: Unit tests [Prevalidator_classification.Internal_for_tests.handle_live_operations] and [Prevalidator_classification.recyle_operations] *) diff --git a/src/lib_shell/test/test_prevalidator_pending_operations.ml b/src/lib_shell/test/test_prevalidator_pending_operations.ml index edddc7e32821a305498e632c35f2d2452b928e58..1336bf734c25e908163b19064365d00c191e9bdf 100644 --- a/src/lib_shell/test/test_prevalidator_pending_operations.ml +++ b/src/lib_shell/test/test_prevalidator_pending_operations.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Shell (Prevalidator pending operations) - Invocation: dune exec src/lib_shell/test/main.exe + Invocation: dune exec src/lib_shell/test/main.exe \ + -- --file test_prevalidator_pending_operations.ml Subject: Unit tests the Prevalidator pending operations APIs *) diff --git a/src/lib_shell/test/test_protocol_validator.ml b/src/lib_shell/test/test_protocol_validator.ml index 7110853a4ae0c626ecb5579d3890b63680949e83..6292f9f7422828ff45e8bf2666ff5cfb7a8d8575 100644 --- a/src/lib_shell/test/test_protocol_validator.ml +++ b/src/lib_shell/test/test_protocol_validator.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Shell - Invocation: dune exec src/lib_shell/test/main.exe + Invocation: dune exec src/lib_shell/test/main.exe \ + -- --file test_protocol_validator.ml Subject: Unit tests for protocol_validator. Currently only tests that events are emitted. *) @@ -182,3 +183,7 @@ let tests = `Quick (wrap test_fetching_protocol); ] + +let () = + Alcotest_lwt.run ~__FILE__ "tezos-shell" [("test validator", tests)] + |> Lwt_main.run diff --git a/src/lib_shell/test/test_shell.ml b/src/lib_shell/test/test_shell.ml deleted file mode 100644 index 23bfeedc37d9ae955fe74c3da11acfe6c227ccf4..0000000000000000000000000000000000000000 --- a/src/lib_shell/test/test_shell.ml +++ /dev/null @@ -1,48 +0,0 @@ -(*****************************************************************************) -(* *) -(* Open Source License *) -(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. *) -(* Copyright (c) 2020 Nomadic Labs *) -(* *) -(* Permission is hereby granted, free of charge, to any person obtaining a *) -(* copy of this software and associated documentation files (the "Software"),*) -(* to deal in the Software without restriction, including without limitation *) -(* the rights to use, copy, modify, merge, publish, distribute, sublicense, *) -(* and/or sell copies of the Software, and to permit persons to whom the *) -(* Software is furnished to do so, subject to the following conditions: *) -(* *) -(* The above copyright notice and this permission notice shall be included *) -(* in all copies or substantial portions of the Software. *) -(* *) -(* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR*) -(* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *) -(* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL *) -(* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER*) -(* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING *) -(* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER *) -(* DEALINGS IN THE SOFTWARE. *) -(* *) -(*****************************************************************************) - -(** Testing - ------- - Component: Shell - Invocation: dune exec src/lib_shell/test/main.exe - Subject: Entrypoint of tests, delegates to other files in the - enclosing directory. -*) - -let () = - Alcotest_lwt.run - ~__FILE__ - "tezos-shell" - [ - ("synchronisation heuristic sync", Test_synchronisation_heuristic.tests); - ("synchronisation heuristic", Test_synchronisation_heuristic.tests_lwt); - ("consensus heuristic sync", Test_consensus_heuristic.tests); - ("consensus heuristic", Test_consensus_heuristic.tests_lwt); - ("test protocol validator", Test_protocol_validator.tests); - ("test validator", Test_validator.tests); - ("test node", Test_node.tests); - ] - |> Lwt_main.run diff --git a/src/lib_shell/test/test_shell_operation.ml b/src/lib_shell/test/test_shell_operation.ml index c375cadf9faa81c7218fe663ebd18211ec55be11..455451eab6eee2cd51cb3fcb8eba1c535c345648 100644 --- a/src/lib_shell/test/test_shell_operation.ml +++ b/src/lib_shell/test/test_shell_operation.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Shell_operation and others - Invocation: dune exec src/lib_shell/test/main.exe + Invocation: dune exec src/lib_shell/test/main.exe \ + -- --file test_shell_operation.ml Subject: Unit tests for [Shell_operation], and for other components e.g. [Requester] when the tests rely on the operation representation provided by diff --git a/src/lib_shell/test/test_synchronisation_heuristic.ml b/src/lib_shell/test/test_synchronisation_heuristic.ml index edba7f9f0e55db320fa1328e86f423959a4de6ac..8734baa64a06b7a320d864f73bb710b350719766 100644 --- a/src/lib_shell/test/test_synchronisation_heuristic.ml +++ b/src/lib_shell/test/test_synchronisation_heuristic.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Shell - Invocation: dune exec src/lib_shell/test/main.exe + Invocation: dune exec src/lib_shell/test/main.exe \ + -- --file test_synchronisation_heuristic.ml Subject: Test the synchronisation heuristic *) @@ -688,3 +689,13 @@ let tests_lwt_raw : (string * (Lwt_switch.t -> unit -> unit Lwt.t)) list = let tests_lwt = List.map (fun (s, f) -> Alcotest_lwt.test_case s `Quick f) tests_lwt_raw + +let () = + Alcotest_lwt.run + ~__FILE__ + "tezos-shell" + [ + ("synchronisation heuristic sync", tests); + ("synchronisation heuristic ", tests_lwt); + ] + |> Lwt_main.run diff --git a/src/lib_shell/test/test_synchronisation_heuristic_fuzzy.ml b/src/lib_shell/test/test_synchronisation_heuristic_fuzzy.ml index 2d10e704d09339eb41d0e5c05a4a43ac5e80ee9c..1960fa0653f537344f65a4bea4d1c6b24ef23bcd 100644 --- a/src/lib_shell/test/test_synchronisation_heuristic_fuzzy.ml +++ b/src/lib_shell/test/test_synchronisation_heuristic_fuzzy.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Shell - Invocation: dune exec src/lib_shell/test/main.exe + Invocation: dune exec src/lib_shell/test/main.exe \ + -- --file test_synchronisation_heuristic_fuzzy.ml Subject: Test the synchronisation heuristic with a reference implementation *) diff --git a/src/lib_shell/test/test_validator.ml b/src/lib_shell/test/test_validator.ml index 17f8cf4532c08bb193954c81029fee2c62961916..c9cb5797e67d32199b04887a980406c0361d8f4d 100644 --- a/src/lib_shell/test/test_validator.ml +++ b/src/lib_shell/test/test_validator.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Shell (Validator) - Invocation: dune exec src/lib_shell/test/main.exe + Invocation: dune exec src/lib_shell/test/main.exe \ + -- --file test_validator.ml Subject: Unit tests for validator. Currently only tests that events are emitted. *) @@ -148,3 +149,7 @@ let validator_events validator block_validator chain _switch () = let tests = [Alcotest_lwt.test_case "validator_events" `Quick (wrap validator_events)] + +let () = + Alcotest_lwt.run ~__FILE__ "tezos-shell" [("test validator", tests)] + |> Lwt_main.run diff --git a/src/lib_shell_services/test/test_block_services.ml b/src/lib_shell_services/test/test_block_services.ml index cdda08153084008789319d0e8be8e74f6bb03a28..26ed894f6a621021003b420178b71859154aa064 100644 --- a/src/lib_shell_services/test/test_block_services.ml +++ b/src/lib_shell_services/test/test_block_services.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Block_services - Invocation: dune exec src/lib_shell_services/test/main.exe + Invocation: dune exec src/lib_shell_services/test/main.exe \ + -- --file test_block_services.ml Subject: Unit tests for [Block_services] *) diff --git a/src/lib_signer_backends/test/test_encrypted.ml b/src/lib_signer_backends/test/test_encrypted.ml index 7aa58b9806d44e6a4b6fd4f1d67482d44f672480..fa04352eaf5cb8a4ce38107f9ff74007b995ce4a 100644 --- a/src/lib_signer_backends/test/test_encrypted.ml +++ b/src/lib_signer_backends/test/test_encrypted.ml @@ -10,7 +10,8 @@ (** Testing ------- Component: Remote-signature Backends - Invocation: dune exec src/lib_signer_backends/test/main.exe + Invocation: dune exec src/lib_signer_backends/test/main.exe \ + -- --file test_encrypted.ml Subject: On secret keys and URIs. *) diff --git a/src/lib_stdlib/test-unix/test_circular_buffer.ml b/src/lib_stdlib/test-unix/test_circular_buffer.ml index c5e86a93ebb37af2d5004df4dee21c9936ca2a41..5d033a2a9c16c1939bd76ee39bc3fb10ca2d300e 100644 --- a/src/lib_stdlib/test-unix/test_circular_buffer.ml +++ b/src/lib_stdlib/test-unix/test_circular_buffer.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: stdlib - Invocation: dune exec src/lib_stdlib/test-unix/main.exe + Invocation: dune exec src/lib_stdlib/test-unix/main.exe \ + -- --file test_circular_buffer.ml Subject: On circular buffer *) diff --git a/src/lib_stdlib/test-unix/test_circular_buffer_fuzzy.ml b/src/lib_stdlib/test-unix/test_circular_buffer_fuzzy.ml index b6d748673bf6af6e87fad54dbf601600af3f68a0..7b9a45f24a6c639b2a1edd141d3a0c214b71c840 100644 --- a/src/lib_stdlib/test-unix/test_circular_buffer_fuzzy.ml +++ b/src/lib_stdlib/test-unix/test_circular_buffer_fuzzy.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: stdlib - Invocation: dune exec src/lib_stdlib/test-unix/main.exe + Invocation: dune exec src/lib_stdlib/test-unix/main.exe \ + -- --file test_circular_buffer_fuzzy.ml Subject: Test the circular buffer with a reference implementation *) diff --git a/src/lib_stdlib/test-unix/test_hash_queue_lwt.ml b/src/lib_stdlib/test-unix/test_hash_queue_lwt.ml index bb0ad371f89c5bc8af3134fef3b79204b8d23c85..a8f0a61d0966c0c4b3ba1b62ef41302a871d3321 100644 --- a/src/lib_stdlib/test-unix/test_hash_queue_lwt.ml +++ b/src/lib_stdlib/test-unix/test_hash_queue_lwt.ml @@ -23,6 +23,14 @@ (* *) (*****************************************************************************) +(** Testing + ------- + Component: Stdlib + Invocation: dune exec src/lib_stdlib/test-unix/main.exe \ + -- --file test_hash_queue_lwt.ml + Subject: Hash_queue +*) + module String = struct include String diff --git a/src/lib_stdlib/test-unix/test_lwt_pipe.ml b/src/lib_stdlib/test-unix/test_lwt_pipe.ml index 1692c803a8ccdcd80d7f86e633d466403be0289e..ddba8b380927529d7a49693b99f08efc4cac25b7 100644 --- a/src/lib_stdlib/test-unix/test_lwt_pipe.ml +++ b/src/lib_stdlib/test-unix/test_lwt_pipe.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Stdlib - Invocation: dune exec src/lib_stdlib/test-unix/main.exe + Invocation: dune exec src/lib_stdlib/test-unix/main.exe \ + -- --file test_lwt_pipe.ml Subject: Lwt_pipe *) diff --git a/src/lib_stdlib/test/test_bits.ml b/src/lib_stdlib/test/test_bits.ml index 3622ddf84a030948ae8a4c09e9fd17394e82f4b5..e9bc9bb3d7ef3773f250df2346ccc5c70a563036 100644 --- a/src/lib_stdlib/test/test_bits.ml +++ b/src/lib_stdlib/test/test_bits.ml @@ -28,7 +28,8 @@ open Utils.Infix (** Testing ------- Component: stdlib - Invocation: dune exec src/lib_stdlib/test/main.exe + Invocation: dune exec src/lib_stdlib/test/main.exe \ + -- --file test_bits.ml Subject: On fast numbits implementation *) diff --git a/src/lib_stdlib/test/test_fallbackArray.ml b/src/lib_stdlib/test/test_fallbackArray.ml index 53f5d8199fd6a23832eee5379b236350d47618b5..753a069b2a7a3e73a8334bfd6e2c5438185b15ec 100644 --- a/src/lib_stdlib/test/test_fallbackArray.ml +++ b/src/lib_stdlib/test/test_fallbackArray.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: stdlib - Invocation: dune exec src/lib_stdlib/test/main.exe + Invocation: dune exec src/lib_stdlib/test/main.exe \ + -- --file test_fallbackArray.ml Subject: Fallback arrays *) diff --git a/src/lib_stdlib/test/test_functionalArray.ml b/src/lib_stdlib/test/test_functionalArray.ml index 3da44b2a7923029bd9601a56729d95bbb297fe4e..567da45a125516be22e0103e456b9d4352e63f4e 100644 --- a/src/lib_stdlib/test/test_functionalArray.ml +++ b/src/lib_stdlib/test/test_functionalArray.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: stdlib - Invocation: dune exec src/lib_stdlib/test/main.exe + Invocation: dune exec src/lib_stdlib/test/main.exe \ + -- --file test_functionalArray.ml Subject: Functional arrays *) diff --git a/src/lib_stdlib/test/test_tzBytes.ml b/src/lib_stdlib/test/test_tzBytes.ml index 1467689052152a428e09d783b0977b84ef84efdc..fe1b7c17f2ec8525419e385b3789ae88f3c0cd7c 100644 --- a/src/lib_stdlib/test/test_tzBytes.ml +++ b/src/lib_stdlib/test/test_tzBytes.ml @@ -26,7 +26,8 @@ (** Testing _______ - Invocation: dune exec src/lib_stdlib/test/main.exe + Invocation: dune exec src/lib_stdlib/test/main.exe \ + -- --file test_tzBytes.ml Subject: Bitwise byte operation and Bytes <=> nat/int conversion *) diff --git a/src/lib_stdlib_unix/test/test_key_value_store_fuzzy.ml b/src/lib_stdlib_unix/test/test_key_value_store_fuzzy.ml index 1a972cbd34cab353e6fe05c9b3cff229faedef95..55610cf563a6c5c13b86ad16b9d97a93b06341c4 100644 --- a/src/lib_stdlib_unix/test/test_key_value_store_fuzzy.ml +++ b/src/lib_stdlib_unix/test/test_key_value_store_fuzzy.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Key-value store - Invocation: dune exec src/lib_store_common/unix/test/test_key_value_store_fuzzy.exe + Invocation: dune exec src/lib_stdlib_unix/test/main.exe \ + -- --file test_key_value_store_fuzzy.ml Subject: Test the key-value store *) diff --git a/src/lib_tree_encoding/test/dune b/src/lib_tree_encoding/test/dune index 33e6d45fe54489329f00f746f96320880ab170ab..abd279788ad3e38b5ad34347d6952df700085bc3 100644 --- a/src/lib_tree_encoding/test/dune +++ b/src/lib_tree_encoding/test/dune @@ -24,7 +24,7 @@ -open Tezos_base_test_helpers -open Tezos_test_helpers -open Octez_alcotezt) - (modules test_tree_encoding test_proofs test_encoding)) + (modules test_proofs test_encoding)) (executable (name main) diff --git a/src/lib_tree_encoding/test/test_encoding.ml b/src/lib_tree_encoding/test/test_encoding.ml index e6b743632a8eecef2da53e3a0065605bec790430..1d361e35e1d83c9e7712713ffaca044c585906c8 100644 --- a/src/lib_tree_encoding/test/test_encoding.ml +++ b/src/lib_tree_encoding/test/test_encoding.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Tree_encoding - Invocation: dune exec src/lib_tree_encoding/test/main.exe + Invocation: dune exec src/lib_tree_encoding/test/main.exe \ + -- --file test_encoding.ml Subject: Encoding tests for the tree-encoding library *) @@ -575,3 +576,7 @@ let tests = tztest "Swap maps" `Quick test_swap_maps; tztest "Swap vectors" `Quick test_swap_vectors; ] + +let () = + Alcotest_lwt.run ~__FILE__ "test lib tree encoding" [("Encodings", tests)] + |> Lwt_main.run diff --git a/src/lib_tree_encoding/test/test_proofs.ml b/src/lib_tree_encoding/test/test_proofs.ml index 2951f452bd0d37f17bb2f1319f9f52f4eee3895d..f8a544302eb4faa53ca86c8814f71df1ea049901 100644 --- a/src/lib_tree_encoding/test/test_proofs.ml +++ b/src/lib_tree_encoding/test/test_proofs.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Tree_encoding - Invocation: dune exec src/lib_tree_encoding/test/main.exe + Invocation: dune exec src/lib_tree_encoding/test/main.exe \ + -- --file test_proofs.ml Subject: Proof-related tests for the tree-encoding library *) @@ -230,3 +231,7 @@ let tests = tztest "Decode, set, and move subtree" `Quick test_move_and_read_subtrees; tztest "Copy subtrees" `Quick test_copy_subtrees; ] + +let () = + Alcotest_lwt.run ~__FILE__ "test lib tree encoding" [("Proofs", tests)] + |> Lwt_main.run diff --git a/src/lib_tree_encoding/test/test_tree_encoding.ml b/src/lib_tree_encoding/test/test_tree_encoding.ml deleted file mode 100644 index 4459db8b92e7dc04e4c845555c8c33936af0ed17..0000000000000000000000000000000000000000 --- a/src/lib_tree_encoding/test/test_tree_encoding.ml +++ /dev/null @@ -1,38 +0,0 @@ -(*****************************************************************************) -(* *) -(* Open Source License *) -(* Copyright (c) 2022 Trili Tech *) -(* *) -(* Permission is hereby granted, free of charge, to any person obtaining a *) -(* copy of this software and associated documentation files (the "Software"),*) -(* to deal in the Software without restriction, including without limitation *) -(* the rights to use, copy, modify, merge, publish, distribute, sublicense, *) -(* and/or sell copies of the Software, and to permit persons to whom the *) -(* Software is furnished to do so, subject to the following conditions: *) -(* *) -(* The above copyright notice and this permission notice shall be included *) -(* in all copies or substantial portions of the Software. *) -(* *) -(* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR*) -(* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *) -(* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL *) -(* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER*) -(* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING *) -(* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER *) -(* DEALINGS IN THE SOFTWARE. *) -(* *) -(*****************************************************************************) - -(** Testing - ------- - Component: Lib_tree_encoding - Invocation: dune exec src/lib_tree_encoding/test/main.exe - Subject: Tests for the tree-encoding library -*) - -let () = - Alcotest_lwt.run - ~__FILE__ - "test lib tree encoding" - [("Encodings", Test_encoding.tests); ("Proofs", Test_proofs.tests)] - |> Lwt_main.run diff --git a/src/lib_version/test/test_parser.ml b/src/lib_version/test/test_parser.ml index b9fcc0c42d017027cbe1d84921b7e78a93bda440..142391b5e5c152ba0ae74920d00ddf1ea96ec1f5 100644 --- a/src/lib_version/test/test_parser.ml +++ b/src/lib_version/test/test_parser.ml @@ -26,7 +26,8 @@ (** Testing _______ Component: lib_version - Invocation: dune exec src/lib_version/test/main.exe + Invocation: dune exec src/lib_version/test/main.exe \ + -- --file test_parser.ml Subject: Test versions parser *) diff --git a/src/lib_webassembly/tests/smallint.ml b/src/lib_webassembly/tests/smallint.ml index 91c0eee074b141bb46179341c37ef74b2feef004..4d35afcaa528a9f97afc2162ed2e877fef3b319a 100644 --- a/src/lib_webassembly/tests/smallint.ml +++ b/src/lib_webassembly/tests/smallint.ml @@ -1,7 +1,8 @@ (* Testing ------- Component: WebAssembly - Invocation: dune exec src/lib_webassembly/tests/main.exe + Invocation: dune exec src/lib_webassembly/tests/main.exe \ + -- --file smallint.ml Subject: Test small ints *) diff --git a/src/lib_workers/test/test_workers_unit.ml b/src/lib_workers/test/test_workers_unit.ml index 8409dda9b0d0906f94d9d68b1202056d90cd2ffa..4e3727778b536f68a68500a895c099d0c5d72fdc 100644 --- a/src/lib_workers/test/test_workers_unit.ml +++ b/src/lib_workers/test/test_workers_unit.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Workers - Invocation: dune exec src/lib_workers/test/main.exe + Invocation: dune exec src/lib_workers/test/main.exe \ + -- --file test_workers_unit.ml Subject: Unit tests for [Worker] *) diff --git a/src/proto_016_PtMumbai/lib_client/test/test_client_proto_context.ml b/src/proto_016_PtMumbai/lib_client/test/test_client_proto_context.ml index e178bc95b9091bdae91c4d48cdb01a44883fc0f6..e3331c08f1223765718de5bbdd71f65e56609220 100644 --- a/src/proto_016_PtMumbai/lib_client/test/test_client_proto_context.ml +++ b/src/proto_016_PtMumbai/lib_client/test/test_client_proto_context.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Client - Invocation: dune exec src/proto_016_PtMumbai/lib_client/test/main.exe + Invocation: dune exec src/proto_016_PtMumbai/lib_client/test/main.exe \ + -- --file test_client_proto_context.ml Subject: Tests roundtrips of batch_transfer_operation_encoding *) @@ -65,8 +66,4 @@ let tests = (binary_roundtrip Client_proto_context.batch_transfer_operation_encoding); ] -let () = - Alcotest.run - ~__FILE__ - "Client proto context" - [(Protocol.name ^ ": Encodings", qcheck_wrap tests)] +let () = Alcotest.run ~__FILE__ Protocol.name [("Encodings", qcheck_wrap tests)] diff --git a/src/proto_016_PtMumbai/lib_client/test/test_client_proto_contracts.ml b/src/proto_016_PtMumbai/lib_client/test/test_client_proto_contracts.ml index fecc84a12cf45baae225a98b3e9b3c2e8110ef63..2b0b5d3df90fa29ec26980a73ec3ef21a94690aa 100644 --- a/src/proto_016_PtMumbai/lib_client/test/test_client_proto_contracts.ml +++ b/src/proto_016_PtMumbai/lib_client/test/test_client_proto_contracts.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Client - Invocation: dune exec src/proto_016_PtMumbai/lib_client/test/main.exe + Invocation: dune exec src/proto_016_PtMumbai/lib_client/test/main.exe \ + -- --file test_client_proto_contracts.ml Subject: Unit tests for Client_proto_contracts *) @@ -90,9 +91,9 @@ let test_find_destination _ = let () = Alcotest_lwt.run ~__FILE__ - "tezos-lib-client-proto-contracts" + Protocol.name [ - ( Protocol.name ^ ": client_proto_contracts", + ( "client_proto_contracts", [Tztest.tztest "test_find_destination" `Quick test_find_destination] ); ] |> Lwt_main.run diff --git a/src/proto_016_PtMumbai/lib_client/test/test_michelson_v1_macros.ml b/src/proto_016_PtMumbai/lib_client/test/test_michelson_v1_macros.ml index 23bdd0b7b0cf4c728e1d68c34e36d31e5996c44c..3fc3aab61cf7c8ddf59bd1f473a8e39cca8b1abe 100644 --- a/src/proto_016_PtMumbai/lib_client/test/test_michelson_v1_macros.ml +++ b/src/proto_016_PtMumbai/lib_client/test/test_michelson_v1_macros.ml @@ -27,7 +27,8 @@ (** Testing ------- Component: Client - Invocation: dune exec src/proto_016_PtMumbai/lib_client/test/main.exe + Invocation: dune exec src/proto_016_PtMumbai/lib_client/test/main.exe \ + -- --file test_michelson_v1_macros.ml Dependencies: src/proto_alpha/lib_client/test/assert.ml Subject: Expansion and unexpansion of Micheline terms. *) @@ -1342,6 +1343,6 @@ let wrap (n, f) = let () = Alcotest_lwt.run ~__FILE__ - "tezos-lib-client" - [(Protocol.name ^ ": micheline v1 macros", List.map wrap tests)] + Protocol.name + [("micheline v1 macros", List.map wrap tests)] |> Lwt_main.run diff --git a/src/proto_016_PtMumbai/lib_client/test/test_proxy.ml b/src/proto_016_PtMumbai/lib_client/test/test_proxy.ml index 6d46086941fd57e96a8b710f556f4e2db1b313a1..9d9e7d428571b74fe965f9d9c21fcb6366855791 100644 --- a/src/proto_016_PtMumbai/lib_client/test/test_proxy.ml +++ b/src/proto_016_PtMumbai/lib_client/test/test_proxy.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Client - Invocation: dune exec src/proto_016_PtMumbai/lib_client/test/main.exe + Invocation: dune exec src/proto_016_PtMumbai/lib_client/test/main.exe \ + -- --file test_proxy.ml Subject: Test of --mode proxy and tezos-proxy-server heuristic *) @@ -85,5 +86,5 @@ let test_split_key = let () = Alcotest.run ~__FILE__ - "tezos-lib-client-proxy" - [(Protocol.name ^ ": proxy", Qcheck2_helpers.qcheck_wrap [test_split_key])] + Protocol.name + [("proxy", Qcheck2_helpers.qcheck_wrap [test_split_key])] diff --git a/src/proto_016_PtMumbai/lib_dal/test/test_dac_pages_encoding.ml b/src/proto_016_PtMumbai/lib_dal/test/test_dac_pages_encoding.ml index 90503389264ef61c6790bced30b9ce491c9105ab..495556eed19a102f3be9768f216341c963646512 100644 --- a/src/proto_016_PtMumbai/lib_dal/test/test_dac_pages_encoding.ml +++ b/src/proto_016_PtMumbai/lib_dal/test/test_dac_pages_encoding.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Dal_node Slot_frame_encoding - Invocation: dune exec src/proto_016_PtMumbai/lib_dal/test/main.exe + Invocation: dune exec src/proto_016_PtMumbai/lib_dal/test/main.exe \ + -- --file test_dac_pages_encoding.ml Subject: Tests for the SCORU storage module *) diff --git a/src/proto_016_PtMumbai/lib_dal/test/test_dal_slot_frame_encoding.ml b/src/proto_016_PtMumbai/lib_dal/test/test_dal_slot_frame_encoding.ml index dc1f4bad73c69c653cf612da53f9e344e420f862..47cd36b782d7e83cb8d7616fa6b3c9e2d00fe17f 100644 --- a/src/proto_016_PtMumbai/lib_dal/test/test_dal_slot_frame_encoding.ml +++ b/src/proto_016_PtMumbai/lib_dal/test/test_dal_slot_frame_encoding.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Dal_node Slot_frame_encoding - Invocation: dune exec src/proto_016_PtMumbai/lib_dal/test/main.exe + Invocation: dune exec src/proto_016_PtMumbai/lib_dal/test/main.exe \ + -- --file test_dal_slot_frame_encoding.ml Subject: Tests for the SCORU storage module *) @@ -414,10 +415,6 @@ let tests = let () = Alcotest_lwt.run ~__FILE__ - "protocol > unit" - [ - Test_helpers.Unit_test.spec - (Protocol.name ^ ": Slot_framing_protocol.ml") - tests; - ] + Protocol.name + [Test_helpers.Unit_test.spec "Slot_framing_protocol.ml" tests] |> Lwt_main.run diff --git a/src/proto_016_PtMumbai/lib_delegate/test/test_scenario.ml b/src/proto_016_PtMumbai/lib_delegate/test/test_scenario.ml index 3d4c86686331c280b735661d1861a93e606af80a..385f73961bc5d1b000bd7afeebb73467ac0513d9 100644 --- a/src/proto_016_PtMumbai/lib_delegate/test/test_scenario.ml +++ b/src/proto_016_PtMumbai/lib_delegate/test/test_scenario.ml @@ -1,7 +1,8 @@ (* Testing ------- Component: Protocol, delegate - Invocation: dune exec src/proto_016_PtMumbai/lib_delegate/test/main.exe + Invocation: dune exec src/proto_016_PtMumbai/lib_delegate/test/main.exe \ + -- --file test_scenario.ml Subject: Test different scenario for delegate *) diff --git a/src/proto_016_PtMumbai/lib_plugin/test/test_conflict_handler.ml b/src/proto_016_PtMumbai/lib_plugin/test/test_conflict_handler.ml index d1c17855c5a6da3d7e15e3bb588c299acb7cb950..07468626b1e21d292b4d7d4042bf921c1fc68ff0 100644 --- a/src/proto_016_PtMumbai/lib_plugin/test/test_conflict_handler.ml +++ b/src/proto_016_PtMumbai/lib_plugin/test/test_conflict_handler.ml @@ -26,8 +26,9 @@ (** Testing ------- Component: Plugin.Mempool - Invocation: dune exec src/proto_016_PtMumbai/lib_plugin/test/main.exe - Subject: Unit tests the Mempool.conflict_handler fonction of the plugin + Invocation: dune exec src/proto_016_PtMumbai/lib_plugin/test/main.exe \ + -- --file test_conflict_handler.ml + Subject: Unit tests the Mempool.conflict_handler function of the plugin *) let pp_answer fmt = function @@ -261,9 +262,9 @@ let test_manager_ops () = let () = Alcotest_lwt.run ~__FILE__ - "conflict_handler" + Protocol.name [ - ( Protocol.name ^ ": conflict_handler", + ( "conflict_handler", [ Tztest.tztest "Random operations (not both manager)" diff --git a/src/proto_016_PtMumbai/lib_plugin/test/test_consensus_filter.ml b/src/proto_016_PtMumbai/lib_plugin/test/test_consensus_filter.ml index 1445191ab587d742084d6518beee8373b05c0710..a476f53797bb49c87bdcba169536854ddedf0d03 100644 --- a/src/proto_016_PtMumbai/lib_plugin/test/test_consensus_filter.ml +++ b/src/proto_016_PtMumbai/lib_plugin/test/test_consensus_filter.ml @@ -23,6 +23,14 @@ (* *) (*****************************************************************************) +(** Testing + ------- + Component: Plugin.Mempool + Invocation: dune exec src/proto_016_PtMumbai/lib_plugin/test/main.exe \ + -- --file test_consensus_filter.ml + Subject: Unit tests the Mempool consensus filter +*) + open Qcheck2_helpers open Plugin.Mempool open Alpha_context @@ -434,9 +442,9 @@ let test_not_acceptable_next_level = let () = Alcotest.run ~__FILE__ - "Filter" + Protocol.name [ - ( Protocol.name ^ ": pre_filter", + ( "pre_filter", qcheck_wrap [ test_acceptable_past_level; diff --git a/src/proto_016_PtMumbai/lib_plugin/test/test_filter_state.ml b/src/proto_016_PtMumbai/lib_plugin/test/test_filter_state.ml index b5e13fdb6947945c7c2edaaf136f7b45c131b731..ee39e877a54cc911b79a8a2924e6a7bfc5edda54 100644 --- a/src/proto_016_PtMumbai/lib_plugin/test/test_filter_state.ml +++ b/src/proto_016_PtMumbai/lib_plugin/test/test_filter_state.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Shell (Plugin) - Invocation: dune exec src/proto_016_PtMumbai/lib_plugin/test/main.exe + Invocation: dune exec src/proto_016_PtMumbai/lib_plugin/test/main.exe \ + -- --file test_filter_state.ml Subject: Unit tests the filter state functions of the plugin *) @@ -186,9 +187,8 @@ let test_remove_unknown = let () = Alcotest.run ~__FILE__ - "Filter_state" + Protocol.name [ - (Protocol.name ^ ": add_manager_op", qcheck_wrap [test_add_manager_op]); - ( Protocol.name ^ ": remove", - qcheck_wrap [test_remove_present; test_remove_unknown] ); + ("add_manager_op", qcheck_wrap [test_add_manager_op]); + ("remove", qcheck_wrap [test_remove_present; test_remove_unknown]); ] diff --git a/src/proto_016_PtMumbai/lib_plugin/test/test_plugin.ml b/src/proto_016_PtMumbai/lib_plugin/test/test_plugin.ml index d139236a13a39b0dae181364e10b66cf5c3e0c12..dbb55a3ec11d26971a5b2604812ff047670c17b0 100644 --- a/src/proto_016_PtMumbai/lib_plugin/test/test_plugin.ml +++ b/src/proto_016_PtMumbai/lib_plugin/test/test_plugin.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Shell (Plugin) - Invocation: dune exec src/proto_016_PtMumbai/lib_plugin/test/main.exe + Invocation: dune exec src/proto_016_PtMumbai/lib_plugin/test/main.exe \ + -- --file test_plugin.ml Subject: Unit tests the plugin *) @@ -70,9 +71,9 @@ let test_flush () = let () = Alcotest_lwt.run ~__FILE__ - "Plugin" + Protocol.name [ - ( Protocol.name ^ ": on_flush", + ( "on_flush", [ Tztest.tztest "[on_flush ~validation_state ...] yields an empty state " diff --git a/src/proto_017_PtNairob/lib_client/test/test_client_proto_context.ml b/src/proto_017_PtNairob/lib_client/test/test_client_proto_context.ml index 1437fec988b90d1e1612c29d30ff3656bc8ec97f..a2187640bc1df213103614d9ac1dafacab15e47b 100644 --- a/src/proto_017_PtNairob/lib_client/test/test_client_proto_context.ml +++ b/src/proto_017_PtNairob/lib_client/test/test_client_proto_context.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Client - Invocation: dune exec src/proto_alpha/lib_client/test/test_client_proto_context.exe + Invocation: dune exec src/proto_017_PtNairob/lib_client/test/main.exe \ + -- --file test_client_proto_context.ml Subject: Tests roundtrips of batch_transfer_operation_encoding *) @@ -65,8 +66,4 @@ let tests = (binary_roundtrip Client_proto_context.batch_transfer_operation_encoding); ] -let () = - Alcotest.run - ~__FILE__ - "Client proto context" - [(Protocol.name ^ ": Encodings", qcheck_wrap tests)] +let () = Alcotest.run ~__FILE__ Protocol.name [("Encodings", qcheck_wrap tests)] diff --git a/src/proto_017_PtNairob/lib_client/test/test_client_proto_contracts.ml b/src/proto_017_PtNairob/lib_client/test/test_client_proto_contracts.ml index 74c35ce7ce195ea72e043cd9110d605eea9f7563..41be2bbb7664c55418b9d4ddc343861b2bd9279a 100644 --- a/src/proto_017_PtNairob/lib_client/test/test_client_proto_contracts.ml +++ b/src/proto_017_PtNairob/lib_client/test/test_client_proto_contracts.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Client - Invocation: dune exec src/proto_alpha/lib_client/test/test_client_proto_contracts.exe + Invocation: dune exec src/proto_017_PtNairob/lib_client/test/main.exe \ + -- --file test_client_proto_contracts.ml Subject: Unit tests for Client_proto_contracts *) @@ -90,9 +91,9 @@ let test_find_destination _ = let () = Alcotest_lwt.run ~__FILE__ - "tezos-lib-client-proto-contracts" + Protocol.name [ - ( Protocol.name ^ ": client_proto_contracts", + ( "client_proto_contracts", [Tztest.tztest "test_find_destination" `Quick test_find_destination] ); ] |> Lwt_main.run diff --git a/src/proto_017_PtNairob/lib_client/test/test_michelson_v1_macros.ml b/src/proto_017_PtNairob/lib_client/test/test_michelson_v1_macros.ml index b6874812d00adfc74331f633fee655d6c3700fc0..675def85fec96856b504a4d4b16ad64e2c08ce27 100644 --- a/src/proto_017_PtNairob/lib_client/test/test_michelson_v1_macros.ml +++ b/src/proto_017_PtNairob/lib_client/test/test_michelson_v1_macros.ml @@ -27,7 +27,8 @@ (** Testing ------- Component: Client - Invocation: dune build @src/proto_alpha/lib_client/runtest + Invocation: dune exec src/proto_017_PtNairob/lib_client/test/main.exe \ + -- --file test_michelson_v1_macros.ml Dependencies: src/proto_alpha/lib_client/test/assert.ml Subject: Expansion and unexpansion of Micheline terms. *) @@ -1342,6 +1343,6 @@ let wrap (n, f) = let () = Alcotest_lwt.run ~__FILE__ - "tezos-lib-client" - [(Protocol.name ^ ": micheline v1 macros", List.map wrap tests)] + Protocol.name + [("micheline v1 macros", List.map wrap tests)] |> Lwt_main.run diff --git a/src/proto_017_PtNairob/lib_client/test/test_proxy.ml b/src/proto_017_PtNairob/lib_client/test/test_proxy.ml index defa5b47870ed9180a5140b1a53f888ea5b42335..99dc1e584eb8200db1d7bfd00abc3ca4aefd41be 100644 --- a/src/proto_017_PtNairob/lib_client/test/test_proxy.ml +++ b/src/proto_017_PtNairob/lib_client/test/test_proxy.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Client - Invocation: dune build @src/proto_alpha/lib_client/runtest + Invocation: dune exec src/proto_017_PtNairob/lib_client/test/main.exe \ + -- --file test_proxy.ml Subject: Test of --mode proxy and tezos-proxy-server heuristic *) @@ -85,5 +86,5 @@ let test_split_key = let () = Alcotest.run ~__FILE__ - "tezos-lib-client-proxy" - [(Protocol.name ^ ": proxy", Qcheck2_helpers.qcheck_wrap [test_split_key])] + Protocol.name + [("proxy", Qcheck2_helpers.qcheck_wrap [test_split_key])] diff --git a/src/proto_017_PtNairob/lib_dac_plugin/test/test_dac_pages_encoding.ml b/src/proto_017_PtNairob/lib_dac_plugin/test/test_dac_pages_encoding.ml index 5ae8080ee5cbc011344d697e9dd4f02022a6a4d2..6370488c1ad763fe7375b653517d2b238b9c80b0 100644 --- a/src/proto_017_PtNairob/lib_dac_plugin/test/test_dac_pages_encoding.ml +++ b/src/proto_017_PtNairob/lib_dac_plugin/test/test_dac_pages_encoding.ml @@ -26,8 +26,8 @@ (** Testing ------- Component: Dal_node Slot_frame_encoding - Invocation: dune exec src/proto_alpha/lib_dac_plugin/test/main.exe \ - -- test "^\[Unit\] Dac_pages_encoding.ml$" + Invocation: dune exec src/proto_017_PtNairob/lib_dac_plugin/test/main.exe \ + -- --file test_dac_pages_encoding.ml Subject: Tests for the SCORU storage module *) @@ -711,10 +711,6 @@ let tests = let () = Alcotest_lwt.run ~__FILE__ - "protocol > unit" - [ - Test_helpers.Unit_test.spec - (Protocol.name ^ ": Dac_pages_encoding.ml") - tests; - ] + Protocol.name + [Test_helpers.Unit_test.spec "Dac_pages_encoding.ml" tests] |> Lwt_main.run diff --git a/src/proto_017_PtNairob/lib_dac_plugin/test/test_dac_plugin_registration.ml b/src/proto_017_PtNairob/lib_dac_plugin/test/test_dac_plugin_registration.ml index 24cd8de35bd1b605f2ada423e9f71c4178ec70f8..2bf59c94fbd3f31a9c52991bf26c1ca93543b2dd 100644 --- a/src/proto_017_PtNairob/lib_dac_plugin/test/test_dac_plugin_registration.ml +++ b/src/proto_017_PtNairob/lib_dac_plugin/test/test_dac_plugin_registration.ml @@ -26,8 +26,8 @@ (** Testing ------- Component: Lib_dac_node Dac_hash - Invocation: dune exec src/proto_alpha/lib_dac_plugin/test/main.exe \ - -- test "^\[Unit\] Dac_plugin_registration.ml$" + Invocation: dune exec src/proto_017_PtNairob/lib_dac_plugin/test/main.exe \ + -- --file test_dac_plugin_registration.ml Subject: Tests for the interoperability between Dac hash and given protocol hash *) @@ -154,10 +154,6 @@ let tests = let () = Alcotest_lwt.run ~__FILE__ - "protocol > unit" - [ - Test_helpers.Unit_test.spec - (Protocol.name ^ ": Dac_plugin_registration.ml") - tests; - ] + Protocol.name + [Test_helpers.Unit_test.spec "Dac_plugin_registration.ml" tests] |> Lwt_main.run diff --git a/src/proto_017_PtNairob/lib_dal/test/test_dal_slot_frame_encoding.ml b/src/proto_017_PtNairob/lib_dal/test/test_dal_slot_frame_encoding.ml index 5e2d333999aef662b16395df3cda2038ca612635..7a5592492e0b14128cd24a02e68319a706cb8454 100644 --- a/src/proto_017_PtNairob/lib_dal/test/test_dal_slot_frame_encoding.ml +++ b/src/proto_017_PtNairob/lib_dal/test/test_dal_slot_frame_encoding.ml @@ -26,8 +26,8 @@ (** Testing ------- Component: Dal_node Slot_frame_encoding - Invocation: dune exec src/proto_alpha/lib_dal/test/main.exe \ - -- test "^\[Unit\] Slot_framing_protocol.ml$" + Invocation: dune exec src/proto_017_PtNairob/lib_dal/test/main.exe \ + -- --file test_dal_slot_frame_encoding.ml Subject: Tests for the SCORU storage module *) @@ -415,10 +415,6 @@ let tests = let () = Alcotest_lwt.run ~__FILE__ - "protocol > unit" - [ - Test_helpers.Unit_test.spec - (Protocol.name ^ ": Slot_framing_protocol.ml") - tests; - ] + Protocol.name + [Test_helpers.Unit_test.spec "Slot_framing_protocol.ml" tests] |> Lwt_main.run diff --git a/src/proto_017_PtNairob/lib_delegate/test/test_scenario.ml b/src/proto_017_PtNairob/lib_delegate/test/test_scenario.ml index ac852fe5af933a45cd7465fb886bfa59710360ea..4dba31de2ef96d243f7ba91d5ff66dba340e14d3 100644 --- a/src/proto_017_PtNairob/lib_delegate/test/test_scenario.ml +++ b/src/proto_017_PtNairob/lib_delegate/test/test_scenario.ml @@ -1,3 +1,11 @@ +(* Testing + ------- + Component: Protocol, delegate + Invocation: dune exec src/proto_017_PtNairob/lib_delegate/test/main.exe \ + -- --file test_scenario.ml + Subject: Test different scenario for delegate +*) + open Mockup_simulator let bootstrap1 = Signature.Public_key.hash bootstrap1 diff --git a/src/proto_017_PtNairob/lib_plugin/test/test_conflict_handler.ml b/src/proto_017_PtNairob/lib_plugin/test/test_conflict_handler.ml index 931dacd0a1873948b573861f9615458ea01a8d34..543acb81727d318588d18470ebcadf1267d2d841 100644 --- a/src/proto_017_PtNairob/lib_plugin/test/test_conflict_handler.ml +++ b/src/proto_017_PtNairob/lib_plugin/test/test_conflict_handler.ml @@ -26,8 +26,9 @@ (** Testing ------- Component: Plugin.Mempool - Invocation: dune exec src/proto_alpha/lib_plugin/test/test_conflict_handler.exe - Subject: Unit tests the Mempool.conflict_handler fonction of the plugin + Invocation: dune exec src/proto_017_PtNairob/lib_plugin/test/main.exe \ + -- --file test_conflict_handler.ml + Subject: Unit tests the Mempool.conflict_handler function of the plugin *) let pp_answer fmt = function @@ -261,9 +262,9 @@ let test_manager_ops () = let () = Alcotest_lwt.run ~__FILE__ - "conflict_handler" + Protocol.name [ - ( Protocol.name ^ ": conflict_handler", + ( "conflict_handler", [ Tztest.tztest "Random operations (not both manager)" diff --git a/src/proto_017_PtNairob/lib_plugin/test/test_consensus_filter.ml b/src/proto_017_PtNairob/lib_plugin/test/test_consensus_filter.ml index 1445191ab587d742084d6518beee8373b05c0710..0fdecad309a40399475019f4e543cfeadf2d5ed1 100644 --- a/src/proto_017_PtNairob/lib_plugin/test/test_consensus_filter.ml +++ b/src/proto_017_PtNairob/lib_plugin/test/test_consensus_filter.ml @@ -23,6 +23,14 @@ (* *) (*****************************************************************************) +(** Testing + ------- + Component: Plugin.Mempool + Invocation: dune exec src/proto_017_PtNairob/lib_plugin/test/main.exe \ + -- --file test_consensus_filter.ml + Subject: Unit tests the Mempool consensus filter +*) + open Qcheck2_helpers open Plugin.Mempool open Alpha_context @@ -434,9 +442,9 @@ let test_not_acceptable_next_level = let () = Alcotest.run ~__FILE__ - "Filter" + Protocol.name [ - ( Protocol.name ^ ": pre_filter", + ( "pre_filter", qcheck_wrap [ test_acceptable_past_level; diff --git a/src/proto_017_PtNairob/lib_plugin/test/test_filter_state.ml b/src/proto_017_PtNairob/lib_plugin/test/test_filter_state.ml index f6f1baa151c5cb3b7fd5b0b03f6910ecb7a9eead..1e0b20ee0e8567f7fa4f8d119334d7b0274a9bc4 100644 --- a/src/proto_017_PtNairob/lib_plugin/test/test_filter_state.ml +++ b/src/proto_017_PtNairob/lib_plugin/test/test_filter_state.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Shell (Plugin) - Invocation: dune exec src/proto_alpha/lib_plugin/test/test_filter_state.exe + Invocation: dune exec src/proto_017_PtNairob/lib_plugin/test/main.exe \ + -- --file test_filter_state.ml Subject: Unit tests the filter state functions of the plugin *) @@ -186,9 +187,8 @@ let test_remove_unknown = let () = Alcotest.run ~__FILE__ - "Filter_state" + Protocol.name [ - (Protocol.name ^ ": add_manager_op", qcheck_wrap [test_add_manager_op]); - ( Protocol.name ^ ": remove", - qcheck_wrap [test_remove_present; test_remove_unknown] ); + ("add_manager_op", qcheck_wrap [test_add_manager_op]); + ("remove", qcheck_wrap [test_remove_present; test_remove_unknown]); ] diff --git a/src/proto_017_PtNairob/lib_plugin/test/test_plugin.ml b/src/proto_017_PtNairob/lib_plugin/test/test_plugin.ml index 9d5e90d40a357700e330f74d06698757c9b59317..3da31c78ee11d8ccf225df7df0ca90d4e780f960 100644 --- a/src/proto_017_PtNairob/lib_plugin/test/test_plugin.ml +++ b/src/proto_017_PtNairob/lib_plugin/test/test_plugin.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Shell (Plugin) - Invocation: dune exec src/proto_alpha/lib_plugin/test/test_plugin.exe + Invocation: dune exec src/proto_017_PtNairob/lib_plugin/test/main.exe \ + -- --file test_plugin.ml Subject: Unit tests the plugin *) @@ -70,9 +71,9 @@ let test_flush () = let () = Alcotest_lwt.run ~__FILE__ - "Plugin" + Protocol.name [ - ( Protocol.name ^ ": on_flush", + ( "on_flush", [ Tztest.tztest "[on_flush ~validation_state ...] yields an empty state " diff --git a/src/proto_alpha/lib_client/test/test_client_proto_context.ml b/src/proto_alpha/lib_client/test/test_client_proto_context.ml index 7351c7013307fcc2ffd9a06bc17aca97a28ec366..6fd67ac7da7b5975e13c573dd5751f48171968a4 100644 --- a/src/proto_alpha/lib_client/test/test_client_proto_context.ml +++ b/src/proto_alpha/lib_client/test/test_client_proto_context.ml @@ -26,7 +26,8 @@ (* Testing ------- Component: Client - Invocation: dune exec src/proto_alpha/lib_client/test/main.exe + Invocation: dune exec src/proto_alpha/lib_client/test/main.exe \ + -- --file test_client_proto_context.ml Subject: Tests roundtrips of batch_transfer_operation_encoding *) @@ -65,8 +66,4 @@ let tests = (binary_roundtrip Client_proto_context.batch_transfer_operation_encoding); ] -let () = - Alcotest.run - ~__FILE__ - "Client proto context" - [(Protocol.name ^ ": Encodings", qcheck_wrap tests)] +let () = Alcotest.run ~__FILE__ Protocol.name [("Encodings", qcheck_wrap tests)] diff --git a/src/proto_alpha/lib_client/test/test_client_proto_contracts.ml b/src/proto_alpha/lib_client/test/test_client_proto_contracts.ml index 3112cbbe99844ee26c05efcc041cdd209fba0342..025b152b9d9e3b1c15a3d4362805c74f80ff026c 100644 --- a/src/proto_alpha/lib_client/test/test_client_proto_contracts.ml +++ b/src/proto_alpha/lib_client/test/test_client_proto_contracts.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Client - Invocation: dune exec src/proto_alpha/lib_client/test/main.exe + Invocation: dune exec src/proto_alpha/lib_client/test/main.exe \ + -- --file test_client_proto_contracts.ml Subject: Unit tests for Client_proto_contracts *) @@ -90,9 +91,9 @@ let test_find_destination _ = let () = Alcotest_lwt.run ~__FILE__ - "tezos-lib-client-proto-contracts" + Protocol.name [ - ( Protocol.name ^ ": client_proto_contracts", + ( "client_proto_contracts", [Tztest.tztest "test_find_destination" `Quick test_find_destination] ); ] |> Lwt_main.run diff --git a/src/proto_alpha/lib_client/test/test_michelson_v1_macros.ml b/src/proto_alpha/lib_client/test/test_michelson_v1_macros.ml index 8f210533c699d8553bfad904c4772a6437524031..f8489b4e6f0c99b8f4ddfe7b53c1835f31bba4cc 100644 --- a/src/proto_alpha/lib_client/test/test_michelson_v1_macros.ml +++ b/src/proto_alpha/lib_client/test/test_michelson_v1_macros.ml @@ -27,7 +27,8 @@ (** Testing ------- Component: Client - Invocation: dune exec src/proto_alpha/lib_client/test/main.exe + Invocation: dune exec src/proto_alpha/lib_client/test/main.exe \ + -- --file test_michelson_v1_macros.ml Dependencies: src/proto_alpha/lib_client/test/assert.ml Subject: Expansion and unexpansion of Micheline terms. *) @@ -1342,6 +1343,6 @@ let wrap (n, f) = let () = Alcotest_lwt.run ~__FILE__ - "tezos-lib-client" - [(Protocol.name ^ ": micheline v1 macros", List.map wrap tests)] + Protocol.name + [("micheline v1 macros", List.map wrap tests)] |> Lwt_main.run diff --git a/src/proto_alpha/lib_client/test/test_proxy.ml b/src/proto_alpha/lib_client/test/test_proxy.ml index 92fb592b07136252eb466107910b7a7863110a61..a7502865accc39f22a8a4691e6277ea16ba51e27 100644 --- a/src/proto_alpha/lib_client/test/test_proxy.ml +++ b/src/proto_alpha/lib_client/test/test_proxy.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Client - Invocation: dune exec src/proto_alpha/lib_client/test/main.exe + Invocation: dune exec src/proto_alpha/lib_client/test/main.exe \ + -- --file test_proxy.ml Subject: Test of --mode proxy and tezos-proxy-server heuristic *) @@ -85,5 +86,5 @@ let test_split_key = let () = Alcotest.run ~__FILE__ - "tezos-lib-client-proxy" - [(Protocol.name ^ ": proxy", Qcheck2_helpers.qcheck_wrap [test_split_key])] + Protocol.name + [("proxy", Qcheck2_helpers.qcheck_wrap [test_split_key])] diff --git a/src/proto_alpha/lib_dac_plugin/test/test_dac_pages_encoding.ml b/src/proto_alpha/lib_dac_plugin/test/test_dac_pages_encoding.ml index 41c2118d503712d16eb1e43a02fc2a500b26b8c6..555dff35f6e373ef6c14a3dc77300845c257c99e 100644 --- a/src/proto_alpha/lib_dac_plugin/test/test_dac_pages_encoding.ml +++ b/src/proto_alpha/lib_dac_plugin/test/test_dac_pages_encoding.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Dal_node Slot_frame_encoding - Invocation: dune exec src/proto_alpha/lib_dac_plugin/test/main.exe + Invocation: dune exec src/proto_alpha/lib_dac_plugin/test/main.exe \ + -- --file test_dac_pages_encoding.ml Subject: Tests for the SCORU storage module *) @@ -765,10 +766,6 @@ let tests = let () = Alcotest_lwt.run ~__FILE__ - "protocol > unit" - [ - Test_helpers.Unit_test.spec - (Protocol.name ^ ": Dac_pages_encoding.ml") - tests; - ] + Protocol.name + [Test_helpers.Unit_test.spec "Dac_pages_encoding.ml" tests] |> Lwt_main.run diff --git a/src/proto_alpha/lib_dac_plugin/test/test_dac_plugin_registration.ml b/src/proto_alpha/lib_dac_plugin/test/test_dac_plugin_registration.ml index cdab557320f42cf7e2f965a1f7e128d3f6fe5e3b..a6ac7382979b3c3b1c6c5accd6741ecdefeca185 100644 --- a/src/proto_alpha/lib_dac_plugin/test/test_dac_plugin_registration.ml +++ b/src/proto_alpha/lib_dac_plugin/test/test_dac_plugin_registration.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Lib_dac_node Dac_hash - Invocation: dune exec src/proto_alpha/lib_dac_plugin/test/main.exe + Invocation: dune exec src/proto_alpha/lib_dac_plugin/test/main.exe \ + -- --file test_dac_plugin_registration.ml Subject: Tests for the interoperability between Dac hash and given protocol hash *) @@ -153,10 +154,6 @@ let tests = let () = Alcotest_lwt.run ~__FILE__ - "protocol > unit" - [ - Test_helpers.Unit_test.spec - (Protocol.name ^ ": Dac_plugin_registration.ml") - tests; - ] + Protocol.name + [Test_helpers.Unit_test.spec "Dac_plugin_registration.ml" tests] |> Lwt_main.run diff --git a/src/proto_alpha/lib_dal/test/test_dal_slot_frame_encoding.ml b/src/proto_alpha/lib_dal/test/test_dal_slot_frame_encoding.ml index 775505cb992ad250b0540ff00942ea93c0d677a6..5bf82245ddf468df45f8ce420bcfa7fa2257bab6 100644 --- a/src/proto_alpha/lib_dal/test/test_dal_slot_frame_encoding.ml +++ b/src/proto_alpha/lib_dal/test/test_dal_slot_frame_encoding.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Dal_node Slot_frame_encoding - Invocation: dune exec src/proto_alpha/lib_dal/test/main.exe + Invocation: dune exec src/proto_alpha/lib_dal/test/main.exe \ + -- --file test_dal_slot_frame_encoding.ml Subject: Tests for the SCORU storage module *) @@ -414,10 +415,6 @@ let tests = let () = Alcotest_lwt.run ~__FILE__ - "protocol > unit" - [ - Test_helpers.Unit_test.spec - (Protocol.name ^ ": Slot_framing_protocol.ml") - tests; - ] + Protocol.name + [Test_helpers.Unit_test.spec "Slot_framing_protocol.ml" tests] |> Lwt_main.run diff --git a/src/proto_alpha/lib_delegate/test/test_scenario.ml b/src/proto_alpha/lib_delegate/test/test_scenario.ml index 667374a3718fb92c3e186273ba2d734f00b31d81..bfd1ed1b7c4d44a2ccfee44c58ec180fc7089d00 100644 --- a/src/proto_alpha/lib_delegate/test/test_scenario.ml +++ b/src/proto_alpha/lib_delegate/test/test_scenario.ml @@ -1,7 +1,8 @@ (* Testing ------- Component: Protocol, delegate - Invocation: dune exec src/proto_alpha/lib_delegate/test/main.exe + Invocation: dune exec src/proto_alpha/lib_delegate/test/main.exe \ + -- --file test_scenario.ml Subject: Test different scenario for delegate *) diff --git a/src/proto_alpha/lib_plugin/test/test_conflict_handler.ml b/src/proto_alpha/lib_plugin/test/test_conflict_handler.ml index 7ca63242579edb4eb56a93fe7f502847d9fcb9ea..02d337f40e6c4b153f7e81bd3c25a99b0d0a0566 100644 --- a/src/proto_alpha/lib_plugin/test/test_conflict_handler.ml +++ b/src/proto_alpha/lib_plugin/test/test_conflict_handler.ml @@ -26,8 +26,9 @@ (** Testing ------- Component: Plugin.Mempool - Invocation: dune exec src/proto_alpha/lib_plugin/test/main.exe - Subject: Unit tests the Mempool.conflict_handler fonction of the plugin + Invocation: dune exec src/proto_alpha/lib_plugin/test/main.exe \ + -- --file test_conflict_handler.ml + Subject: Unit tests the Mempool.conflict_handler function of the plugin *) let pp_answer fmt = function @@ -261,9 +262,9 @@ let test_manager_ops () = let () = Alcotest_lwt.run ~__FILE__ - "conflict_handler" + Protocol.name [ - ( Protocol.name ^ ": conflict_handler", + ( "conflict_handler", [ Tztest.tztest "Random operations (not both manager)" diff --git a/src/proto_alpha/lib_plugin/test/test_consensus_filter.ml b/src/proto_alpha/lib_plugin/test/test_consensus_filter.ml index 1445191ab587d742084d6518beee8373b05c0710..36750245d8d4168a86b9b56caee17f137fc85269 100644 --- a/src/proto_alpha/lib_plugin/test/test_consensus_filter.ml +++ b/src/proto_alpha/lib_plugin/test/test_consensus_filter.ml @@ -23,6 +23,14 @@ (* *) (*****************************************************************************) +(** Testing + ------- + Component: Plugin.Mempool + Invocation: dune exec src/proto_alpha/lib_plugin/test/main.exe \ + -- --file test_consensus_filter.ml + Subject: Unit tests the Mempool consensus filter +*) + open Qcheck2_helpers open Plugin.Mempool open Alpha_context @@ -434,9 +442,9 @@ let test_not_acceptable_next_level = let () = Alcotest.run ~__FILE__ - "Filter" + Protocol.name [ - ( Protocol.name ^ ": pre_filter", + ( "pre_filter", qcheck_wrap [ test_acceptable_past_level; diff --git a/src/proto_alpha/lib_plugin/test/test_filter_state.ml b/src/proto_alpha/lib_plugin/test/test_filter_state.ml index 646e8f5b37dcd95219455cef7fff6222818cae24..4c46ac273838013b6c9d2ccf0b33e7a09190c271 100644 --- a/src/proto_alpha/lib_plugin/test/test_filter_state.ml +++ b/src/proto_alpha/lib_plugin/test/test_filter_state.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Shell (Plugin) - Invocation: dune exec src/proto_alpha/lib_plugin/test/main.exe + Invocation: dune exec src/proto_alpha/lib_plugin/test/main.exe \ + -- --file test_filter_state.ml Subject: Unit tests the filter state functions of the plugin *) @@ -186,9 +187,8 @@ let test_remove_unknown = let () = Alcotest.run ~__FILE__ - "Filter_state" + Protocol.name [ - (Protocol.name ^ ": add_manager_op", qcheck_wrap [test_add_manager_op]); - ( Protocol.name ^ ": remove", - qcheck_wrap [test_remove_present; test_remove_unknown] ); + ("add_manager_op", qcheck_wrap [test_add_manager_op]); + ("remove", qcheck_wrap [test_remove_present; test_remove_unknown]); ] diff --git a/src/proto_alpha/lib_plugin/test/test_plugin.ml b/src/proto_alpha/lib_plugin/test/test_plugin.ml index ea5fa5efdf1530d7b091f11f71e860c9c3c5aa0f..6d0f89e43f85930879714fed44729b1dafe25b08 100644 --- a/src/proto_alpha/lib_plugin/test/test_plugin.ml +++ b/src/proto_alpha/lib_plugin/test/test_plugin.ml @@ -26,7 +26,8 @@ (** Testing ------- Component: Shell (Plugin) - Invocation: dune exec src/proto_alpha/lib_plugin/test/main.exe + Invocation: dune exec src/proto_alpha/lib_plugin/test/main.exe \ + -- --file test_plugin.ml Subject: Unit tests the plugin *) @@ -70,9 +71,9 @@ let test_flush () = let () = Alcotest_lwt.run ~__FILE__ - "Plugin" + Protocol.name [ - ( Protocol.name ^ ": on_flush", + ( "on_flush", [ Tztest.tztest "[on_flush ~validation_state ...] yields an empty state "