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
49 lines
1.4 KiB
Plaintext
49 lines
1.4 KiB
Plaintext
(jbuild_version 1)
|
|
|
|
(alias
|
|
((name runtest_basic.sh)
|
|
(deps (../src/node_main.exe
|
|
../src/client_main.exe
|
|
sandbox.json
|
|
test_basic.sh
|
|
lib/test_lib.inc.sh
|
|
../scripts/node_lib.inc.sh
|
|
../scripts/client_lib.inc.sh
|
|
(glob_files contracts/*)
|
|
))
|
|
(locks (/tcp-port/18731
|
|
/tcp-port/19731))
|
|
(action (run bash ${path:test_basic.sh}))))
|
|
|
|
(alias
|
|
((name runtest_contracts.sh)
|
|
(deps (../src/node_main.exe
|
|
../src/client_main.exe
|
|
sandbox.json
|
|
test_contracts.sh
|
|
lib/test_lib.inc.sh
|
|
../scripts/node_lib.inc.sh
|
|
../scripts/client_lib.inc.sh
|
|
(glob_files contracts/*)
|
|
))
|
|
(locks (/tcp-port/18732
|
|
/tcp-port/19732))
|
|
(action (run bash ${path:test_contracts.sh}))))
|
|
|
|
(alias
|
|
((name runtest_multinode.sh)
|
|
(deps (../src/node_main.exe
|
|
../src/client_main.exe
|
|
sandbox.json
|
|
test_multinode.sh
|
|
lib/test_lib.inc.sh
|
|
../scripts/node_lib.inc.sh
|
|
../scripts/client_lib.inc.sh
|
|
(glob_files contracts/*)
|
|
))
|
|
(locks (/tcp-port/18731 /tcp-port/18732 /tcp-port/18733 /tcp-port/18734
|
|
/tcp-port/18735 /tcp-port/18736 /tcp-port/18737 /tcp-port/18738
|
|
/tcp-port/19731 /tcp-port/19732 /tcp-port/19733 /tcp-port/19734
|
|
/tcp-port/19735 /tcp-port/19736 /tcp-port/19737 /tcp-port/19738))
|
|
(action (run bash ${path:test_multinode.sh}))))
|