Client/Michelson: add minimal client support for TZT
Context
This MR adds a run unit tests command in the client which can be
used to run a set of unit tests similarly to how typecheck script
can be used to type check that a set of scripts.
The support for the TZT format added in this commit is very minimal;
only the mandatory primitives input, output, and code are
recognized.
Stacked on !10911 (merged).
TODO:
-
remove all asserts
Manually testing the MR
-
clone the TZT repository (https://gitlab.com/tezos/tzt-reference-test-suite/)
-
Run the following command:
octez-client run unit tests from /path/to/tzt-reference-test-suite/*.tzt
Since the support for TZT in this MR is very partial, many tests will fail and this is expected.
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Raphaël Cauderlier