These tests check properties of the Wasm specifications. Tests of the SpecTec implementation belong in spectec/test-* instead.
With SpecTec's OCaml and Dune dependencies installed, run from the repository root:
make -C specification/test test
The runner refreshes SpecTec‘s existing _specification copy and builds the tests there, where SpecTec’s private frontend and IL libraries are available. The test sources and Dune rules are maintained here, not in spectec/test-*. The SpecTec CI workflow also runs this target.
The CVTOP check discovers every wasm-* specification directory, including wasm-latest. For each version it checks all 192 combinations of four source types, four destination types, and twelve operator forms against an independent list of legal conversions. It elaborates the expressions and evaluates the actual constructor premises from the specification's IL.
Wasm 1.0 has 25 legal combinations; Wasm 2.0, 3.0, and latest have 33, including the eight saturating conversions. Those operators are explicitly rejected for 1.0. Adding another version requires an explicit conversion oracle, so a new directory cannot silently inherit the wrong expectations. An empty specification directory is also an error.