0a7f9a39a9
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
63 lines
1.6 KiB
Plaintext
63 lines
1.6 KiB
Plaintext
(jbuild_version 1)
|
|
|
|
(executables
|
|
((names (test_endorsement
|
|
;; test_michelson_parser
|
|
test_origination
|
|
test_transaction
|
|
test_vote))
|
|
(libraries (test_lib
|
|
client_lib
|
|
client_embedded_genesis
|
|
client_embedded_alpha))
|
|
(flags (:standard -open Error_monad
|
|
-open Hash
|
|
-open Tezos_data
|
|
-open Tezos_protocol_environment_alpha
|
|
-open Tezos_embedded_raw_protocol_alpha
|
|
-open Tezos_context
|
|
-open Client_embedded_alpha))))
|
|
|
|
(alias
|
|
((name buildtest)
|
|
(deps (test_endorsement.exe
|
|
;; test_michelson_parser.exe
|
|
test_origination.exe
|
|
test_transaction.exe
|
|
test_vote.exe))))
|
|
|
|
(alias
|
|
((name runtest_endorsement)
|
|
(deps (../../src/node_main.exe
|
|
sandbox.json))
|
|
(locks (/tcp-port/18100))
|
|
(action (run ${exe:test_endorsement.exe}))))
|
|
|
|
(alias
|
|
((name runtest_origination)
|
|
(deps (../../src/node_main.exe
|
|
sandbox.json))
|
|
(locks (/tcp-port/18200))
|
|
(action (run ${exe:test_origination.exe}))))
|
|
|
|
(alias
|
|
((name runtest_transaction)
|
|
(deps (../../src/node_main.exe
|
|
sandbox.json))
|
|
(locks (/tcp-port/18300))
|
|
(action (run ${exe:test_transaction.exe}))))
|
|
|
|
(alias
|
|
((name runtest_vote)
|
|
(deps (../../src/node_main.exe
|
|
sandbox-vote.json))
|
|
(locks (/tcp-port/18400))
|
|
(action (run ${exe:test_vote.exe}))))
|
|
|
|
(alias
|
|
((name runtest)
|
|
(deps ((alias runtest_endorsement)
|
|
(alias runtest_origination)
|
|
(alias runtest_transaction)
|
|
(alias runtest_vote)))))
|