36 lines
593 B
Bash
36 lines
593 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
set -o pipefail
|
|
|
|
test_dir="$(cd "$(dirname "$0")" && echo "$(pwd -P)")"
|
|
source $test_dir/test_lib.inc.sh "$@"
|
|
|
|
start_node 1
|
|
activate_alpha
|
|
|
|
$client -w none config update
|
|
|
|
bake
|
|
|
|
key1=foo
|
|
key2=bar
|
|
|
|
$client gen keys $key1
|
|
$client gen keys $key2
|
|
|
|
printf "\n\n"
|
|
|
|
# Assert all contracts typecheck
|
|
if [ ! $NO_TYPECHECK ] ; then
|
|
for contract in `ls $contract_attic_dir/*.tz`; do
|
|
printf "[Typechecking %s]\n" "$contract";
|
|
${client} typecheck script "$contract";
|
|
done
|
|
printf "All contracts are well typed\n\n"
|
|
fi
|
|
|
|
printf "\nEnd of test\n"
|
|
|
|
show_logs="no"
|