From 5399dee5cea1153e2cb674d668723c970b994a78 Mon Sep 17 00:00:00 2001 From: Pietro Date: Wed, 21 Mar 2018 15:40:13 +0100 Subject: [PATCH] test: add tezos-alpha-baker command in tezos-init-sandboxed-client --- src/bin_client/tezos-init-sandboxed-client.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/bin_client/tezos-init-sandboxed-client.sh b/src/bin_client/tezos-init-sandboxed-client.sh index 0d04543ce..d02dbbea4 100755 --- a/src/bin_client/tezos-init-sandboxed-client.sh +++ b/src/bin_client/tezos-init-sandboxed-client.sh @@ -14,6 +14,7 @@ init_sandboxed_client() { client_dirs+=("$client_dir") client="$local_client -base-dir $client_dir -addr 127.0.0.1 -port $rpc" admin_client="$local_admin_client -base-dir $client_dir -addr 127.0.0.1 -port $rpc" + alpha_baker="$local_alpha_baker -base-dir $client_dir -addr 127.0.0.1 -port $rpc" } @@ -220,10 +221,12 @@ main () { if [ $(basename "$bin_dir") = "bin_client" ]; then local_client="${local_client:-$bin_dir/../../_build/default/src/bin_client/main_client.exe}" local_admin_client="${local_admin_client:-$bin_dir/../../_build/default/src/bin_client/main_admin.exe}" + local_alpha_baker="${local_alpha_baker:-$bin_dir/../../_build/default/src/proto_alpha/bin_baker/main_baker_alpha.exe}" else # we assume a clean install with tezos-(admin-)client in the path local_client="${local_client:-$(which tezos-client)}" local_admin_client="${local_admin_client:-$(which tezos-admin-client)}" + local_alpha_baker="${local_alpha_baker:-$(which tezos-alpha-baker)}" fi if [ $# -lt 1 ] || [ "$1" -le 0 ] || [ 10 -le "$1" ]; then @@ -236,13 +239,19 @@ main () { add_sandboxed_bootstrap_identities | sed -e 's/^/## /' 1>&2 mkdir -p $client_dir/bin + echo '#!/bin/sh' > $client_dir/bin/tezos-client echo "exec $client \"\$@\"" >> $client_dir/bin/tezos-client chmod +x $client_dir/bin/tezos-client + echo '#!/bin/sh' > $client_dir/bin/tezos-admin-client echo "exec $admin_client \"\$@\"" >> $client_dir/bin/tezos-admin-client chmod +x $client_dir/bin/tezos-admin-client + echo '#!/bin/sh' > $client_dir/bin/tezos-alpha-baker + echo "exec $alpha_baker \"\$@\"" >> $client_dir/bin/tezos-alpha-baker + chmod +x $client_dir/bin/tezos-alpha-baker + cat </dev/null 2>&1 ; then tezos-client-reset; fi ; PATH="$client_dir/bin:\$PATH" ; export PATH ;