ligo/test/utils/jbuild
Milo Davis 0a7f9a39a9 Switch to Jbuilder
This is a rewrite of the build system with `jbuilder`, with just a
minimal toplevel Makefile for backward compatibility.

This first patch preserves the project architecture, we only gain
proper dependencies handling and always up-to-date `.merlin` files.
A latter patch may split the project in smaller "sub-package",
i.e. multiple `.opam` files.

The embedded versions of the economic protocol are now compiled with
`jbuilder` instead of `tezos-protocol-compiler`, potentially allowing
proper inlining at the cost of slightly-less-stricter
sandboxing. Nevertheless, dynamically loaded protocol are still
compiled with the `tezos-protocol-compiler` and thus strictly
sandboxed ; and a CI rule also checks the proper sandboxing of
embedded protocols.

This patch is coauthored with @hnrgrgr
2017-10-31 20:33:56 +00:00

50 lines
1.1 KiB
Plaintext

(jbuild_version 1)
(executables
((names (test_data_encoding
test_lwt_pipe
test_merkle
test_stream_data_encoding
test_utils))
(libraries (minutils utils test_lib))
(flags (:standard -open Error_monad
-open Hash
-open Utils
-open Tezos_data))))
(alias
((name buildtest)
(deps (test_data_encoding.exe
test_lwt_pipe.exe
test_merkle.exe
test_stream_data_encoding.exe
test_utils.exe))))
(alias
((name runtest_data_encoding)
(action (run ${exe:test_data_encoding.exe}))))
(alias
((name runtest_lwt_pipe)
(action (run ${exe:test_lwt_pipe.exe}))))
(alias
((name runtest_merkle)
(action (run ${exe:test_merkle.exe}))))
(alias
((name runtest_stream_data_encoding)
(action (run ${exe:test_stream_data_encoding.exe}))))
(alias
((name runtest_utils)
(action (run ${exe:test_utils.exe}))))
(alias
((name runtest)
(deps ((alias runtest_data_encoding)
(alias runtest_lwt_pipe)
(alias runtest_merkle)
(alias runtest_stream_data_encoding)
(alias runtest_utils)))))