(jbuild_version 1)

(alias
 ((name runtest_basic.sh)
  (deps (sandbox.json
         test_lib.inc.sh
         (glob_files contracts/*)
         ))
  (locks  (/tcp-port/18731
           /tcp-port/19731))
  (action (run bash ${path:test_basic.sh}
                    ${bin:tezos-sandboxed-node.sh}
                    ${bin:tezos-node}
                    ${bin:tezos-init-sandboxed-client.sh}
                    ${bin:tezos-client}
                    ))))

(alias
 ((name runtest_contracts.sh)
  (deps (sandbox.json
         test_lib.inc.sh
         (glob_files contracts/*)
         ))
  (locks  (/tcp-port/18731
           /tcp-port/19731))
  (action (run bash ${path:test_contracts.sh}
                    ${bin:tezos-sandboxed-node.sh}
                    ${bin:tezos-node}
                    ${bin:tezos-init-sandboxed-client.sh}
                    ${bin:tezos-client}
                    ))))

(alias
 ((name runtest_multinode.sh)
  (deps (sandbox.json
         test_lib.inc.sh
         (glob_files contracts/*.tz)
         ))
  (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}
                    ${bin:tezos-sandboxed-node.sh}
                    ${bin:tezos-node}
                    ${bin:tezos-init-sandboxed-client.sh}
                    ${bin:tezos-client}
                    ))))

(alias
 ((name runtest)
  (deps ((alias runtest_basic.sh)
         (alias runtest_contracts.sh)
         (alias runtest_multinode.sh)))))
